/* Aligne les boutons des offres en bas sans changer leur taille */
.price a.btn,
.price a.btn-ghost {
  margin-top: auto;
}

/* ========================================================================== */
/* Neodastes styles — Apple-inspired DA                                       */
/* - System font stack                                                         */
/* - Generous whitespace, thin rules, subtle gradients                         */
/* - Prefers-reduced-motion respected                                          */
/* ========================================================================== */

/* Palette */
:root {
  --color-bg: #fff;
  --color-primary: #1d1d1f;
  --color-accent: #0071e3;
  --color-muted: #6e6e73;
  --color-surface: #ffffff;
  --color-surface-2: #f5f5f7;
  --color-ring: rgba(0, 113, 227, 0.35);
  --shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* Reset */
*{ box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titres */
h1, h2, h3, .brand-name {
  font-family: inherit;
  color: var(--color-primary);
  font-weight: 700;
}

/* Liens (comportement) */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Ne pas souligner les éléments stylés comme des boutons + items de nav/footer */
.btn:hover,
.btn-ghost:hover,
.cta:hover,
.link:hover,
.menu a:hover,
.footer-nav a:hover {
  text-decoration: none;
}

/* Layout */
.container{ width:min(1120px, 92%); margin-inline:auto; }

/* Header */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s ease;
}
.header-inner{
  display:flex; align-items:center; gap: 1rem;
  padding: .75rem 0;
}
@media (max-width: 640px) {
  .header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .lang-dropdown {
    margin-left: auto;
    order: 99;
  }
}
.brand{ display:flex; align-items:center; gap:.5rem; text-decoration:none; color:inherit; }
.brand-mark{
  display:block;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.brand-name{ font-weight:600; letter-spacing:.2px; }



/* Menu horizontal desktop */
.menu{ list-style:none; display:flex; gap:1.25rem; padding:0; margin:0; }
.menu a{
  text-decoration:none;
  color:#1d1d1f;
  font-size:.95rem;
  font-weight:600;
}
.menu a:hover{ color: var(--color-accent); }

/* CTA */
.cta {
  margin-left: auto;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.cta:hover {
  transform: translateY(-1px);
  background: #e5e5e7;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Hero */
.hero{
  position:relative;
  padding: calc(min(14vh, 8rem) + 2rem) 0 2rem; 
  overflow:hidden;
}
.hero-inner { margin-top: 0; position: relative; z-index: 2; text-align: center; }
@media (min-width: 600px) { .hero-inner { margin-top: -120px; } }
.hero-title{
  font-size: clamp(2.2rem, 4vw + 1rem, 4rem);
  line-height:1.05; letter-spacing:-.02em; margin:0 0 .75rem;
  text-align: center;
  margin-left: auto; margin-right: auto; width: 100%;
  margin-top: 2.5rem;
}
.gradient { 
  background: linear-gradient(90deg, #1d1d1f 0%, #86868b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle{
  margin: 0 auto 1.6rem;
  max-width: 680px;
  text-align: center;
  line-height: 1.65;
  letter-spacing: .01em;
  color: var(--color-muted);
  font-size: clamp(1.02rem, .65vw + .98rem, 1.2rem);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3.5rem; }

/* Boutons génériques */
.btn, .link{ display:inline-block; text-decoration:none; font-weight:600; }
.btn {
  background:#1d1d1f; color:#fff; padding:.8rem 1.1rem; border-radius:12px; box-shadow: var(--shadow);
  transition: background .2s, color .2s, border-color .2s, filter .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: #2a2a2c; color: #fff; }
.btn-ghost{
  background:#fff; color:#1d1d1f; border:1px solid rgba(0,0,0,.12); padding:.8rem 1.1rem; border-radius:12px;
  transition: background .2s, color .2s, border-color .2s, filter .2s, transform .2s, box-shadow .2s;
}
.btn-ghost:hover{ background:#f0f0f0; color:#232326; border-color:#bbb; filter: brightness(0.97); }
.link{ align-self:center; color:#1d1d1f; padding:.8rem .4rem; }
.link:hover{ color:#232326; background:#f7f7f9; filter: brightness(0.97); border-radius: 999px; }

/* Médias du hero */
.hero-media{ position: relative; margin-top: 80px; }
.hero-media img{
  width: min(1100px, 96%); display:block; margin-inline:auto; border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,.14);
}

/* Sections */
.section{ padding: 5rem 0; }
.section.alt{ background: var(--color-surface-2); }

/* Section titles */
.section-title {
  color: var(--color-primary);
  padding-bottom: 0.3em;
  margin-bottom: 1em;
  border-bottom: 2px solid var(--color-primary);
  margin-top: 2.5rem;
}

/* Tiles */
.tiles{
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 1024px){ .tiles{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .tiles{ grid-template-columns: 1fr; } }

.tile{
  background: var(--color-surface);
  border-radius: 24px; padding: 1.25rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  display:flex; flex-direction:column; gap:.5rem;
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow .18s ease;
}
.tile:hover {
  transform: scale(1.03);
  z-index: 2;
  box-shadow: 0 14px 32px rgba(0,0,0,.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile-head{ display:flex; align-items:center; gap:.6rem; }
.tile h3{ margin:.2rem 0 .2rem; font-size:1.25rem; }
.tile-text{ color: var(--color-muted); margin:0 0 .4rem; }
.tile-list{ margin:0; padding-left: 1.1rem; color:#1d1d1f; }

/* Pricing */
.pricing{
  display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:1rem;
}
@media (max-width: 1024px){ .pricing{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .pricing{ grid-template-columns: 1fr; } }
.price{
  background:#fff; border-radius: 24px; padding:1.5rem; border:1px solid rgba(0,0,0,.06);
  display:flex; flex-direction:column; gap:.75rem; box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform 0.18s cubic-bezier(.4,1.4,.6,1), box-shadow .18s ease;
}
.price:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price .price-tag{ font-size:2rem; font-weight:700; margin:.25rem 0; }
.price .unit{ font-size:.9rem; color:var(--color-muted); }
.price ul{ margin:0; padding-left: 1.1rem; }
.price.highlight{ position:relative; background: linear-gradient(180deg, #fff, #fbfbfd); }

/* Projects */
.projects{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem;
}
@media (max-width: 900px){ .projects{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .projects{ grid-template-columns: 1fr; } }
.project{
  border-radius:24px; overflow:hidden; background:#fff; border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.project img{ width:100%; display:block; }
.project figcaption{ padding:.8rem; color:#4d4d50; font-size:.95rem; }

/* About */
.about{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:2rem; align-items:start;
}
@media (max-width: 900px){ .about{ grid-template-columns: 1fr; } }
.about-card{
  border:1px solid rgba(0,0,0,.06); border-radius: 24px; padding:1.25rem; background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.bullets{ margin:.75rem 0 0; padding-left: 1.1rem; }
.stack{ margin:0; padding-left: 1.1rem; }

/* Contact */
.contact{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contact label{
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.contact label.full{
  grid-column: 1 / -1;           /* textarea ou message sur 2 colonnes en desktop */
}
.contact input,
.contact textarea{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: .9rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;                   /* s’étire pour remplir la colonne */
  box-sizing: border-box;        /* évite tout débordement */
}
.contact input:focus,
.contact textarea:focus{
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-ring);
}
.small{ color: var(--color-muted); margin: .5rem 0 0; }

/* ===== Mobile: 1 colonne ===== */
@media (max-width: 640px){
  .contact{
    grid-template-columns: 1fr;  /* pile les champs l’un sous l’autre */
    gap: 12px;
  }
  .contact label,
  .contact .field,
  .contact .row{
    grid-column: auto;
    width: 100%;
    min-width: 0;                /* empêche la grille d’élargir le conteneur */
  }
  .contact button[type="submit"]{ width: 100%; }
}

/* Footer */
.site-footer{ border-top:1px solid rgba(0,0,0,.08); padding: 2rem 0; background:#fff; }
.footer-inner{ display:flex; gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.footer-nav a{ color:#4d4d50; text-decoration:none; margin-right:1rem; }
.footer-nav a:hover{ color:#1d1d1f; }

/* Elevation on scroll (header) */
.elevated{ box-shadow: 0 6px 30px rgba(0,0,0,.08); }

/* Reveal animations */
.reveal{ opacity: 0; transform: translateY(12px); }
.reveal.in{ opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .reveal, .reveal.in{ transition: none !important; }
}

/* Harmonisation finale des couleurs de liens (hors boutons) */
a, .menu a, .footer-nav a { color: var(--color-primary); }
a:hover, .menu a:hover, .footer-nav a:hover { color: var(--color-muted); }

.brand:hover { text-decoration: none; }

/* Hero mockup bloc */
.hero-mockup{
  position: relative;
  display: grid;
  place-items: end center;
  width: min(1100px, 92%);
  margin: clamp(120px, 10vw, 180px) auto 0;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,.14);
  overflow: hidden;
  height: clamp(420px, 48vw, 620px);
  background-color: #f6f5f4;
  background-image: url("assets/image_de_fond_neodaste1.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50% 0%;
}
.hero-mockup__bg{
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--bg-pos-x) var(--bg-pos-y);
  display: block;
}
.hero-mockup__overlay{
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  width: min(95%, 1000px);
  height: auto;
  pointer-events: none;
}
@media (max-width: 600px){
  .hero { padding-bottom: 8px; }
  .hero-mockup { margin-top: 48px; }
  .hero-mockup__overlay { width: 96%; }
  .hero-subtitle{
    max-width: 92%;
    line-height: 1.7;
    font-size: 1.05rem;
  }
}

/* Paragraphe en pyramide inversée */
.hero-subtitle.pyramid{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.25rem;
  margin: 0 auto 1.6rem;
  line-height:1.65;
  text-align:center;
}
.hero-subtitle.pyramid span{ display:block; }
.hero-subtitle.pyramid span:nth-child(1){ max-width: 36ch; }
.hero-subtitle.pyramid span:nth-child(2){ max-width: 48ch; }
.hero-subtitle.pyramid span:nth-child(3){ max-width: 58ch; }
.hero-subtitle.pyramid span:nth-child(4){ max-width: 66ch; }
.hero-subtitle.pyramid span:nth-child(5){ max-width: 72ch; }
@media (max-width: 640px){
  .hero-subtitle.pyramid span:nth-child(1){ max-width: 28ch; }
  .hero-subtitle.pyramid span:nth-child(2){ max-width: 36ch; }
  .hero-subtitle.pyramid span:nth-child(3){ max-width: 44ch; }
  .hero-subtitle.pyramid span:nth-child(4){ max-width: 50ch; }
  .hero-subtitle.pyramid span:nth-child(5){ max-width: 54ch; }
}

/* ======================================================
   ✅ Cookie banner — version optimisée desktop + mobile
   ====================================================== */
#cookie-banner.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff;
  color: #1d1d1f;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-radius: 16px;
  width: min(920px, calc(100% - 1.5rem));
  padding: .9rem 1.1rem;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Texte et liens */
#cookie-banner .cookie-text { 
  margin: 0; 
  line-height: 1.5; 
  flex: 1 1 auto; 
}
#cookie-banner .cookie-text a { 
  color: #0071e3; 
  text-decoration: underline; 
  font-weight: 500; 
}

/* Boutons */
#cookie-banner .cookie-actions { 
  display: flex; 
  align-items: center; 
  gap: .6rem; 
  white-space: nowrap; 
}
#cookie-banner .btn-accept,
#cookie-banner .btn-decline {
  padding: .7rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
#cookie-banner .btn-accept { 
  background: #1d1d1f; 
  color: #fff; 
  box-shadow: 0 4px 14px rgba(0,0,0,.08); 
}
#cookie-banner .btn-accept:hover { background: #2a2a2c; }
#cookie-banner .btn-decline { 
  background: #ebedf0; 
  color: #1d1d1f; 
  border-color: #d7d9dd; 
}
#cookie-banner .btn-decline:hover { background: #e3e5e8; }

/* ===== Mobile : affichage empilé et compact ===== */
@media (max-width: 600px){
  #cookie-banner.cookie-banner {
    flex-direction: column;          /* empile texte + boutons */
    align-items: stretch;
    text-align: left;
    gap: .75rem;
    padding: 1rem .9rem;
    width: calc(100% - 1.2rem);
    border-radius: 14px;
  }

  #cookie-banner .cookie-text {
    line-height: 1.55;
    font-size: .95rem;
  }

  #cookie-banner .cookie-actions {
    display: flex;
    flex-direction: column;          /* boutons empilés */
    gap: .6rem;
    width: 100%;
  }

  #cookie-banner .btn-accept,
  #cookie-banner .btn-decline {
    width: 100%;
    font-size: .95rem;
    padding: .8rem 1rem;
    border-radius: 10px;
  }

  #cookie-banner .btn-accept {
    background: #1d1d1f;
    color: #fff;
  }
  #cookie-banner .btn-decline {
    background: #f3f4f6;
    color: #111;
    border-color: #ddd;
  }

  #cookie-banner .cookie-text a {
    color: #0071e3;
    text-decoration: underline;
    font-weight: 500;
  }
}


/* Tooltip glassy */
.nd-tooltip{
  position: fixed;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 22px 48px rgba(0,0,0,.14), 0 2px 10px rgba(0,0,0,.06);
  color: #0d0d0d;
  padding: .65rem .9rem;
  border-radius: 22px;
  font-size: .95rem;
  line-height: 1.2;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  transform: translateY(6px) scale(.985);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
}
.nd-tooltip.show{ display: inline-flex; opacity: 1; transform: translateY(0) scale(1); }
.nd-tooltip::after{
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: inherit;
  border: inherit;
  border-left: none; border-top: none;
  box-shadow: 4px 4px 16px rgba(0,0,0,.08);
  border-radius: 2px;
}
.nd-tooltip.tip--below::after{ top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.nd-tooltip.tip--above::after{ bottom: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.nd-tooltip .nd-label{ font-weight: 600; opacity: .72; margin-right: .15rem; }
.nd-tooltip .nd-value{ letter-spacing: .1px; }
.nd-tooltip .nd-copy{
  margin-left: .25rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  font-size: .85rem; cursor: pointer;
}
.nd-tooltip .nd-copy:hover{ background: #fff; }
.nd-tooltip .nd-copy:active{ transform: translateY(1px); }
@media (prefers-reduced-motion: reduce){
  .nd-tooltip{ transition: none; }
}

/* Socials */
.socials a{
  display:inline-flex; align-items:center; justify-content:center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
}
.socials a:hover{ background:#f0f0f0; border-color:#bbb; }
.socials img{ width:18px; height:18px; display:block; }

/* ✔ inclus / non inclus pour les offres */
.price .features{ list-style:none; padding:0; margin:0; }
.price .features li{ display:flex; gap:.5rem; align-items:flex-start; margin:.35rem 0; }
.price .features li::before{ content:"✔"; font-weight:700; display:inline-block; width:1.2rem; }
.price .features li.on::before{ color:#0f172a; opacity:.95; }
.price .features li.off::before{ color:#0f172a; opacity:.25; }
.price .features li.off{ opacity:.6; }
.price-meta{ margin:.25rem 0 .75rem; font-size:.95rem; color:#334155; }

/* Fix reveal/hover */
.pricing .price.reveal { transform: translateY(0); }
.pricing .price.reveal:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* Contour bleu façon "carte mise en avant" */
.price.highlight{
  position: relative;
  background: linear-gradient(180deg, #fff, #fbfbfd);
  border: 2px solid var(--color-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
/* Halo au hover pour la carte highlight */
.pricing .price.highlight:hover{
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 6px rgba(0, 113, 227, .10);
}
/* Badge (version finale) */
.price .badge{
  position:absolute; top:12px; right:12px;
  font-size:.75rem; padding:.25rem .5rem; border-radius:999px;
  background: #e8f2ff;
  color: var(--color-accent);
  border: 1px solid rgba(0,0,0,.06);
}

/* Effet hover spécifique "Solutions" */
#solutions .tile {
  position: relative;
  transition:
    transform 0.25s cubic-bezier(.4,1,.6,1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}
#solutions .tile:hover {
  transform: translateY(-6px);
  background: #f8fbff;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  border-color: rgba(0, 0, 0, 0.25);
}
#solutions .tile:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at top center, rgba(204, 204, 204, 0.493) 0%, transparent 40%);
  pointer-events: none;
}

/* ====== PRODUITS (rail façon Apple) — No black borders + auto states ====== */
:root {
  --slide-ar: 16 / 9;
  --slide-min-h: 420px;
  --rail-gap: 24px;
  --rail-pad-v: 8vh;
  --rail-pad-h: 6vw;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,.16);
}
/* Section */
.products {
  padding-block: clamp(64px, 10vh, 140px) clamp(56px, 8vh, 120px);
  position: relative;
  overflow: visible;
}
/* Rail — scroll-snap horizontal */
.product-rail {
  display: flex;
  gap: var(--rail-gap);
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--rail-pad-v) var(--rail-pad-h);
  scroll-padding-inline: 50%;
}
.product-rail::-webkit-scrollbar { display: none; }
/* Slides */
.product-slide{
  flex: 0 0 clamp(72%, 85vw, 1100px);
  aspect-ratio: var(--slide-ar);
  min-height: var(--slide-min-h);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  background: #000 center / cover no-repeat;
  background-image: var(--bg);
  transform: scale(.985);
  transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease, background-position .6s ease;
}
/* Active */
.product-slide.is-active{
  transform: scale(1.02);
  z-index: 1;
  background-position: var(--bg-pos-active, 50% 50%);
}
/* Voisines */
.product-slide.is-prev,
.product-slide.is-next{ opacity: .92; }
/* Overlay */
.product-overlay{
  position:absolute; inset:auto 0 0 0;
  padding: clamp(16px, 3.5vw, 32px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 85%);
}
.product-title{ margin: 0 0 .25rem 0; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700; }
.product-desc{ margin: 0 0 .75rem 0; font-size: clamp(.95rem, 1.6vw, 1.05rem); opacity: .95; }
.product-actions{ display:flex; gap:.6rem; flex-wrap: wrap; }
.product-actions .btn,
.product-actions .btn-ghost{
  display:inline-flex; align-items:center; justify-content:center;
  height: 38px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
  color:#111; background:#fff;
}
.product-actions .btn-ghost{ background: transparent; color:#fff; border-color: rgba(255,255,255,.5); }
/* Dots — minimal Apple-like (hollow) */
.product-dots {
  position: relative; /* Nécessaire pour positionner la capsule */
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: clamp(14px, 2.5vh, 24px);
}

/* Rail (capsule) derrière les dots */
.product-dots::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 24px; /* Hauteur de la capsule */
  width: 100px; /* Largeur de la capsule (ajuste si tu as plus de 4 dots) */
  background: rgba(0,0,0,.05);
  border-radius: 999px;
  z-index: 1; /* Derrière les points */
}

.product-dots .dot {
  /* Le bouton est maintenant transparent, c'est le ::before qui dessine le cercle */
  background: transparent;
  border: 0;
  width: 10px;
  height: 10px;
  padding: 6px; /* Augmente la zone de clic */
  border-radius: 50%;
  cursor: pointer;
  position: relative; 
  z-index: 2; /* IMPORTANT: les points sont DEVANT la capsule */
  transition: transform .2s ease;
}

/* le cercle (hollow) est dessiné ici */
.product-dots .dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset; /* contour fin */
  transition: background-color .2s ease, box-shadow .2s ease;
}

/* état actif : plein */
.product-dots .dot.is-active::before {
  background-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,0) inset; /* retire le contour */
}

/* état hover/focus (léger grossissement) */
.product-dots .dot:hover,
.product-dots .dot:focus {
  transform: scale(1.1);
}

.product-dots .dot.is-active {
  transform: scale(1.35); /* Le point actif reste plus gros */
}
/* A11y utilitaire */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .product-rail{ scroll-behavior: auto; }
  .product-slide{ transition: none; }
}

/* ====== SECTION IMPACT ====== */
.impact-lead {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.2rem);
  line-height: 1.65;
  color: var(--color-muted);
  text-align: center;
}
.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .impact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .impact-cards { grid-template-columns: 1fr; } }
.impact-card {
  background: var(--color-surface, #fff);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 1.6rem 1.8rem;
  text-align: left;
  transition: all 0.25s ease;
}
.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
  background: #f8fbff;
}
.impact-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.impact-card p { color: var(--color-muted); line-height: 1.6; margin: 0; }
.impact-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Reveal delay util */
.reveal.in { transition: opacity .6s ease, transform .6s ease var(--reveal-delay, 0s); }

/* Impact accents */
#impact .impact-lead strong {
  background: linear-gradient(90deg, #1d1d1f, #666);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* Séparation de la section */
#impact { background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%); }
/* Titres plus visibles */
#impact .impact-card h3 { font-weight: 600; color: #1d1d1f; }
/* Bouton principal : micro-animation */
#impact .btn { position: relative; transition: all 0.25s ease; }
#impact .btn::after { margin-left: 6px; display: inline-block; transition: transform 0.25s ease; }
#impact .btn:hover { background: #111; transform: translateY(-2px); }
/* Cascade reveal */
#impact .impact-card.reveal:nth-child(1) { --reveal-delay: .1s; }
#impact .impact-card.reveal:nth-child(2) { --reveal-delay: .2s; }
#impact .impact-card.reveal:nth-child(3) { --reveal-delay: .3s; }

/* CTA tarifs */
.pricing-cta { text-align: center; margin-top: 3rem; }
.pricing-cta .btn { font-size: 1.1rem; padding: 0.9rem 2.4rem; }

/* ======================================================
   ✅ Header & mobile nav (version finale propre)
   ====================================================== */
.site-header{ --header-h: 64px; } /* ajuste si ton header est plus haut */

/* Bouton hamburger (3 barres animées -> X) */
.nav-toggle{
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 0; margin: 0;
  border-radius: 12px; cursor: pointer; outline: none;
}
.nav-toggle:focus-visible{ box-shadow: 0 0 0 3px rgba(0,113,227,.28); }

/* = Longueur identique des 3 barres = */
.nav-toggle .bar{
  position: absolute;
  left: 50%;
  width: 24px;              /* longueur fixe identique */
  height: 2px;
  margin-left: -12px;       /* centre parfaitement */
  background: #1d1d1f;
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* positions fermées (toutes identiques en longueur) */
.nav-toggle .bar:nth-child(1){ top: 14px; }
.nav-toggle .bar:nth-child(2){ top: 21px; }
.nav-toggle .bar:nth-child(3){ top: 28px; }

/* état ouvert -> X propre, même longueur */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/* Overlay (clique pour fermer) — injecté en JS */
.mobile-overlay{
  position: fixed; inset: var(--header-h,64px) 0 0 0;
  background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  backdrop-filter: saturate(160%) blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  z-index: 48;
}
.mobile-overlay.show{ opacity: 1; pointer-events: auto; }

/* ===== Layout tablette/mobile ===== */
@media (max-width: 1024px){
  .header-inner{ 
    display:flex; 
    align-items:center; 
    gap:.5rem; 
  }
  .header-inner > * { min-width: 0; }

  /* Hamburger visible à gauche */
  .nav-toggle{ 
    display:inline-block; 
    order:1; 
    margin-right:.25rem; 
  }

  /* Logo au centre naturellement */
  .brand{ order:2; margin-left:.25rem; }

  /* CTA ("Devis") à droite */
  .cta{
    order:3;
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    font-size:0;                /* masque le texte long */
    padding:.55rem .9rem;
    border-radius:999px;
  }
  .cta::after{
    content:"Devis";
    font-size:.95rem;
    font-weight:600;
    line-height:1;
  }

  /* Menu mobile sous le header */
  .menu{
    position: fixed;
    inset: var(--header-h,64px) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    z-index: 49;
  }
  .menu.open{ display:flex; }

  .menu a{
    display:block; width:100%; padding:.95rem 1rem;
    border-radius:12px; text-decoration:none;
  }
}

/* Evite les hovers agressifs sur tactile */
@media (hover:none){ .menu a:hover{ text-decoration:none; } }

/* Empêche le scroll du body quand le menu est ouvert (géré par JS) */
body.scroll-lock{ overflow:hidden; }

/* Ajustements mobiles fins */
@media (max-width: 600px){
  .cta, .btn, .btn-ghost{ padding:.9rem 1.1rem; border-radius:16px; }
  .hero-subtitle{ max-width:92%; line-height:1.7; }
}

/* ===== Ajustement espacement hero sur mobile ===== */
@media (max-width: 640px){
  .hero {
    padding-top: 4rem;        /* au lieu des ~8rem actuels */
  }
  .hero-title {
    margin-top: 1.25rem;      /* rapproche le titre du haut */
  }
}


/* ===== Pricing : rail horizontal sur mobile ===== */
@media (max-width: 640px){
  .pricing{
    display: flex;                 /* au lieu de grid */
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 8px 12px;             /* petit padding interne */
    margin: 0 -12px;               /* tire à fond jusqu’aux bords */
  }
  .pricing::-webkit-scrollbar{ display:none; } /* cache la barre iOS/Chrome */

  .price{
    flex: 0 0 85%;                 /* largeur d’une carte visible + un bout de la suivante */
    min-width: 280px;              /* garde une taille lisible */
    scroll-snap-align: center;     /* s’aligne au centre au relâchement */
    scroll-margin-inline: 12px;
  }

  /* option : carte mise en avant un poil plus large si tu veux */
  .price.highlight{ flex-basis: 88%; }
}

/* ===== Footer links : empilés sur mobile ===== */
@media (max-width: 640px){
  .footer-nav{
    display: flex;
    flex-direction: column;    /* empile les liens */
    align-items: flex-start;   /* alignés à gauche */
    gap: .4rem;                /* petit espace entre chaque lien */
  }
  .footer-nav a{
    display: block;
    width: 100%;
    text-align: left;
  }
}
/* ===== Pricing : verrouillage du geste en horizontal (mobile + tablette) ===== */
@media (max-width: 1024px){
  .pricing{
    /* déjà: display:flex + overflow-x:auto + snap…  on complète : */
    touch-action: pan-x;                 /* verrouille le geste au X */
    overscroll-behavior-x: contain;      /* évite le "glissement élastique" en X */
    overscroll-behavior-y: none;         /* stoppe la propagation verticale */
    overflow-y: hidden;                  /* empêche tout décalage vertical du rail */
    -webkit-overflow-scrolling: touch;   /* conserve l’inertie iOS */
  }
}

/* ===== Pricing : rail horizontal qui laisse passer le scroll vertical (mobile + tablette) ===== */
@media (max-width: 1024px){
  .pricing{
    /* on LAISSE le scroll vertical passer à la page */
    touch-action: auto;                 /* <-- au lieu de pan-x */
    overscroll-behavior-x: contain;     /* pas d'effet élastique en X dans le rail */
    overscroll-behavior-y: auto;        /* laisse la page gérer le scroll vertical */
    overflow-y: hidden;                 /* le rail lui-même ne scroll pas en Y */
    -webkit-overflow-scrolling: touch;  /* inertie iOS en X */
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* Sur tactile, on neutralise l'agrandissement au "hover" pour éviter tout clipping */
  @media (hover: none){
    .price:hover,
    .pricing .price.reveal:hover{
      transform: none !important;
      box-shadow: 0 10px 30px rgba(0,0,0,.06);
    }
  }

  /* Micro-stabilité du rendu pendant les scroll/transform */
  .price{
    will-change: transform;
    contain: paint; /* évite des "sauts" visuels dans un conteneur scrollable */
  }
}


/* === Language dropdown (header) === */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 60; /* au-dessus du header (z=50) si besoin */
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  backdrop-filter: saturate(170%) blur(12px);
  border: 1px solid rgba(0,0,0,.10);
  padding: .45rem .75rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lang-btn:hover { background: #f4f4f6; }
.lang-btn:active { transform: translateY(1px); }

.lang-btn .lang-flag {
  width: 18px; height: 12px; display: block; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
}
.lang-btn .lang-arrow { transition: transform .18s ease; }

/* Menu flottant */
.lang-menu {
  position: absolute;
  top: calc(100% + .4rem);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  padding: .35rem 0;
  margin: 0;
  list-style: none;
  min-width: 160px;
  display: none;
}
.lang-menu.open { display: block; animation: langFade .15s ease; }

.lang-menu li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary);
  transition: background .12s ease;
}
.lang-menu li:hover { background: rgba(0,0,0,.04); }
.lang-menu li img { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset; }
.lang-menu li .check { margin-left: auto; color: var(--color-accent); font-weight: 700; }
.lang-menu li.active .check { display: inline; }
.lang-menu li:not(.active) .check { display: none; }

@keyframes langFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Placement dans le header (à côté du CTA) */
.header-inner .lang-dropdown { margin-left: .5rem; }

/* Mobile: s’assurer que ça tient sur une ligne ou se wrappe proprement */
@media (max-width: 560px) {
  .header-inner { row-gap: .5rem; }
}

/* ===== Header mobile: grille 4 colonnes pour éviter les chevauchements ===== */
@media (max-width: 640px){
  /* Grille : [hamburger] [brand flex] [devis] [lang] */
  .header-inner{
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    column-gap: .5rem;
    padding: .6rem 0; /* un peu plus compact */
  }

  /* Chaque bloc à sa place, sans "order" ni margin-left:auto */
  .nav-toggle{ grid-column: 1; justify-self: start; }
  .brand{ grid-column: 2; justify-self: center; min-width: 0; }
  .cta{ grid-column: 3; justify-self: end; margin: 0; }
  .lang-dropdown{ grid-column: 4; justify-self: end; margin: 0; }

  /* Le nom de marque ne déborde jamais */
  .brand-name{
    font-size: 1rem;              /* un poil plus petit sur mobile */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Icône/logo compacte */
  .brand-mark{
    width: 26px; height: 26px;    /* ajuste si besoin */
    flex: 0 0 auto;
  }

  /* CTA “Devis” reste court et non extensible */
  .cta{
    font-size: 0;                  /* on garde le ::after "Devis" */
    padding: .5rem .7rem;
    border-radius: 999px;
  }
  .cta::after{
    content: "Devis";
    font-size: .95rem;
    line-height: 1;
  }

  /* Bouton hamburger : taille compacte, sans déborder */
  .nav-toggle{
    width: 40px; height: 40px;
  }
  .nav-toggle .bar{ width: 22px; margin-left: -11px; }

  /* Langues : bouton compact */
  .lang-btn{
    padding: .4rem .6rem;
  }
}

/* Optionnel : si ça touche encore, baisse légèrement la hauteur de header */
@media (max-width: 640px){
  .site-header{ --header-h: 56px; }
}

/* ======================================================
   Carrousel Projets (Effet Apple Scroll Snap + Flèches)
   ====================================================== */

.project-gallery {
  position: relative; /* Indispensable pour que les flèches restent sur l'image */
  border-radius: 20px;
  overflow: hidden; /* Empêche les images de déborder des coins arrondis */
  background: var(--color-surface-2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* Magnétisme horizontal */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Fluidité parfaite sur iOS */
  scrollbar-width: none; /* Cache la barre sur Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Cache la barre sur Chrome/Safari */
}

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  /* CHANGE CETTE LIGNE : de 'cover' à 'contain' */
  object-fit: contain; 
  scroll-snap-align: center;
}

/* =========================================
   FLÈCHES DE LA GALERIE (Effet Verre Dépoli)
   ========================================= */

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4); /* Bordure très fine */
  
  /* Effet verre dépoli (Glassmorphism) */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Pour Safari */
  
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1d1d1f;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

/* Animations au survol et au clic */
.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Positionnement Gauche / Droite */
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

/* Rendre les flèches un peu plus petites sur mobile */
@media (max-width: 640px) {
  .gallery-arrow {
    width: 36px;
    height: 36px;
  }
  .gallery-arrow svg {
    width: 16px;
    height: 16px;
  }
  .gallery-arrow.prev { left: 12px; }
  .gallery-arrow.next { right: 12px; }
}

/* =========================================
   DISPOSITION DU PROJET (Grid Layout)
   ========================================= */

/* Le conteneur principal du projet */
.project-layout {
  display: grid;
  /* Définit deux colonnes :
     - La première (galerie) prend 1.2 part de l'espace
     - La deuxième (texte) prend 1 part
     Cela donne plus de place aux images. */
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem; /* Espace entre la galerie et le texte */
  align-items: center; /* Centre le texte verticalement par rapport aux images */
  padding: 1.5rem;
  border-radius: 32px;
}

/* Le bloc de texte */
.project-content {
  padding: 1rem 0;
}

/* AJUSTEMENT MOBILE : Pour que ça redevienne une seule colonne sur téléphone */
@media (max-width: 900px) {
  .project-layout {
    /* On repasse sur une seule colonne qui prend toute la largeur */
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Sur mobile, on met l'image au-dessus du texte */
  .project-gallery {
    order: -1; 
  }
}