/* AZ Maçonnerie V2.0 — Socle commun multisupport
   Aucun breakpoint de mise en page dans ce fichier. */
:root{
  --ink:#161412;--paper:#f4efe6;--white:#fff;--clay:#a95136;--ochre:#c78b42;
  --mocha:#765646;--gold:#d9b171;--muted:#6f6962;--line:rgba(22,20,18,.15);
  --max:1280px;--radius:1.25rem;--header:76px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,Arial,sans-serif;line-height:1.55}
html,body{max-width:100%;overflow-x:clip}
body>*{max-width:100%}
img{display:block;width:100%;height:auto}
a{color:inherit}
button,input,select,textarea{font:inherit}
.container{width:min(calc(100% - 2rem),var(--max));margin-inline:auto}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.03;margin:0}
h1{font-size:clamp(3rem,7.4vw,7.8rem);max-width:11ch;letter-spacing:-.045em}
h2{font-size:clamp(2.25rem,5vw,5rem);max-width:13ch;letter-spacing:-.035em}
h3{font-size:clamp(1.35rem,2vw,2rem)}
p{margin:0}
.eyebrow{font-size:.76rem;text-transform:uppercase;letter-spacing:.19em;font-weight:900;color:var(--clay)}
.skip{position:fixed;top:0;inset-inline-start:0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;z-index:9999}.skip:focus{width:auto;height:auto;clip-path:none;overflow:visible;inset-inline-start:1rem;top:1rem;background:#fff;color:#111;padding:1rem;border-radius:.5rem}
.header{position:fixed;z-index:50;inset:0 0 auto;height:var(--header);color:#fff;background:linear-gradient(rgba(10,10,10,.76),rgba(10,10,10,.15));transition:.35s}
.header.scrolled{background:rgba(18,17,16,.94);backdrop-filter:blur(14px)}
.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;font-weight:900;letter-spacing:.04em}
.brand-mark{width:44px;height:44px;border:1px solid rgba(255,255,255,.45);border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;background:linear-gradient(135deg,var(--gold),var(--clay))}
.nav{display:flex;align-items:center;gap:1.2rem;font-size:.9rem}.nav a{text-decoration:none;opacity:.9}.nav a:hover{opacity:1}
.langs{display:flex;gap:.35rem}.langs a{border:1px solid rgba(255,255,255,.28);padding:.32rem .48rem;border-radius:.5rem}
.menu{display:none;border:0;background:none;color:#fff;font-size:1.5rem}
.hero{position:relative;min-height:100svh;overflow:hidden;background:#111;color:#fff;display:grid;align-items:end}
.hero-media,.hero-slide{position:absolute;inset:0}
.hero-slide{opacity:0;transition:opacity 1.5s ease;transform:scale(1.02)}
.hero-slide.active{opacity:1;animation:zoom 9s linear forwards}
.hero-slide img{height:100%;object-fit:cover}
@keyframes zoom{to{transform:scale(1.075)}}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,9,9,.86),rgba(9,9,9,.35) 55%,rgba(9,9,9,.06)),linear-gradient(0deg,rgba(9,9,9,.68),transparent 45%)}
.hero-content{position:relative;z-index:2;padding:calc(var(--header) + 5rem) 0 4.5rem}
.hero .eyebrow{color:#f2c587}.hero-copy{font-size:clamp(1.05rem,2vw,1.32rem);max-width:55ch;margin-top:1.35rem;color:rgba(255,255,255,.85)}
.actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}
.btn{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;border-radius:999px;padding:.9rem 1.2rem;font-weight:900;border:1px solid transparent}
.btn-primary{background:var(--clay);color:#fff}.btn-ghost{border-color:rgba(255,255,255,.58);color:#fff;background:rgba(255,255,255,.06)}
.hero-proof{display:flex;gap:2rem;flex-wrap:wrap;margin-top:3rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.24);max-width:750px}
.hero-proof strong{display:block;font-family:Georgia,serif;font-size:1.6rem}.hero-proof span{font-size:.8rem;color:rgba(255,255,255,.7)}
section{padding:clamp(5rem,10vw,9rem) 0}
.intro{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,7vw,8rem);align-items:end}
.intro p:last-child{font-size:clamp(1.08rem,2vw,1.4rem);color:var(--muted)}
.story{background:#171513;color:#fff}
.story h2,.story h3{color:#fff}.story .eyebrow{color:#e8bd83}
.story-step{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,6vw,6rem);align-items:center;margin-top:5rem}
.story-step:nth-child(even) .story-image{order:2}
.story-image{min-height:540px;border-radius:var(--radius);overflow:hidden;position:relative}
.story-image img{height:100%;object-fit:cover}
.step-no{font-family:Georgia,serif;font-size:4rem;color:rgba(255,255,255,.18)}
.story-text p{max-width:50ch;color:rgba(255,255,255,.72);margin-top:1rem}
.services-head{display:flex;align-items:end;justify-content:space-between;gap:2rem}
.services-head p{max-width:48ch;color:var(--muted)}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:3rem}
.service{min-height:420px;border-radius:var(--radius);overflow:hidden;position:relative;background:#222;color:#fff}
.service img{height:100%;object-fit:cover;transition:.7s}
.service:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.82),transparent 62%)}
.service-content{position:absolute;z-index:2;inset:auto 1.4rem 1.4rem}
.service p{font-size:.9rem;color:rgba(255,255,255,.75);margin-top:.5rem}
.service:hover img{transform:scale(1.045)}
.precision{padding:0;background:#111;color:#fff}
.precision-wrap{display:grid;grid-template-columns:1.2fr .8fr;min-height:85svh}
.precision-image img{height:100%;object-fit:cover}
.precision-copy{padding:clamp(3rem,8vw,8rem);display:flex;flex-direction:column;justify-content:center}
.precision-copy h2{color:#fff}.precision-copy p{color:rgba(255,255,255,.72);margin-top:1.2rem;max-width:45ch}
.beforeafter{background:#ded4c6}
.ba-wrap{display:grid;grid-template-columns:.7fr 1.3fr;gap:3rem;align-items:center}
.compare{position:relative;overflow:hidden;border-radius:var(--radius);aspect-ratio:16/10;box-shadow:0 25px 70px rgba(0,0,0,.18)}
.compare img{position:absolute;inset:0;height:100%;object-fit:cover}
.compare .after{clip-path:inset(0 50% 0 0)}
.compare-line{position:absolute;left:50%;top:0;bottom:0;width:3px;background:#fff;transform:translateX(-50%);box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.compare-range{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize}
.compare-label{position:absolute;top:1rem;padding:.45rem .65rem;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font-size:.75rem;font-weight:900}
.label-before{left:1rem}.label-after{right:1rem}
.testimonial{background:var(--clay);color:#fff;text-align:center}
.testimonial blockquote{font-family:Georgia,serif;font-size:clamp(2rem,5vw,5rem);line-height:1.06;max-width:21ch;margin:0 auto}
.testimonial p{margin-top:1.5rem;color:rgba(255,255,255,.8)}
.delivery{position:relative;min-height:90svh;display:grid;align-items:end;color:#fff;overflow:hidden;background:#111}
.delivery img{position:absolute;inset:0;height:100%;object-fit:cover}
.delivery:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.78),rgba(0,0,0,.03) 65%)}
.delivery-content{position:relative;z-index:2;padding:4rem 0}.delivery h2{color:#fff;max-width:15ch}.delivery p{max-width:50ch;color:rgba(255,255,255,.8);margin-top:1rem}
.contact{background:#fff}
.contact-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:4rem}
.contact-card{background:var(--paper);padding:clamp(1.5rem,4vw,3rem);border-radius:var(--radius)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:grid;gap:.4rem}.full{grid-column:1/-1}
label{font-weight:800;font-size:.88rem}
input,select,textarea{width:100%;border:1px solid #cfc5b9;border-radius:.75rem;padding:.85rem;background:#fff}
textarea{min-height:130px;resize:vertical}
.footer{background:#151412;color:#fff;padding:3rem 0}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}.footer a{text-decoration:none;color:rgba(255,255,255,.72);display:block;margin:.35rem 0}
.fab{position:fixed;right:1rem;bottom:1rem;z-index:40;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:#1d6f48;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 14px 35px rgba(0,0,0,.25)}
.reveal{opacity:0;transform:translateY(28px);transition:.8s}.reveal.visible{opacity:1;transform:none}




/* V1.4 — Hero plein écran responsive + méthode compacte */
.hero-v14{min-height:clamp(680px,88svh,940px);padding:0;align-items:center}
.hero-v14 .hero-slide{transform:none;animation:none}
.hero-v14 .hero-slide.active{animation:heroZoom 8s ease-out both}
.hero-v14 .hero-slide img{object-fit:cover;object-position:center 44%}
.hero-v14 .hero-slide:nth-child(1) img{object-position:center 48%}
.hero-v14 .hero-slide:nth-child(2) img{object-position:center 48%}
.hero-v14 .hero-slide:nth-child(3) img{object-position:center 46%}
.hero-v14 .hero-slide:nth-child(4) img{object-position:center 42%}
.hero-v14 .hero-slide:nth-child(5) img{object-position:center 46%}
@keyframes heroZoom{from{transform:scale(1.01)}to{transform:scale(1.055)}}
.hero-v14:after{display:none}.hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(5,5,5,.9) 0%,rgba(5,5,5,.68) 38%,rgba(5,5,5,.17) 72%,rgba(5,5,5,.08)),linear-gradient(0deg,rgba(5,5,5,.5),transparent 50%)}
.hero-v14 .hero-content{padding:calc(var(--header) + 4rem) 0 5.5rem;align-self:center}
.hero-v14 h1{font-size:clamp(3.1rem,6.1vw,6.7rem);max-width:9.5ch;text-wrap:balance}
.hero-v14 .hero-copy{max-width:58ch}
.hero-controls{position:absolute;z-index:4;right:clamp(1rem,4vw,4rem);bottom:2.2rem;display:flex;align-items:center;gap:.7rem}
.hero-dots{display:flex;gap:.55rem}.hero-dot{width:11px;height:11px;border-radius:50%;border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.3);padding:0;cursor:pointer}.hero-dot.active{background:#fff;transform:scale(1.15)}
.hero-arrow{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.42);background:rgba(0,0,0,.3);color:#fff;font-size:1.7rem;cursor:pointer}
.method-strip{padding:2.2rem 0 2.7rem;background:#f5efe7}
.method-heading{text-align:center;margin-bottom:1.5rem}.method-heading h2{max-width:none;font-size:clamp(1.65rem,3vw,2.7rem)}
.method-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:.9rem}
.method-card{position:relative;min-height:175px;border-radius:1rem;overflow:hidden;background:#171513;color:#fff;cursor:pointer;isolation:isolate;outline-offset:3px}
.method-card img{position:absolute;inset:0;height:100%;object-fit:cover;z-index:-2}.method-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.86),rgba(0,0,0,.12));z-index:-1}
.method-card>div{position:absolute;left:1rem;right:1rem;bottom:.9rem}.method-card h3{font-size:1.08rem}.method-card p{font-size:.78rem;color:rgba(255,255,255,.76);margin-top:.25rem}
.method-no{position:absolute;left:.9rem;top:.65rem;font-family:Georgia,serif;font-size:2rem;font-weight:700;text-shadow:0 2px 8px #000}
.method-card:hover img,.method-card:focus img{transform:scale(1.045);transition:transform .55s ease}




/* =========================================================
   V1.5 — HERO ÉQUILIBRÉ, PLUS LISIBLE ET PLUS PHOTOGRAPHIQUE
   ========================================================= */
.hero-v14{min-height:clamp(650px,82svh,860px)}
.hero-v14 .hero-content{padding:calc(var(--header) + 3.25rem) 0 3.8rem}
.hero-v14 h1{font-size:clamp(2.8rem,5.2vw,5.7rem);max-width:10.7ch;line-height:.98}
.hero-v14 .hero-copy{margin-top:1rem;max-width:56ch;font-size:clamp(1rem,1.5vw,1.2rem)}
.hero-v14 .actions{margin-top:1.55rem}
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(5,5,5,.82) 0%,rgba(5,5,5,.58) 36%,rgba(5,5,5,.18) 68%,rgba(5,5,5,.05) 100%),
    linear-gradient(0deg,rgba(5,5,5,.34),transparent 48%);
}






/* V1.6 — Frise interactive avec photo et texte */
.method-card{
  border:0;padding:0;text-align:left;font:inherit;
}
.method-card-copy{
  position:absolute;left:1rem;right:1rem;bottom:.9rem;display:grid;gap:.18rem;
}
.method-card-copy strong{
  font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.08;
}
.method-card-copy small{
  font-size:.78rem;color:rgba(255,255,255,.76);line-height:1.3;
}
.method-card.active{
  outline:3px solid var(--clay);outline-offset:3px;
}
.method-card.active:before{
  content:"";position:absolute;inset:0;border:2px solid rgba(255,255,255,.72);
  border-radius:inherit;z-index:2;pointer-events:none;
}
.method-details{margin-top:1.35rem}
.method-detail{
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  min-height:420px;background:#171513;color:#fff;border-radius:1.25rem;
  overflow:hidden;
}
.method-detail[hidden]{display:none}
.method-detail-media{min-height:420px;overflow:hidden;background:#282522}
.method-detail-media img{height:100%;object-fit:cover;object-position:center}
.method-detail-copy{
  padding:clamp(2rem,5vw,4.5rem);display:flex;flex-direction:column;
  justify-content:center;
}
.method-detail-no{
  color:var(--gold);font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.8rem,5vw,5rem);line-height:1;opacity:.82;
}
.method-detail-copy h3{
  margin-top:.6rem;font-size:clamp(1.8rem,3vw,3.2rem);color:#fff;
}
.method-detail-copy p{
  margin-top:1rem;color:rgba(255,255,255,.76);font-size:clamp(1rem,1.4vw,1.18rem);
  max-width:48ch;
}
.method-detail.active{animation:methodFade .45s ease both}
@keyframes methodFade{
  from{opacity:.25;transform:translateY(10px)}
  to{opacity:1;transform:none}
}




/* V1.7 Consolidate — multilingual parity and RTL */
body.rtl-page{font-family:Arial,"Noto Sans Arabic",sans-serif}
body.rtl-page .header-inner,
body.rtl-page .nav,
body.rtl-page .actions,
body.rtl-page .method-card-copy,
body.rtl-page .story-text,
body.rtl-page .service-content,
body.rtl-page .precision-copy,
body.rtl-page .delivery-content,
body.rtl-page .contact-grid,
body.rtl-page .footer-grid{text-align:right}
body.rtl-page .method-card{text-align:right}
body.rtl-page .compare .after{clip-path:inset(0 0 0 50%)}
body.rtl-page .compare-line{left:auto;right:50%}
body.rtl-page input,
body.rtl-page textarea,
body.rtl-page select{text-align:right}
.langs a[aria-current="page"]{text-decoration:underline;text-underline-offset:.28em;font-weight:800}


/* =========================================================
   V1.9 — RESPONSIVE METHOD STORY
   Desktop : panneau texte + image.
   Mobile  : accordéon narratif local, sans étiquettes distantes.
   ========================================================= */

/* Le texte devient prioritaire dans le panneau desktop. */


/* Tablette : toujours deux zones, mais plus équilibrées. */


/* Mobile : transformation complète en accordéon narratif. */

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

@media(prefers-reduced-motion:reduce){.hero-v14 .hero-slide.active{animation:none}}

@media(prefers-reduced-motion:reduce){
  .method-detail.active{animation:none}
}

@media (prefers-reduced-motion:reduce){
  .method-card,
  .method-detail{scroll-behavior:auto}
}

/* =========================================================
   V5.0 — CINEMATIC FLOW
   Crossfade continu, Ken Burns sans snap-back et rythme resserré.
   ========================================================= */
.hero-v14 .hero-slide{
  opacity:0;
  transform:scale(1.012);
  will-change:opacity,transform;
  backface-visibility:hidden;
  transition:opacity 1.5s cubic-bezier(.22,.61,.36,1);
}
.hero-v14 .hero-slide.active{
  opacity:1;
  z-index:2;
  animation:heroKenBurnsV5 9.2s cubic-bezier(.16,.84,.34,1) both;
}
.hero-v14 .hero-slide.leaving{
  opacity:0;
  z-index:1;
  /* Le JS conserve ici la matrice de zoom réellement atteinte. */
}
@keyframes heroKenBurnsV5{
  from{transform:scale(1.012)}
  to{transform:scale(1.064)}
}

/* La narration conserve ses respirations, sans produire de tunnels vides. */
.story-step{margin-top:clamp(3.25rem,6vw,5.5rem)}
.story-step:first-of-type{margin-top:clamp(2.5rem,4vw,4rem)}
.story-image{min-height:clamp(360px,48vw,560px)}
.story-step:nth-of-type(2) .story-image,
.story-step:nth-of-type(5) .story-image{min-height:clamp(320px,40vw,480px)}
.story-step:nth-of-type(4) .story-image{min-height:clamp(300px,36vw,440px)}
.story-step:nth-of-type(6) .story-image{min-height:clamp(400px,52vw,620px)}
.story-step:nth-of-type(6){margin-bottom:clamp(1rem,3vw,3rem)}
.story-image img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.story-step.visible .story-image img{transform:scale(1.012)}

@media(prefers-reduced-motion:reduce){
  .hero-v14 .hero-slide,.hero-v14 .hero-slide.active,.hero-v14 .hero-slide.leaving{
    animation:none!important;transform:none!important;
  }
}


/* V5.1 — interaction, accessibilité et conversion */
.hero-progress{position:absolute;left:50%;bottom:1.15rem;width:min(18rem,42vw);height:2px;transform:translateX(-50%);overflow:hidden;background:rgba(255,255,255,.22);z-index:6;border-radius:999px}
.hero-progress-bar{display:block;width:100%;height:100%;transform-origin:left center;background:rgba(255,255,255,.92)}
@keyframes heroProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.contact-direct{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1.5rem;max-width:34rem}
.contact-direct-link{display:flex;align-items:center;justify-content:center;min-height:3rem;padding:.75rem 1rem;border:1px solid rgba(20,18,16,.16);border-radius:999px;font-weight:700;text-align:center;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.contact-direct-link:hover,.contact-direct-link:focus-visible{transform:translateY(-2px)}
.contact-direct-call{background:var(--ink);color:#fff}
.contact-direct-wa{background:#078a58;color:#fff;border-color:#078a58}
.contact-direct small{grid-column:1/-1;color:var(--muted);font-size:.78rem}
@media (prefers-reduced-motion:reduce){.hero-progress{display:none}.contact-direct-link{transition:none}}

/* V5.2 — sécurité d'affichage et diaporama mobile */
.reveal{opacity:1;transform:none}
.reveal-ready .reveal{opacity:0;transform:translateY(28px)}
.reveal-ready .reveal.visible{opacity:1;transform:none}
.hero-slide.no-ken-burns.active{animation:none!important;transform:scale(1.02)!important}

/* =========================================================
   V5.3 — RTL mobile hero hardening (Samsung / Chromium)
   Le moteur visuel du hero reste en LTR pour éviter les erreurs
   de composition GPU observées avec dir="rtl" sur certains Samsung.
   Le contenu éditorial conserve naturellement la direction RTL.
   ========================================================= */
body.rtl-page .hero-v14{
  direction:ltr;
  display:grid!important;
  position:relative!important;
  min-height:clamp(680px,88svh,940px)!important;
  padding:0!important;
  overflow:hidden!important;
  background-color:#111!important;
  background-image:url('/assets/images/hero-etude.webp');
  background-size:cover;
  background-position:center center;
}
body.rtl-page .hero-v14 .hero-media,
body.rtl-page .hero-v14 .hero-slide,
body.rtl-page .hero-v14 .hero-controls,
body.rtl-page .hero-v14 .hero-progress{
  direction:ltr;
}
body.rtl-page .hero-v14 .hero-media{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
}
body.rtl-page .hero-v14 .hero-slide{
  display:block!important;
  position:absolute!important;
  inset:0!important;
}
body.rtl-page .hero-v14 .hero-slide.active{
  opacity:1!important;
  visibility:visible!important;
}
body.rtl-page .hero-v14 .hero-slide img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
body.rtl-page .hero-v14 .hero-content{
  direction:rtl;
  text-align:right;
  position:relative!important;
  z-index:3!important;
}
body.rtl-page .hero-v14 .hero-overlay{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
}


/* =========================================================
   V5.6 — TRANSFORMATION GALLERY
   Galerie avant/après multi-projets, tactile, clavier et RTL-safe.
   ========================================================= */
.transformations{background:#ded4c6}
.transformations-heading{display:grid;grid-template-columns:minmax(0,.85fr) minmax(300px,1.15fr);gap:clamp(1.5rem,6vw,6rem);align-items:end}
.transformations-heading h2{max-width:14ch}
.transformations-heading>p:last-child{max-width:58ch;color:var(--muted);font-size:clamp(1rem,1.5vw,1.18rem)}
.transformation-tabs{display:flex;gap:.65rem;flex-wrap:wrap;margin:2.2rem 0 1.2rem}
.transformation-tab{border:1px solid rgba(22,20,18,.18);background:rgba(255,255,255,.42);color:var(--ink);border-radius:999px;padding:.72rem 1rem;font-weight:850;cursor:pointer;transition:.2s ease}
.transformation-tab:hover,.transformation-tab:focus-visible{transform:translateY(-2px);background:#fff}
.transformation-tab.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.transformation-stage{position:relative}
.transformation-panel[hidden]{display:none}
.transformation-panel.active{animation:transformPanelIn .35s ease both}
.transformation-compare{aspect-ratio:16/8.7;max-height:760px;border-radius:clamp(1rem,2vw,1.5rem);background:#1b1917}
.transformation-compare .compare-line:after{content:"↔";position:absolute;top:50%;left:50%;width:48px;height:48px;display:grid;place-items:center;transform:translate(-50%,-50%);border-radius:50%;background:#fff;color:#171513;font-weight:900;box-shadow:0 8px 24px rgba(0,0,0,.22)}
body.rtl-page .transformation-compare .compare-line:after{content:"↔"}
@keyframes transformPanelIn{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:700px){
 .transformations-heading{grid-template-columns:1fr;gap:1rem}
 .transformation-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1.5rem}
 .transformation-tab{width:100%;padding:.75rem .55rem}
 .transformation-compare{aspect-ratio:4/5;max-height:none}
 .transformation-compare img{object-position:center}
 .transformation-compare .compare-line:after{width:42px;height:42px}
}
@media(min-width:1600px){
 .transformation-compare{max-height:820px}
 .transformation-tabs{margin-top:2.8rem}
}
@media(prefers-reduced-motion:reduce){.transformation-tab,.transformation-panel.active{transition:none;animation:none}}


/* =========================================================
   V5.8.0 — PWA POWER BRIDGE
   Pont conversationnel vocal, formulaire conservé en fallback.
   ========================================================= */
.power-bridge-copy{margin-top:1rem;color:var(--muted);max-width:58ch;font-size:1.05rem}.power-bridge-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:1.6rem 0 1rem}.power-bridge-start{border:0;cursor:pointer}.power-bridge-fallback{font-weight:800;text-decoration:underline;text-underline-offset:4px}.pwa-install{border:1px solid rgba(22,20,18,.2);background:transparent;border-radius:999px;padding:.65rem 1rem;font-weight:800;cursor:pointer;margin-bottom:1rem}.conversation-dialog{width:min(760px,calc(100vw - 28px));max-width:760px;height:auto;max-height:calc(100dvh - 28px);margin:auto;padding:0;border:0;border-radius:26px;background:#f5efe6;color:var(--ink);box-shadow:0 30px 90px rgba(0,0,0,.42);overflow:hidden}.conversation-dialog[open]{display:flex}.conversation-dialog::backdrop{background:rgba(12,10,9,.72);backdrop-filter:blur(8px)}.conversation-shell{width:100%;max-height:calc(100dvh - 28px);padding:clamp(1rem,2.5vw,1.8rem);display:flex;flex-direction:column;gap:.8rem;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.conversation-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex:0 0 auto}.conversation-kicker{font-size:.72rem;font-weight:950;letter-spacing:.17em;color:var(--accent)}.conversation-header h2{font-size:clamp(1.55rem,4vw,2.35rem);margin-top:.2rem;line-height:1.02}.conversation-close{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:50%;background:#171513;color:#fff;font-size:1.5rem;cursor:pointer}.conversation-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem;flex:0 0 auto}.conversation-progress span{height:5px;border-radius:99px;background:rgba(22,20,18,.14)}.conversation-progress span.active{background:var(--accent)}.conversation-avatar{display:flex;align-items:center;justify-content:center;gap:.8rem;flex:0 0 auto}.avatar-disc{position:relative;width:74px;height:74px;display:grid;place-items:center;border-radius:50%;background:#171513;color:#fff;border:4px solid #fff;box-shadow:0 0 0 2px rgba(197,94,43,.35),0 8px 26px rgba(0,0,0,.15)}.avatar-disc span{font-weight:950;letter-spacing:.08em}.avatar-disc i{position:absolute;bottom:14px;width:5px;height:5px;border-radius:50%;background:#fff}.avatar-disc i:first-of-type{left:24px}.avatar-disc i:last-of-type{right:24px}.avatar-copy{display:flex;flex-direction:column;gap:.15rem}.avatar-copy strong{font-size:1rem}.avatar-copy span{font-size:.84rem;color:var(--muted)}.conversation-avatar.speaking .avatar-disc{animation:avatarTalk 1s ease-in-out infinite}.conversation-avatar.speaking .avatar-disc::after{content:"";position:absolute;inset:-9px;border:2px solid rgba(197,94,43,.45);border-radius:50%;animation:avatarWave 1s ease-out infinite}.conversation-log{min-height:110px;max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:.7rem;padding:.2rem;flex:1 1 auto}.conversation-message{max-width:86%;padding:.82rem 1rem;border-radius:18px;line-height:1.45}.conversation-message.assistant{background:#fff;align-self:flex-start;border-bottom-left-radius:5px}.conversation-message.user{background:#171513;color:#fff;align-self:flex-end;border-bottom-right-radius:5px}.conversation-state{text-align:center;font-weight:850;color:var(--muted);min-height:1.4em;flex:0 0 auto}.conversation-shell[data-voice-state="error"] .conversation-state{color:#9f2e20}.conversation-shell[data-voice-state="hearing"] .conversation-state{color:#2f6a43}.voice-orb{--voice-level:0;width:80px;height:80px;margin:0 auto;border-radius:50%;background:#171513;display:flex;align-items:center;justify-content:center;gap:5px;box-shadow:0 0 0 calc(var(--voice-level)*18px) rgba(197,94,43,.2);transform:scale(calc(1 + var(--voice-level)*.08));transition:transform .08s linear,box-shadow .08s linear;flex:0 0 80px}.voice-orb span{width:5px;height:20px;border-radius:5px;background:#fff;transition:height .08s linear}.voice-orb.hearing span:nth-child(1){height:calc(18px + var(--voice-level)*25px)}.voice-orb.hearing span:nth-child(2){height:calc(25px + var(--voice-level)*30px)}.voice-orb.hearing span:nth-child(3){height:calc(16px + var(--voice-level)*22px)}.conversation-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.8rem;flex:0 0 auto}.conversation-compose textarea{width:100%;min-height:82px;resize:vertical;border:1px solid rgba(22,20,18,.15);border-radius:16px;padding:.9rem;font:inherit;background:#fff}.conversation-controls{display:flex;flex-direction:column;gap:.55rem}.voice-button{width:52px;height:52px;border:0;border-radius:50%;background:var(--accent);color:#fff;font-size:1.25rem;cursor:pointer}.voice-button.active{background:#171513}.conversation-controls .btn{height:52px;padding-inline:1rem;border:0}.conversation-privacy{margin:0;font-size:.75rem;color:var(--muted);line-height:1.4;flex:0 0 auto}.conversation-final-actions{padding:.85rem;border:1px solid rgba(22,20,18,.12);border-radius:18px;background:#fff;flex:0 0 auto}.conversation-final-title{display:block;text-align:center;margin-bottom:.7rem}.conversation-final-buttons{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.conversation-modify{background:#ece4d9;color:var(--ink);border:0}.conversation-whatsapp{text-align:center;text-decoration:none}.conversation-shell[dir=rtl] .conversation-message.assistant{align-self:flex-end;border-bottom-left-radius:18px;border-bottom-right-radius:5px}.conversation-shell[dir=rtl] .conversation-message.user{align-self:flex-start;border-bottom-right-radius:18px;border-bottom-left-radius:5px}@keyframes avatarTalk{50%{transform:scale(1.045)}}@keyframes avatarWave{from{opacity:.8;transform:scale(.92)}to{opacity:0;transform:scale(1.16)}}@media(max-width:600px){.conversation-dialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}.conversation-shell{height:100dvh;max-height:100dvh;padding:1rem}.conversation-header h2{font-size:1.8rem}.conversation-log{min-height:90px;max-height:none}.conversation-compose{grid-template-columns:1fr}.conversation-controls{flex-direction:row}.conversation-controls .btn{flex:1}.voice-button{flex:0 0 52px}.conversation-final-buttons{grid-template-columns:1fr}}@media(max-height:760px) and (min-width:601px){.conversation-shell{gap:.6rem}.conversation-log{min-height:80px;max-height:150px}.avatar-disc{width:62px;height:62px}.voice-orb{width:66px;height:66px;flex-basis:66px}.conversation-compose textarea{min-height:68px}}@media(prefers-reduced-motion:reduce){.conversation-avatar.speaking .avatar-disc,.conversation-avatar.speaking .avatar-disc::after{animation:none}}}

/* V6.2.1 — Audio Diagnostic Engine */
.conversation-diagnostic{margin:12px 0;border:1px solid rgba(183,101,62,.35);border-radius:14px;background:rgba(255,255,255,.86);overflow:hidden;font-size:.82rem}.conversation-diagnostic summary{cursor:pointer;padding:10px 12px;font-weight:800;display:flex;justify-content:space-between;gap:12px}.conversation-diagnostic summary span{font-weight:600;opacity:.7}.diagnostic-grid{display:grid;gap:1px;background:rgba(0,0,0,.06);border-top:1px solid rgba(0,0,0,.07)}.diagnostic-row{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;background:#fff}.diagnostic-row span{color:#4c403a}.diagnostic-row strong{text-align:right;font-size:.78rem}.diagnostic-row.ok strong{color:#26763b}.diagnostic-row.error strong{color:#a32626}.diagnostic-row.working strong{color:#8a6111}.diagnostic-actions{display:flex;flex-wrap:wrap;gap:7px;padding:10px 12px;border-top:1px solid rgba(0,0,0,.07)}.diagnostic-actions button{border:1px solid rgba(0,0,0,.18);border-radius:9px;background:#fff;padding:7px 9px;cursor:pointer;font:inherit}.diagnostic-actions button:disabled{opacity:.45;cursor:not-allowed}.conversation-diagnostic pre{max-height:180px;overflow:auto;margin:0;padding:10px 12px;background:#1d1d1d;color:#e8e8e8;font-size:.7rem;white-space:pre-wrap;word-break:break-word}.conversation-diagnostic pre:empty{display:none}@media(max-width:600px){.diagnostic-row{display:block}.diagnostic-row strong{display:block;text-align:left;margin-top:3px}}

/* V6.2.5 — Cognitive Conversation Engine */
.conversation-final-actions{display:grid;gap:.75rem;padding:1rem;border:1px solid rgba(22,20,18,.14);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(22,20,18,.08)}
.conversation-final-actions[hidden]{display:none!important}.conversation-review{width:100%;min-height:150px;resize:vertical;border:2px solid rgba(197,94,43,.3);border-radius:16px;padding:1rem;font:inherit;line-height:1.5;background:#fffdf9;color:var(--ink)}
.conversation-review:focus{outline:3px solid rgba(197,94,43,.18);border-color:var(--accent)}.conversation-review-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}.conversation-review-tools .btn{border:0;min-height:46px}.conversation-final-actions>.conversation-whatsapp{display:block;text-align:center;text-decoration:none;width:100%}
.conversation-shell[data-voice-state="ready"] .conversation-state{color:#2f6a43}.conversation-shell[data-voice-state="processing"] .conversation-state{color:var(--accent)}
@media(max-width:600px){.conversation-review-tools{grid-template-columns:1fr}.conversation-review{min-height:135px}}

/* =========================================================
   V6.2.6 — Homepage Visual Stabilization
   ========================================================= */
.header.scrolled{
  background:rgba(18,17,16,.68);
  -webkit-backdrop-filter:blur(15px) saturate(115%);
  backdrop-filter:blur(15px) saturate(115%);
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* Lecture automatique, calme et lisible, de la méthode */
.method-strip.autoplaying .method-card.active .method-card-copy::after{
  content:"";
  display:block;
  width:100%;
  height:3px;
  margin-top:.55rem;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  transform-origin:left center;
  animation:methodAutoplayProgress 8s linear both;
}
body.rtl-page .method-strip.autoplaying .method-card.active .method-card-copy::after{
  transform-origin:right center;
}
@keyframes methodAutoplayProgress{
  from{transform:scaleX(0)}
  to{transform:scaleX(1)}
}

@media (min-width:701px){
  /* Titres éditoriaux : moins de hauteur perdue, meilleure lecture horizontale */
  .story>.container>h2{
    max-width:24ch;
    font-size:clamp(2.4rem,4.2vw,4.7rem);
    line-height:1.02;
  }
  .services-head h2{
    max-width:22ch;
    font-size:clamp(2.25rem,3.8vw,4.25rem);
    line-height:1.04;
  }
  .transformations-heading h2{
    max-width:24ch;
    font-size:clamp(2.25rem,3.8vw,4.25rem);
    line-height:1.04;
  }

  /* Les blocs pairs restent visuellement collés à leur photo située à droite. */
  .story-step:nth-of-type(even) .story-text{
    justify-self:end;
    width:min(100%,34rem);
  }
  .story-step:nth-of-type(odd) .story-text{
    justify-self:start;
    width:min(100%,34rem);
  }
}

@media (prefers-reduced-motion:reduce){
  .method-strip.autoplaying .method-card.active .method-card-copy::after{animation:none;transform:scaleX(1)}
}


/* =========================================================
   V6.3.0 — FOUNDATION LOCK
   Identité conversationnelle, stabilité visuelle et Voice UX
   ========================================================= */
.conversation-dialog{width:min(920px,calc(100vw - 28px));max-width:920px}
.conversation-shell{gap:.75rem;padding:clamp(1rem,2.4vw,1.7rem)}
.conversation-header{align-items:center;min-height:64px}
.conversation-identity{display:flex;align-items:center;justify-content:flex-start;gap:.8rem;min-width:0;text-align:left}
.conversation-shell[dir=rtl] .conversation-identity{text-align:right}
.conversation-identity .avatar-disc{width:58px;height:58px;flex:0 0 58px;border-width:3px;box-shadow:0 0 0 2px rgba(197,94,43,.28),0 7px 20px rgba(0,0,0,.12)}
.conversation-identity .avatar-disc span{font-size:.95rem}
.conversation-identity .avatar-disc i{bottom:11px;width:4px;height:4px}
.conversation-identity .avatar-disc i:first-of-type{left:18px}.conversation-identity .avatar-disc i:last-of-type{right:18px}
.avatar-copy{line-height:1.1}.avatar-copy strong{font-size:1.1rem;letter-spacing:.04em}.avatar-copy span{font-size:.9rem;font-weight:850;color:var(--ink)}.avatar-copy small{font-size:.76rem;color:var(--muted);margin-top:.15rem}
.conversation-title-row{display:flex;align-items:center;min-height:2.7rem}
.conversation-title-row h2{margin:0;font-size:clamp(1.65rem,3.35vw,2.65rem);line-height:1.02;letter-spacing:-.025em}
.conversation-progress{margin-top:.1rem}
.conversation-log{min-height:130px;max-height:260px;gap:.65rem;padding:.3rem 2px}
.conversation-message{max-width:92%;padding:.86rem 1rem;border-radius:18px;line-height:1.48;box-shadow:0 4px 16px rgba(22,20,18,.055)}
.conversation-message.assistant{max-width:96%}.conversation-message.user{max-width:90%}
.conversation-state{display:flex;align-items:center;justify-content:flex-start;gap:.55rem;text-align:left;min-height:44px;padding:.65rem .8rem;border-radius:13px;background:rgba(255,255,255,.58);font-weight:850;line-height:1.25;contain:layout}
.conversation-shell[dir=rtl] .conversation-state{text-align:right}
.conversation-state-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#8a8178;box-shadow:0 0 0 5px rgba(138,129,120,.12);transition:background .3s ease,box-shadow .3s ease}
.conversation-shell[data-voice-state="recording"] .conversation-state-dot,.conversation-shell[data-voice-state="hearing"] .conversation-state-dot{background:#2f6a43;box-shadow:0 0 0 6px rgba(47,106,67,.13)}
.conversation-shell[data-voice-state="processing"] .conversation-state-dot,.conversation-shell[data-voice-state="uploading"] .conversation-state-dot{background:var(--accent);box-shadow:0 0 0 6px rgba(197,94,43,.13)}
.conversation-shell[data-voice-state="error"] .conversation-state-dot{background:#9f2e20;box-shadow:0 0 0 6px rgba(159,46,32,.12)}
.voice-orb{--voice-level:0;width:76px;height:76px;flex:0 0 76px;gap:4px;background:linear-gradient(145deg,#211e1b,#100f0e);box-shadow:0 0 0 8px rgba(197,94,43,.07),0 10px 24px rgba(0,0,0,.16);transform:scale(calc(1 + var(--voice-level)*.035));transition:transform .28s ease,box-shadow .35s ease;position:relative}
.voice-orb::before{content:"";position:absolute;inset:-8px;border:1px solid rgba(197,94,43,.34);border-radius:50%;opacity:.65;transform:scale(.96)}
.voice-orb.listening::before{animation:azVoiceBreath 2.4s ease-in-out infinite}
.voice-orb span{width:4px;height:14px;transition:height .25s ease;border-radius:999px;opacity:.92}
.voice-orb.hearing span:nth-child(1){height:calc(13px + var(--voice-level)*15px)}
.voice-orb.hearing span:nth-child(2){height:calc(18px + var(--voice-level)*19px)}
.voice-orb.hearing span:nth-child(3){height:calc(22px + var(--voice-level)*22px)}
.voice-orb.hearing span:nth-child(4){height:calc(18px + var(--voice-level)*19px)}
.voice-orb.hearing span:nth-child(5){height:calc(13px + var(--voice-level)*15px)}
@keyframes azVoiceBreath{0%,100%{opacity:.35;transform:scale(.96)}50%{opacity:.86;transform:scale(1.08)}}
.conversation-avatar.speaking .avatar-disc,.conversation-identity.speaking .avatar-disc{animation:avatarTalk 2.2s ease-in-out infinite}
.conversation-compose{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem}
.conversation-compose textarea{min-height:92px;max-height:180px;resize:vertical;padding:1rem;border-radius:16px;border:1px solid rgba(22,20,18,.16);transition:border-color .2s ease,box-shadow .2s ease}
.conversation-compose textarea:focus{outline:none;border-color:rgba(197,94,43,.7);box-shadow:0 0 0 4px rgba(197,94,43,.12)}
.conversation-compose textarea[data-provisional="true"]{border-style:dashed}
.conversation-primary-action{width:100%;min-height:56px;display:flex;align-items:center;justify-content:center;gap:.65rem;border:0;border-radius:16px;padding:.8rem 1.2rem;background:var(--accent);color:#fff;font:inherit;font-weight:950;cursor:pointer;box-shadow:0 10px 24px rgba(197,94,43,.22);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,opacity .18s ease}
.conversation-primary-action:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 13px 28px rgba(197,94,43,.28)}
.conversation-primary-action.is-recording{background:#171513}.conversation-primary-action.is-send{background:#2f6a43}
.conversation-primary-action:disabled{cursor:wait;opacity:.58;box-shadow:none}
.conversation-primary-icon{font-size:1.05rem;line-height:1}
.conversation-privacy{font-size:.76rem;margin:.05rem 0 0}
.conversation-diagnostic{margin:.1rem 0 0;opacity:.88}
.conversation-final-actions{margin-top:.2rem}
@media (min-width:701px){.conversation-title-row h2{white-space:nowrap}.conversation-log{padding-inline:.25rem}}
@media (max-width:700px){
  .conversation-dialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}
  .conversation-shell{height:100dvh;max-height:100dvh;padding:1rem;gap:.62rem}
  .conversation-header{min-height:56px}.conversation-identity .avatar-disc{width:50px;height:50px;flex-basis:50px}
  .conversation-identity .avatar-disc i{bottom:9px}.conversation-identity .avatar-disc i:first-of-type{left:15px}.conversation-identity .avatar-disc i:last-of-type{right:15px}
  .avatar-copy strong{font-size:1rem}.avatar-copy span{font-size:.82rem}.avatar-copy small{font-size:.7rem}
  .conversation-title-row{min-height:auto}.conversation-title-row h2{font-size:clamp(1.35rem,6vw,1.75rem)}
  .conversation-log{min-height:90px;max-height:none}.conversation-message.assistant{max-width:97%}.conversation-message.user{max-width:94%}
  .voice-orb{width:66px;height:66px;flex-basis:66px}.conversation-compose textarea{min-height:78px;max-height:130px}
  .conversation-primary-action{min-height:54px;border-radius:15px}.conversation-state{min-height:42px;padding:.55rem .7rem;font-size:.9rem}
}
@media (max-height:720px) and (min-width:701px){.conversation-log{min-height:90px;max-height:160px}.voice-orb{width:62px;height:62px;flex-basis:62px}.conversation-compose textarea{min-height:66px}}
@media (prefers-reduced-motion:reduce){.voice-orb.listening::before,.conversation-avatar.speaking .avatar-disc,.conversation-identity.speaking .avatar-disc{animation:none}.conversation-primary-action{transition:none}}


/* =========================================================
   V6.3.1 — MOBILE CONVERSATION LOCK
   Geste audio explicite + éditeur placé sous la bulle AZ
   ========================================================= */
.conversation-start-gate{
  width:100%;min-height:58px;border:0;border-radius:16px;padding:.85rem 1rem;
  display:flex;align-items:center;justify-content:center;gap:.7rem;
  background:#171513;color:#fff;font:inherit;cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.16)
}
.conversation-start-gate[hidden]{display:none}
.conversation-start-gate span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent)}
.conversation-shell[data-voice-state="awaiting-gesture"] .conversation-state-dot,
.conversation-shell[data-voice-state="starting"] .conversation-state-dot{
  background:var(--accent);box-shadow:0 0 0 6px rgba(197,94,43,.13)
}

@media (max-width:700px){
  .conversation-dialog{
    inset:var(--az-visual-top,0px) 0 auto 0;margin:0;
    width:100vw;height:var(--az-visual-height,100dvh);max-height:var(--az-visual-height,100dvh);
    border-radius:0;overflow:hidden
  }
  .conversation-shell{
    height:100%;max-height:none;overflow-y:auto;overscroll-behavior:contain;
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
    padding:max(.72rem,env(safe-area-inset-top)) .85rem max(.8rem,env(safe-area-inset-bottom));
    gap:.52rem;scroll-padding-top:.65rem;scroll-padding-bottom:1rem
  }
  .conversation-header{order:1;flex:0 0 auto}
  .conversation-title-row{order:2;flex:0 0 auto}
  .conversation-progress{order:3;flex:0 0 auto}
  .conversation-log{
    order:4;flex:0 0 auto;min-height:72px;max-height:min(26svh,180px);overflow:auto;
    padding:.48rem;border:1px solid rgba(22,20,18,.08);border-radius:17px;
    background:rgba(255,255,255,.44)
  }
  .conversation-start-gate{order:5;flex:0 0 auto}
  .conversation-compose{
    order:6;flex:0 0 auto;position:relative;z-index:3;
    padding:.15rem 0 .1rem;background:linear-gradient(to bottom,rgba(244,239,231,.98),rgba(244,239,231,.98))
  }
  .conversation-compose textarea{
    min-height:104px;max-height:34svh;resize:none;font-size:16px;line-height:1.45
  }
  .conversation-state{order:7;flex:0 0 auto}
  .voice-orb{order:8;flex:0 0 62px;width:62px;height:62px;margin:.12rem auto}
  .conversation-privacy{order:9;flex:0 0 auto}
  .conversation-final-actions{order:10;flex:0 0 auto}
  .conversation-diagnostic{order:11;flex:0 0 auto}

  /* Quand le clavier apparaît, l'essentiel reste visible :
     dernière bulle AZ puis texte dicté/modifiable. */
  .conversation-shell.keyboard-open .conversation-title-row,
  .conversation-shell.keyboard-open .conversation-progress,
  .conversation-shell.keyboard-open .voice-orb,
  .conversation-shell.keyboard-open .conversation-privacy{display:none}
  .conversation-shell.keyboard-open .conversation-header{min-height:44px}
  .conversation-shell.keyboard-open .conversation-identity .avatar-disc{width:42px;height:42px;flex-basis:42px}
  .conversation-shell.keyboard-open .conversation-log{max-height:108px;min-height:58px}
  .conversation-shell.keyboard-open .conversation-compose{scroll-margin-top:.5rem}
  .conversation-shell.keyboard-open .conversation-compose textarea{min-height:112px;max-height:calc(var(--az-visual-height,100dvh) - 205px)}
  .conversation-shell.input-focused .conversation-compose{border-radius:16px}
}


/* =========================================================
   V6.3.2 — IDENTITY LOCK
   Logo AZ officiel : en-tête, pied de page, chat et PWA
   ========================================================= */
.brand-logo{
  width:44px;height:44px;flex:0 0 44px;object-fit:cover;border-radius:50%;
  background:#fff;border:1px solid rgba(255,255,255,.62);
  box-shadow:0 5px 18px rgba(0,0,0,.22)
}
.brand:hover .brand-logo{transform:translateY(-1px)}
.brand-logo{transition:transform .2s ease,box-shadow .2s ease}
.avatar-disc{
  overflow:hidden;background:#fff;padding:0;border-color:#fff
}
.conversation-logo{
  width:100%;height:100%;display:block;object-fit:cover;border-radius:50%
}
.conversation-identity.speaking .conversation-logo{
  filter:saturate(1.05) contrast(1.02)
}
@media (max-width:700px){
  .brand-logo{width:40px;height:40px;flex-basis:40px}
}
@media (min-width:1600px){
  .brand-logo{width:52px;height:52px;flex-basis:52px}
}
@media (prefers-reduced-motion:reduce){.brand-logo{transition:none}}

/* =========================================================
   V6.4.0 — BILINGUAL BRIDGE
   Message client + traduction artisan, sans bloquer l'envoi
   ========================================================= */
.conversation-final-actions{gap:.9rem}
.conversation-final-title{text-align:left;margin:0;font-size:1.05rem}
.conversation-shell[dir=rtl] .conversation-final-title{text-align:right}
.conversation-translation-grid{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:stretch;gap:.7rem
}
.conversation-translation-card{display:grid;gap:.45rem;min-width:0}
.conversation-translation-label{font-size:.78rem;font-weight:950;letter-spacing:.025em;color:var(--muted)}
.conversation-translation-arrow{
  align-self:center;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  background:#f1e6da;color:var(--accent);font-weight:950;border:1px solid rgba(197,94,43,.18)
}
.conversation-translation-grid .conversation-review{min-height:170px;height:100%;resize:vertical}
.conversation-translation{background:#fffaf2;border-color:rgba(47,106,67,.28)}
.conversation-translation[aria-busy="true"]{
  background:linear-gradient(100deg,#fffaf2 30%,#f4eadc 50%,#fffaf2 70%);
  background-size:220% 100%;animation:azTranslationLoading 1.5s linear infinite
}
.conversation-translation-meta{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;
  padding:.65rem .75rem;border-radius:13px;background:#f7f1e8;border:1px solid rgba(22,20,18,.08)
}
.conversation-translation-status{font-size:.82rem;font-weight:800;color:var(--muted)}
.conversation-translation-status[data-status="working"]{color:var(--accent)}
.conversation-translation-status[data-status="ready"]{color:#2f6a43}
.conversation-translation-status[data-status="error"]{color:#9f2e20}
.conversation-translation-status[data-status="stale"]{color:#8b5b19}
.conversation-translation-retry{
  border:0;border-radius:999px;padding:.55rem .85rem;background:#171513;color:#fff;
  font:inherit;font-size:.78rem;font-weight:900;cursor:pointer
}
.conversation-translation-retry:disabled{opacity:.5;cursor:wait}
.conversation-review-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
@keyframes azTranslationLoading{to{background-position:-220% 0}}

@media (max-width:700px){
  .conversation-translation-grid{grid-template-columns:1fr;gap:.55rem}
  .conversation-translation-arrow{width:30px;height:30px;margin:-.1rem auto;transform:rotate(90deg)}
  .conversation-translation-grid .conversation-review{min-height:145px;max-height:31svh}
  .conversation-translation-meta{align-items:flex-start;flex-direction:column}
  .conversation-translation-retry{width:100%;min-height:44px}
  .conversation-review-tools{grid-template-columns:1fr}

  /* Pendant l'édition finale, le clavier laisse uniquement l'en-tête
     et les deux versions du message à l'écran. */
  .conversation-shell.keyboard-open.review-focused .conversation-title-row,
  .conversation-shell.keyboard-open.review-focused .conversation-progress,
  .conversation-shell.keyboard-open.review-focused .conversation-log,
  .conversation-shell.keyboard-open.review-focused .conversation-start-gate,
  .conversation-shell.keyboard-open.review-focused .conversation-compose,
  .conversation-shell.keyboard-open.review-focused .conversation-state,
  .conversation-shell.keyboard-open.review-focused .voice-orb,
  .conversation-shell.keyboard-open.review-focused .conversation-privacy{display:none}
  .conversation-shell.keyboard-open.review-focused .conversation-final-actions{
    order:4;margin:0;scroll-margin-top:.4rem
  }
  .conversation-shell.keyboard-open.review-focused .conversation-translation-grid .conversation-review{
    min-height:118px;max-height:calc(var(--az-visual-height,100dvh) - 250px)
  }
}

@media (prefers-reduced-motion:reduce){
  .conversation-translation[aria-busy="true"]{animation:none;background:#fffaf2}
}


/* V6.4.1 — Immersive Glass Conversation */
.contact-grid{grid-template-columns:1fr!important;gap:2rem}.conversation-gateway{position:relative;min-height:560px;width:100%;display:grid;grid-template-columns:minmax(280px,.75fr) minmax(520px,1.25fr);gap:2rem;align-items:center;padding:clamp(2rem,4vw,4.5rem);overflow:hidden;border:1px solid rgba(202,109,57,.65);border-radius:34px;background:linear-gradient(115deg,rgba(12,11,10,.90),rgba(34,22,17,.77));box-shadow:0 30px 90px rgba(0,0,0,.32);isolation:isolate}.conversation-gateway:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 45%,rgba(199,91,43,.18),transparent 38%),linear-gradient(90deg,rgba(0,0,0,.2),transparent);pointer-events:none;z-index:-1}.gateway-copy h2{font-size:clamp(3.2rem,6vw,6.4rem);line-height:.92;max-width:760px;margin:.6rem 0 1.4rem;color:#fff6eb}.gateway-copy .power-bridge-copy{font-size:clamp(1.08rem,1.5vw,1.35rem);max-width:560px;color:rgba(255,247,238,.86)}.gateway-stage{position:relative;min-height:440px;display:grid;grid-template-columns:minmax(180px,280px) 1fr;grid-template-rows:auto 1fr;align-items:center}.gateway-avatar{grid-row:1/3;position:relative;align-self:end;height:430px;overflow:hidden;filter:drop-shadow(0 22px 30px rgba(0,0,0,.38))}.gateway-avatar img{width:100%;height:100%;object-fit:cover;object-position:36% center;border-radius:160px 160px 26px 26px;mask-image:linear-gradient(#000 80%,transparent 100%)}.gateway-avatar-glow{position:absolute;inset:12% 8% 6%;border-radius:50%;box-shadow:0 0 60px rgba(211,111,61,.24);z-index:-1}.gateway-speech{align-self:end;margin:0 0 1rem -1.2rem;max-width:360px;padding:1.25rem 1.45rem;border:1px solid rgba(222,133,81,.62);border-radius:24px;background:rgba(20,17,15,.72);backdrop-filter:blur(18px);color:#fff;box-shadow:0 15px 35px rgba(0,0,0,.24)}.gateway-speech span{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;color:#df8354;margin-bottom:.5rem}.gateway-speech strong{font-weight:500;line-height:1.45}.gateway-listen{position:relative;align-self:start;display:flex;align-items:center;justify-content:center;gap:1.1rem;min-height:126px;max-width:470px;width:100%;padding:1rem 2rem;border:1px solid rgba(255,185,139,.65);border-radius:32px;background:linear-gradient(135deg,#d97845,#a84725);color:#fff8ef;box-shadow:0 18px 48px rgba(153,60,27,.42),inset 0 1px rgba(255,255,255,.25);cursor:pointer;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}.gateway-listen:hover,.gateway-listen:focus-visible{transform:translateY(-3px);box-shadow:0 24px 58px rgba(153,60,27,.52),inset 0 1px rgba(255,255,255,.3)}.gateway-button-copy{display:flex;flex-direction:column;text-align:left}.gateway-button-copy strong{font-family:Georgia,serif;font-size:clamp(1.65rem,2.7vw,2.7rem);font-weight:500}.gateway-button-copy small{font-size:.9rem;color:rgba(255,248,239,.74);margin-top:.25rem}.fingerprint-motion{position:relative;width:74px;height:74px;flex:0 0 74px;border-radius:50%;display:grid;place-items:center}.fingerprint-motion i{position:absolute;border:3px solid rgba(255,235,220,.88);border-bottom-color:transparent;border-radius:50%;animation:fingerprint-breathe 3.2s ease-in-out infinite}.fingerprint-motion i:nth-child(1){width:58px;height:70px}.fingerprint-motion i:nth-child(2){width:44px;height:56px;animation-delay:.1s}.fingerprint-motion i:nth-child(3){width:30px;height:42px;animation-delay:.2s}.fingerprint-motion i:nth-child(4){width:16px;height:28px;animation-delay:.3s}.gateway-ripple{position:absolute;width:34px;height:34px;left:52px;top:46px;border:2px solid rgba(255,255,255,.8);border-radius:50%;animation:gateway-ripple 3.2s ease-out infinite}.contact-card{max-width:1080px;margin:0 auto;width:100%}
@keyframes fingerprint-breathe{0%,65%,100%{transform:scale(.96);opacity:.72}35%{transform:scale(1.04);opacity:1}}@keyframes gateway-ripple{0%,55%{transform:scale(.45);opacity:0}68%{opacity:.8}100%{transform:scale(3.7);opacity:0}}
.conversation-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(8,7,6,.68);backdrop-filter:blur(10px)}.conversation-dialog::backdrop{background:rgba(8,7,6,.58);backdrop-filter:blur(7px)}.conversation-shell{width:100%;height:100%;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;background:linear-gradient(105deg,rgba(10,9,8,.86),rgba(35,22,17,.67))!important;color:#fff8ef;display:grid;grid-template-columns:minmax(270px,38%) minmax(0,62%);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;column-gap:clamp(1.5rem,4vw,5rem);padding:clamp(1rem,3vw,3.2rem)!important;overflow:auto}.conversation-header{grid-column:1/-1}.conversation-identity{grid-column:1;grid-row:2/7;align-self:stretch;display:flex!important;flex-direction:column;justify-content:flex-end;align-items:flex-start!important;position:relative;min-height:500px}.avatar-disc.avatar-portrait{width:100%!important;height:100%!important;max-height:720px;border:0!important;border-radius:30px!important;overflow:hidden;background:none!important}.conversation-avatar-image{width:100%;height:100%;object-fit:cover;object-position:35% center;mask-image:linear-gradient(#000 80%,transparent 100%)}.avatar-copy{position:absolute;left:1.2rem;bottom:1.2rem;padding:1rem 1.2rem;border:1px solid rgba(216,123,74,.6);border-radius:18px;background:rgba(12,10,9,.72);backdrop-filter:blur(14px)}.conversation-title-row,.conversation-progress,.conversation-log,.conversation-start-gate,.conversation-state,.voice-orb,.conversation-compose,.conversation-resume-actions,.conversation-privacy,.conversation-final-actions{grid-column:2}.conversation-title-row{grid-row:2}.conversation-progress{grid-row:3}.conversation-log{grid-row:4;max-height:none!important;background:rgba(13,11,10,.35)!important;border:1px solid rgba(214,124,72,.28);border-radius:24px;padding:1rem;backdrop-filter:blur(12px)}.conversation-state{grid-row:5}.voice-orb{grid-row:5;justify-self:end;margin-top:-48px}.voice-orb.listening{filter:drop-shadow(0 0 calc(16px + 28px * var(--voice-level,0)) rgba(222,103,53,.9));animation:mic-halo 1.8s ease-in-out infinite}.conversation-compose{grid-row:6;background:rgba(15,13,12,.58)!important;border:1px solid rgba(216,124,73,.42)!important;backdrop-filter:blur(18px)}.conversation-compose textarea,.conversation-review{background:rgba(255,248,238,.08)!important;color:#fff8ef!important}.conversation-resume-actions{display:flex;gap:.8rem;margin-top:.75rem}.conversation-resume-actions[hidden]{display:none}.conversation-resume-actions .btn{flex:1}.conversation-privacy{grid-row:8;color:rgba(255,248,239,.64)}.conversation-final-actions{grid-row:4/9;z-index:4;background:rgba(17,14,12,.92)!important;border:1px solid rgba(216,124,73,.45);border-radius:28px;padding:1.2rem;overflow:auto}.conversation-diagnostic{display:none!important}@keyframes mic-halo{0%,100%{box-shadow:0 0 0 0 rgba(217,112,61,.32)}50%{box-shadow:0 0 0 18px rgba(217,112,61,0)}}
@media(max-width:820px){.conversation-gateway{grid-template-columns:1fr;padding:1.4rem;border-radius:24px;min-height:auto}.gateway-copy h2{font-size:clamp(3rem,15vw,5rem)}.gateway-stage{min-height:390px;grid-template-columns:130px 1fr}.gateway-avatar{height:300px}.gateway-speech{margin-left:-.6rem;font-size:.92rem}.gateway-listen{grid-column:1/-1;min-height:96px;max-width:none}.fingerprint-motion{width:56px;height:56px;flex-basis:56px}.fingerprint-motion i:nth-child(1){width:46px;height:56px}.fingerprint-motion i:nth-child(2){width:35px;height:45px}.fingerprint-motion i:nth-child(3){width:24px;height:34px}.fingerprint-motion i:nth-child(4){width:13px;height:23px}.gateway-ripple{left:40px;top:32px}.conversation-shell{display:flex!important;flex-direction:column;padding:1rem!important;gap:.65rem;overflow:auto}.conversation-header{order:0}.conversation-identity{order:1;min-height:150px;max-height:180px;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important}.avatar-disc.avatar-portrait{width:118px!important;height:150px!important;flex:0 0 118px}.avatar-copy{position:static;margin-left:.8rem}.conversation-title-row{order:2}.conversation-progress{order:3}.conversation-log{order:4;min-height:100px;max-height:160px!important}.conversation-start-gate{order:5}.conversation-state{order:6}.voice-orb{order:7;align-self:center;margin:0}.conversation-compose{order:8;position:sticky;bottom:0;z-index:5}.conversation-resume-actions{order:9;position:sticky;bottom:0;z-index:6;background:rgba(12,10,9,.92);padding:.5rem;border-radius:16px}.conversation-privacy{order:10}.conversation-final-actions{order:11;position:relative}.keyboard-open .conversation-identity{display:none!important}.keyboard-open .conversation-title-row,.keyboard-open .conversation-progress{display:none!important}.keyboard-open .conversation-log{max-height:88px!important}.keyboard-open .conversation-compose{margin-top:auto}}
@media(prefers-reduced-motion:reduce){.fingerprint-motion i,.gateway-ripple,.voice-orb.listening{animation:none!important}}

/* V6.5.0 — Conversation Continuity */
.conversation-client-review{background:rgba(20,17,15,.58);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(18px);color:#fff}
.conversation-client-review .conversation-review{width:100%;min-height:150px;background:rgba(255,255,255,.94);color:#171513;border:1px solid rgba(255,255,255,.32);border-radius:18px;padding:1rem;font:inherit;line-height:1.55}
.conversation-phone-field{display:grid;gap:.42rem;margin-top:.8rem;font-weight:800}.conversation-phone-field input{width:100%;min-height:50px;border-radius:14px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.94);padding:.75rem 1rem;font:inherit;color:#171513}
.conversation-notify-choice{display:flex;gap:.65rem;align-items:flex-start;margin:.8rem 0;color:rgba(255,255,255,.84);font-size:.9rem}.conversation-notify-choice input{width:20px;height:20px;accent-color:var(--accent);flex:0 0 auto}
.conversation-internal-send{width:100%;border:0;min-height:54px;font-weight:900}.conversation-delivery-note{font-size:.78rem;color:rgba(255,255,255,.62);margin:.75rem 0 0;line-height:1.45}.conversation-send-result{margin-top:.8rem;padding:.85rem 1rem;border-radius:14px;background:rgba(71,148,95,.2);border:1px solid rgba(114,205,142,.35);color:#eaffef;font-weight:750}

/* V6.5.1 — Chocolate Form Visual Lock */
.contact{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 18%,rgba(191,111,67,.14),transparent 34%),
    radial-gradient(circle at 84% 70%,rgba(226,175,121,.12),transparent 32%),
    linear-gradient(180deg,#f7f1e9 0%,#eadfd2 100%);
}
.contact:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.28;
  background-image:linear-gradient(30deg,rgba(91,55,39,.08) 12%,transparent 12.5%,transparent 87%,rgba(91,55,39,.08) 87.5%),linear-gradient(150deg,rgba(91,55,39,.08) 12%,transparent 12.5%,transparent 87%,rgba(91,55,39,.08) 87.5%);
  background-size:42px 74px;
}
.contact>.container{position:relative;z-index:1;width:min(calc(100% - clamp(1rem,3vw,3rem)),1540px)}
.contact-card{
  position:relative;
  isolation:isolate;
  max-width:none!important;
  width:100%;
  margin:0;
  padding:clamp(1.35rem,3.3vw,3.4rem);
  overflow:hidden;
  border:1px solid rgba(231,165,118,.52);
  border-radius:clamp(24px,3vw,38px);
  color:#fff7ef;
  background:
    radial-gradient(circle at 88% 8%,rgba(196,102,57,.20),transparent 35%),
    linear-gradient(120deg,rgba(30,20,16,.97),rgba(76,46,34,.95) 52%,rgba(43,27,21,.97));
  box-shadow:0 28px 76px rgba(45,24,16,.30),inset 0 1px rgba(255,255,255,.09);
  backdrop-filter:blur(18px);
}
.contact-card:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(105deg,transparent 0 48%,rgba(255,231,210,.035) 48% 49%,transparent 49% 100%);
}
.contact-card .form-grid{gap:clamp(.9rem,1.8vw,1.45rem);grid-template-columns:repeat(2,minmax(0,1fr))}
.contact-card .field{gap:.55rem}
.contact-card label{color:#f2d8c5;font-size:.82rem;letter-spacing:.045em;text-transform:uppercase}
.contact-card input,.contact-card select,.contact-card textarea{
  min-height:56px;
  border:1px solid rgba(239,191,157,.28);
  border-radius:16px;
  padding:.95rem 1.05rem;
  color:#fffaf5;
  background:rgba(255,248,240,.075);
  box-shadow:inset 0 1px rgba(255,255,255,.055);
  backdrop-filter:blur(10px);
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.contact-card select{color-scheme:dark}
.contact-card select option{color:#211612;background:#f5e9dc}
.contact-card textarea{min-height:160px;line-height:1.6}
.contact-card input::placeholder,.contact-card textarea::placeholder{color:rgba(255,239,227,.50)}
.contact-card input:hover,.contact-card select:hover,.contact-card textarea:hover{background:rgba(255,248,240,.105);border-color:rgba(239,191,157,.46)}
.contact-card input:focus,.contact-card select:focus,.contact-card textarea:focus{
  outline:0;
  border-color:#e48d5b;
  background:rgba(255,248,240,.13);
  box-shadow:0 0 0 4px rgba(220,107,58,.17),inset 0 1px rgba(255,255,255,.08);
}
.contact-card .btn-primary{
  width:100%;
  min-height:62px;
  border:1px solid rgba(255,201,168,.45);
  border-radius:18px;
  color:#fffaf5;
  background:linear-gradient(135deg,#d96f42,#a64024);
  box-shadow:0 15px 34px rgba(135,49,24,.34),inset 0 1px rgba(255,255,255,.22);
  font-weight:900;
  letter-spacing:.025em;
}
.contact-card .btn-primary:hover,.contact-card .btn-primary:focus-visible{transform:translateY(-2px);box-shadow:0 20px 42px rgba(135,49,24,.44),inset 0 1px rgba(255,255,255,.25)}
@media(max-width:820px){
  .contact>.container{width:min(calc(100% - 1rem),1540px)}
  .contact-card{padding:1.15rem;border-radius:24px}
  .contact-card .form-grid{grid-template-columns:1fr;gap:.9rem}
  .contact-card .full{grid-column:auto}
  .contact-card input,.contact-card select{min-height:54px}
  .contact-card textarea{min-height:140px}
}


/* =========================================================
   V6.5.4 — DELIVERY TRACE & UI FINISH LOCK
   Modal finalisé, un seul scroll, reçu de transmission visible.
   ========================================================= */
.conversation-dialog{overflow:hidden!important}
.conversation-shell{
  grid-template-columns:minmax(280px,34%) minmax(0,66%)!important;
  grid-template-rows:auto auto auto minmax(0,1fr) auto!important;
  gap:.75rem clamp(1.4rem,3vw,3.4rem)!important;
  overflow:hidden!important;
  padding:clamp(1rem,2.4vw,2.4rem)!important;
}
.conversation-header{min-height:48px;align-items:center!important}
.conversation-close{position:fixed;top:clamp(1rem,2vw,1.8rem);right:clamp(1rem,2vw,1.8rem);z-index:30}
.conversation-identity{grid-row:2/6!important;min-height:0!important;height:100%;overflow:hidden}
.avatar-disc.avatar-portrait{height:100%!important;min-height:0;max-height:none!important;border-radius:28px!important}
.conversation-avatar-image{object-position:50% 20%!important;mask-image:linear-gradient(#000 86%,transparent 100%)}
.conversation-title-row{grid-row:2!important;align-self:end}
.conversation-progress{grid-row:3!important}
.conversation-log{grid-row:4!important;min-height:0!important;overflow:auto!important}
.conversation-final-actions{
  grid-row:4/6!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:auto!important;
  scrollbar-gutter:stable;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:.85rem!important;
  padding:clamp(1rem,2vw,1.5rem)!important;
  background:linear-gradient(145deg,rgba(28,22,19,.96),rgba(52,33,25,.93))!important;
  box-shadow:0 24px 70px rgba(0,0,0,.32)!important;
}
.conversation-final-actions[hidden]{display:none!important}
.conversation-final-title,.conversation-review,.conversation-phone-field,.conversation-notify-choice,.conversation-review-tools,.conversation-internal-send,.conversation-delivery-note,.conversation-send-result{grid-column:1/-1}
.conversation-final-title{font:700 clamp(1.25rem,2.2vw,1.75rem)/1.1 Georgia;color:#fff7ef;text-align:left;margin:0}
.conversation-review{min-height:clamp(150px,24vh,250px)!important;max-height:32vh;resize:vertical!important;background:rgba(255,250,244,.08)!important;border:1px solid rgba(239,171,126,.34)!important}
.conversation-phone-field{display:grid;gap:.45rem}.conversation-phone-field span{font-weight:850;color:#f3d6c4}
.conversation-phone-field input{width:100%;min-height:54px;border:1px solid rgba(239,171,126,.34);border-radius:15px;padding:.9rem 1rem;font:inherit;background:rgba(255,250,244,.94);color:#171513}
.conversation-notify-choice{display:flex!important;align-items:center;gap:.7rem;padding:.8rem 0;color:#f4e4d8}.conversation-notify-choice input{width:20px;height:20px;flex:0 0 20px}
.conversation-review-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.75rem!important}
.conversation-review-tools .btn,.conversation-internal-send{min-height:54px;border-radius:16px!important}
.conversation-internal-send{width:100%;background:linear-gradient(135deg,#d66642,#a93629)!important;box-shadow:0 14px 30px rgba(148,53,35,.3)}
.conversation-delivery-note{margin:0;color:rgba(255,245,235,.68);font-size:.82rem}
.conversation-send-result{
  display:grid;gap:.35rem;padding:1rem 1.1rem;border:1px solid rgba(92,185,122,.38);border-radius:17px;
  background:rgba(27,91,52,.22);color:#eefcf2
}
.conversation-send-result[hidden]{display:none!important}.conversation-send-result strong{font-size:1.05rem}.conversation-send-result span{font-size:.84rem;color:rgba(238,252,242,.82)}
.conversation-send-result b{color:#fff}
.conversation-resume-actions{grid-column:2!important;grid-row:5!important;margin:0!important}
.conversation-state{grid-column:2!important}.voice-orb{grid-column:2!important}.conversation-compose{grid-column:2!important}
@media(max-width:820px){
  .conversation-shell{display:flex!important;overflow-y:auto!important;padding:max(.8rem,env(safe-area-inset-top)) .8rem max(.9rem,env(safe-area-inset-bottom))!important}
  .conversation-identity{height:auto!important;min-height:130px!important;max-height:160px!important;overflow:visible}
  .avatar-disc.avatar-portrait{height:150px!important;width:112px!important;flex-basis:112px!important}
  .conversation-avatar-image{object-position:50% 18%!important}
  .conversation-final-actions{position:relative!important;max-height:none!important;overflow:visible!important;grid-template-columns:1fr!important;border-radius:22px!important}
  .conversation-final-title,.conversation-review,.conversation-phone-field,.conversation-notify-choice,.conversation-review-tools,.conversation-internal-send,.conversation-delivery-note,.conversation-send-result{grid-column:1!important}
  .conversation-review{min-height:170px!important;max-height:none!important;resize:none!important}
  .conversation-review-tools{grid-template-columns:1fr 1fr!important}
  .conversation-resume-actions{position:relative!important;grid-column:auto!important;grid-row:auto!important}
  .conversation-close{top:max(.7rem,env(safe-area-inset-top));right:.7rem}
}
@media(max-width:480px){.conversation-review-tools{grid-template-columns:1fr!important}.conversation-final-actions{padding:1rem!important}.conversation-title-row h2{font-size:1.65rem!important}}

/* V6.6.1 — Conversational Geo Flow */
.conversation-geo-stage{grid-column:2;grid-row:4/9;z-index:8;display:grid;gap:1rem;align-content:start;padding:clamp(1rem,2vw,1.5rem);border:1px solid rgba(216,124,73,.48);border-radius:28px;background:linear-gradient(145deg,rgba(18,14,12,.96),rgba(54,31,23,.9));box-shadow:0 24px 70px rgba(0,0,0,.34);overflow:auto;color:#fff8ef}
.conversation-geo-stage[hidden]{display:none!important}.conversation-geo-prompt{display:grid;gap:.45rem}.conversation-geo-prompt h3{margin:0;max-width:38ch;font-size:clamp(1.2rem,2vw,1.7rem);line-height:1.2}.conversation-geo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.conversation-geo-choices .geo-choice{min-height:58px;border:1px solid rgba(216,124,73,.42);background:rgba(255,248,238,.08);color:#fff8ef;font-weight:850}.conversation-geo-choices .geo-choice:hover,.conversation-geo-choices .geo-choice:focus-visible{background:rgba(216,124,73,.2);border-color:#d87c49}.conversation-geo-picker{margin-top:.25rem;background:rgba(255,248,238,.07)!important;border-color:rgba(216,124,73,.35)!important}.conversation-geo-picker[hidden]{display:none!important}
@media(max-width:820px){.conversation-geo-stage{order:10;position:relative;grid-column:auto;grid-row:auto;border-radius:22px;overflow:visible}.conversation-geo-choices{grid-template-columns:1fr}.conversation-geo-picker .geo-map{min-height:260px}}


/* =========================================================
   V6.6.2 — VOCAL UI STABILIZATION LOCK
   Une seule étape visible, contrastes verrouillés, aucun chevauchement.
   ========================================================= */
.conversation-dialog[open]{display:block!important;overflow:hidden!important;background:rgba(8,6,5,.78)!important}
.conversation-shell{
  --panel:#1a1411;--panel-2:#2a1c17;--line:rgba(220,128,77,.38);--cream:#fff7ee;--muted:#d7c4b8;
  position:relative!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;
  display:grid!important;grid-template-columns:minmax(260px,32%) minmax(0,68%)!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;gap:1rem clamp(1.25rem,3vw,3rem)!important;
  padding:clamp(1rem,2.5vw,2.4rem)!important;overflow:hidden!important;
  background:linear-gradient(120deg,rgba(8,7,6,.96),rgba(39,23,17,.91))!important;color:var(--cream)!important
}
.conversation-header{grid-column:1/-1!important;grid-row:1!important;min-height:46px!important;z-index:20}
.conversation-close{position:absolute!important;top:1rem!important;right:1rem!important;z-index:50!important}
.conversation-identity{grid-column:1!important;grid-row:2/4!important;min-height:0!important;height:100%!important;overflow:hidden!important;display:flex!important}
.avatar-disc.avatar-portrait{height:100%!important;min-height:0!important;max-height:none!important;border-radius:26px!important;background:#120f0d!important}
.conversation-avatar-image{object-fit:cover!important;object-position:50% 18%!important;mask-image:linear-gradient(#000 82%,rgba(0,0,0,.65) 92%,transparent 100%)!important}
.avatar-copy{color:var(--cream)!important}.avatar-copy span,.avatar-copy small{color:var(--muted)!important}
.conversation-title-row{grid-column:2!important;grid-row:2!important;align-self:start!important;margin:0!important}
.conversation-title-row h2{margin:0!important;color:var(--cream)!important;font-size:clamp(2rem,4vw,3.35rem)!important;line-height:1.02!important}
.conversation-progress{display:none!important}
.conversation-log,.conversation-start-gate,.conversation-state,.voice-orb,.conversation-compose,.conversation-resume-actions,.conversation-privacy,.conversation-final-actions,.conversation-geo-stage{grid-column:2!important}
.conversation-log{grid-row:3!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:1rem!important;border:1px solid var(--line)!important;border-radius:22px!important;background:rgba(18,14,12,.74)!important;scrollbar-gutter:stable!important}
.conversation-message{color:var(--cream)!important;background:rgba(255,247,238,.09)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:none!important}
.conversation-message.assistant{color:#2a1d18!important;background:#fff6ec!important;border-color:#ead2c1!important}
.conversation-message.user{color:#fffaf5!important;background:linear-gradient(135deg,#a7482e,#7f321f)!important}
.conversation-state{color:#f4ded1!important;background:rgba(33,24,20,.96)!important;border:1px solid var(--line)!important;min-height:48px!important;margin-top:.75rem!important}
.voice-orb{background:#160f0c!important;border:1px solid rgba(232,145,93,.45)!important}
.conversation-compose{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,190px)!important;gap:.75rem!important;padding:.75rem!important;margin-top:.75rem!important;border-radius:20px!important;background:rgba(21,16,14,.96)!important;border:1px solid var(--line)!important}
.conversation-compose textarea,.conversation-review{color:#fff9f2!important;background:#2b211d!important;border:1px solid rgba(225,139,88,.48)!important;caret-color:#fff!important}
.conversation-compose textarea::placeholder,.conversation-review::placeholder{color:#cdb7aa!important;opacity:1!important}
.conversation-primary-action{min-height:58px!important;color:#fff!important;background:linear-gradient(135deg,#d66e45,#a33f28)!important;border:0!important;border-radius:16px!important}
.conversation-resume-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.75rem!important;margin-top:.75rem!important;padding:0!important;background:none!important;position:static!important}
.conversation-resume-actions[hidden]{display:none!important}.conversation-resume-actions .btn{min-height:56px!important;border-radius:16px!important}
.conversation-privacy{color:#cdb9ad!important;margin:.6rem 0 0!important}

/* stage isolation */
.conversation-shell.stage-geo .conversation-log,.conversation-shell.stage-geo .conversation-state,.conversation-shell.stage-geo .voice-orb,.conversation-shell.stage-geo .conversation-compose,.conversation-shell.stage-geo .conversation-resume-actions,.conversation-shell.stage-geo .conversation-privacy{display:none!important}
.conversation-shell.stage-review .conversation-log,.conversation-shell.stage-review .conversation-state,.conversation-shell.stage-review .voice-orb,.conversation-shell.stage-review .conversation-compose,.conversation-shell.stage-review .conversation-resume-actions,.conversation-shell.stage-review .conversation-privacy{display:none!important}
.conversation-shell.stage-geo .conversation-geo-stage,.conversation-shell.stage-review .conversation-final-actions{grid-row:3!important;display:block!important;min-height:0!important;height:100%!important;max-height:none!important;overflow:auto!important}

.conversation-geo-stage{padding:1.15rem!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(25,19,16,.98),rgba(57,35,27,.96))!important;border:1px solid var(--line)!important;color:var(--cream)!important;box-shadow:none!important}
.conversation-geo-prompt h3{color:var(--cream)!important;font-size:clamp(1.3rem,2.2vw,2rem)!important;max-width:34ch!important}
.conversation-geo-choices{margin-top:1rem!important}.conversation-geo-choices .geo-choice{color:#fff7ef!important;background:rgba(255,247,238,.08)!important;border-color:rgba(224,129,76,.48)!important}
.conversation-geo-picker{margin-top:1rem!important;color:var(--cream)!important;background:#211813!important;border:1px solid var(--line)!important}
.conversation-geo-picker h3,.conversation-geo-picker p,.conversation-geo-picker strong,.conversation-geo-picker span,.conversation-geo-picker small{color:inherit!important}
.conversation-geo-picker input{color:#211813!important;background:#fff7ef!important}
.geo-status{color:#ffd9c2!important}.geo-attribution,.geo-attribution a{color:#d9c0b1!important}

.conversation-final-actions{padding:1.15rem!important;border-radius:22px!important;background:linear-gradient(145deg,rgba(25,19,16,.98),rgba(57,35,27,.96))!important;border:1px solid var(--line)!important;color:var(--cream)!important;box-shadow:none!important;display:block!important}
.conversation-final-actions[hidden]{display:none!important}.conversation-final-title{display:block!important;color:var(--cream)!important;margin-bottom:.75rem!important;text-align:left!important}
.conversation-review{display:block!important;width:100%!important;min-height:180px!important;max-height:36vh!important;padding:1rem!important;border-radius:16px!important;resize:vertical!important}
.conversation-phone-field{display:grid!important;gap:.45rem!important;margin-top:1rem!important;color:var(--cream)!important}.conversation-phone-field span{color:#f1d7c7!important}
.conversation-phone-field input{width:100%!important;min-height:54px!important;padding:.85rem 1rem!important;border:1px solid rgba(225,139,88,.48)!important;border-radius:14px!important;background:#fff7ef!important;color:#211813!important}
.conversation-notify-choice{display:flex!important;align-items:center!important;gap:.65rem!important;margin:1rem 0!important;color:#f3dfd3!important}
.conversation-review-tools{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.75rem!important;margin-top:.8rem!important}
.conversation-review-tools .btn,.conversation-internal-send{min-height:54px!important;border-radius:16px!important}
.conversation-internal-send{width:100%!important;margin-top:.8rem!important;background:linear-gradient(135deg,#d66e45,#a33f28)!important;color:#fff!important;border:0!important}
.conversation-delivery-note{color:#cdb9ad!important;margin:.8rem 0 0!important}.conversation-send-result{margin-top:1rem!important;padding:1rem!important;border-radius:16px!important;background:rgba(45,122,78,.2)!important;border:1px solid rgba(98,205,142,.4)!important;color:#e9fff2!important}

@media(max-width:820px){
 .conversation-shell{display:flex!important;flex-direction:column!important;height:100dvh!important;padding:max(.75rem,env(safe-area-inset-top)) .75rem max(.75rem,env(safe-area-inset-bottom))!important;gap:.65rem!important;overflow:hidden!important}
 .conversation-header{flex:0 0 auto!important}.conversation-identity{flex:0 0 112px!important;min-height:112px!important;max-height:112px!important;display:flex!important;flex-direction:row!important;align-items:center!important}
 .avatar-disc.avatar-portrait{width:92px!important;height:112px!important;flex:0 0 92px!important;border-radius:18px!important}.avatar-copy{position:static!important;margin-left:.75rem!important;padding:.75rem!important}
 .conversation-title-row{flex:0 0 auto!important}.conversation-title-row h2{font-size:clamp(1.65rem,8vw,2.25rem)!important;text-align:center!important}
 .conversation-log{flex:1 1 auto!important;min-height:0!important;max-height:none!important}
 .conversation-state,.voice-orb,.conversation-compose,.conversation-resume-actions,.conversation-privacy{flex:0 0 auto!important}
 .conversation-compose{grid-template-columns:1fr!important}.conversation-primary-action{width:100%!important}
 .conversation-shell.stage-geo .conversation-identity,.conversation-shell.stage-review .conversation-identity{display:none!important}
 .conversation-shell.stage-geo .conversation-title-row,.conversation-shell.stage-review .conversation-title-row{display:block!important}
 .conversation-shell.stage-geo .conversation-geo-stage,.conversation-shell.stage-review .conversation-final-actions{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow:auto!important}
 .conversation-geo-choices{grid-template-columns:1fr!important}.conversation-geo-picker .geo-map{min-height:240px!important}
 .conversation-review{min-height:150px!important;max-height:28vh!important}.conversation-review-tools{grid-template-columns:1fr!important}
 .conversation-resume-actions{grid-template-columns:1fr!important}
 .keyboard-open .conversation-title-row{display:none!important}.keyboard-open .conversation-final-actions{flex:1 1 auto!important}
}
@media(max-height:720px) and (min-width:821px){.conversation-shell{padding:.85rem 1.2rem!important}.conversation-title-row h2{font-size:2rem!important}.avatar-copy{padding:.7rem!important}.conversation-review{min-height:130px!important;max-height:26vh!important}}


/* V6.6.8 — Dual Avatar Visual Lock: approved two-view integration only */
.conversation-gateway{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(232,153,100,.55)!important;
  background:
    radial-gradient(circle at 56% 40%,rgba(188,98,52,.20),transparent 26%),
    linear-gradient(112deg,rgba(19,15,13,.98),rgba(45,28,21,.88))!important;
}
.conversation-gateway::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 8% 22%,rgba(220,132,76,.10) 0 1px,transparent 1px),
    linear-gradient(90deg,transparent 0 49.8%,rgba(229,151,98,.16) 50%,transparent 50.2%);
  background-size:18px 18px,100% 100%;
  opacity:.45;
}
.gateway-copy,.gateway-stage{position:relative;z-index:1}
.gateway-stage{grid-template-columns:minmax(260px,380px) minmax(360px,1fr)!important;min-height:520px!important;gap:clamp(1.2rem,3vw,3rem)}
.gateway-avatar{
  height:500px!important;
  align-self:end!important;
  overflow:visible!important;
  filter:drop-shadow(0 28px 36px rgba(0,0,0,.52))!important;
}
.gateway-avatar img{
  width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:50% 20%!important;
  border-radius:220px 220px 34px 34px!important;
  border:1px solid rgba(226,141,87,.45);
  mask-image:linear-gradient(#000 0 88%,rgba(0,0,0,.82) 94%,transparent 100%)!important;
}
.gateway-avatar::before{
  content:"";position:absolute;inset:-20px -18px 4px;
  border:1px solid rgba(220,132,77,.28);border-radius:240px 240px 48px 48px;
  pointer-events:none;
}
.gateway-speech{max-width:430px!important;margin-left:0!important;border-color:rgba(225,139,85,.55)!important}
.gateway-listen{max-width:560px!important;min-height:150px!important}
.gateway-benefits{display:flex}

.conversation-shell{
  grid-template-columns:minmax(330px,32%) minmax(0,68%)!important;
  background:
    radial-gradient(circle at 14% 44%,rgba(194,101,51,.22),transparent 28%),
    linear-gradient(105deg,rgba(12,9,8,.97),rgba(40,24,18,.82))!important;
}
.conversation-identity{
  min-height:calc(100dvh - 7rem)!important;
  justify-content:flex-end!important;
}
.avatar-disc.avatar-portrait{
  position:absolute!important;
  inset:0!important;
  width:100%!important;height:100%!important;
  max-height:none!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
}
.conversation-avatar-image{
  width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:50% 15%!important;
  border-radius:0!important;
  mask-image:linear-gradient(#000 0 86%,rgba(0,0,0,.72) 94%,transparent 100%)!important;
  filter:drop-shadow(18px 18px 28px rgba(0,0,0,.48));
}
.conversation-identity::before{
  content:"";position:absolute;inset:8% 2% 10%;
  border:1px solid rgba(218,126,73,.24);border-radius:46% 46% 30px 30px;
  box-shadow:0 0 70px rgba(177,79,37,.16);pointer-events:none;
}
.avatar-copy{display:none!important}
.conversation-title-row h2{font-size:clamp(2.4rem,4vw,4.6rem)!important;color:#fff4e8!important}
.conversation-log,.conversation-compose,.conversation-state{position:relative;z-index:2}

@media(max-width:820px){
 .gateway-stage{grid-template-columns:130px 1fr!important;min-height:400px!important;gap:.5rem}
 .gateway-avatar{height:320px!important}
 .conversation-shell{display:flex!important}
 .conversation-identity{position:relative!important;min-height:220px!important;max-height:240px!important;overflow:hidden}
 .avatar-disc.avatar-portrait{position:absolute!important;inset:0!important;width:190px!important;height:240px!important}
 .conversation-avatar-image{object-position:50% 12%!important}
}


/* V6.6.8 — Six-Audit Recovery Lock: defensive layout only */
.conversation-gateway .gateway-avatar,
.conversation-dialog .conversation-identity{contain:layout paint;isolation:isolate;}
.conversation-gateway .gateway-avatar img,
.conversation-dialog .conversation-avatar-image{display:block;max-width:100%;height:auto;}
.conversation-dialog[open]{overflow:hidden;}
.conversation-dialog .conversation-shell{box-sizing:border-box;}
.conversation-dialog .conversation-log,
.conversation-dialog textarea{overflow-wrap:anywhere;}
@media (max-width:700px){
  .conversation-dialog .conversation-shell{width:100%;max-width:none;}
  .conversation-dialog .conversation-identity{min-width:0;}
  .conversation-dialog .conversation-avatar-image{max-height:26svh;object-fit:contain;object-position:center bottom;}
}
@media (prefers-reduced-motion:reduce){
  .gateway-avatar-glow,.conversation-state-dot,.voice-orb span{animation:none!important;transition:none!important;}
}

/* V6.6.8 — FINAL RESPONSIVE GEOMETRY LOCK (audit 5 correction) */
@media (min-width:821px){
  .conversation-shell{
    display:grid!important;
    grid-template-columns:clamp(280px,31vw,430px) minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    column-gap:clamp(1.2rem,3vw,3rem)!important;
  }
  .conversation-header{
    grid-column:1!important;grid-row:1/3!important;
    position:relative!important;display:block!important;
    width:100%!important;height:100%!important;min-height:0!important;
  }
  .conversation-header .conversation-identity{
    position:absolute!important;inset:0!important;
    width:100%!important;height:100%!important;min-height:0!important;
    display:block!important;overflow:hidden!important;
  }
  .conversation-header .avatar-disc.avatar-portrait{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  }
  .conversation-header .conversation-avatar-image{
    display:block!important;width:100%!important;height:100%!important;max-width:none!important;
    object-fit:cover!important;object-position:50% 15%!important;
  }
  .conversation-close{position:fixed!important;top:1rem!important;right:1rem!important;}
  .conversation-title-row{grid-column:2!important;grid-row:1!important;}
  .conversation-progress,.conversation-log,.conversation-start-gate,.conversation-state,.voice-orb,.conversation-compose,.conversation-resume-actions,.conversation-privacy,.conversation-final-actions,.conversation-geo-stage{grid-column:2!important;}
  .conversation-log{grid-row:2!important;}
}
@media (max-width:820px){
  .conversation-header{display:flex!important;position:relative!important;width:100%!important;height:auto!important;}
  .conversation-header .conversation-identity{position:relative!important;width:100%!important;min-width:0!important;}
  .conversation-header .avatar-disc.avatar-portrait{position:relative!important;inset:auto!important;}
  .conversation-header .conversation-avatar-image{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;}
  .conversation-close{position:absolute!important;top:.25rem!important;right:.25rem!important;}
  .conversation-gateway{overflow:hidden!important;}
  .gateway-stage{min-width:0!important;width:100%!important;}
  .gateway-avatar{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
  .gateway-avatar img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;}
}


/* AppMaçon v8.1.2 — UX Completion & Install Flow */
.conversation-install-offer{
  margin-top:.9rem;
  padding:.95rem 1rem;
  border:1px solid rgba(211,112,72,.34);
  border-radius:16px;
  background:rgba(255,255,255,.045);
  display:grid;
  gap:.5rem;
}
.conversation-install-offer>strong{font-size:1rem}
.conversation-install-offer>span{color:var(--muted);line-height:1.45}
.conversation-install-offer>small{color:var(--muted);line-height:1.45}
.conversation-install-button{justify-self:start;margin-top:.15rem}
.app-footer-credits{
  width:min(1120px,calc(100% - 32px));
  margin:1.2rem auto 0;
  padding:12px 8px 2px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 6px;
  font-size:11px;
  line-height:1.5;
  color:rgba(255,255,255,.52);
  text-align:center;
}
.app-footer-credits a{color:inherit;text-decoration:none}
.app-footer-credits a:hover,
.app-footer-credits a:focus-visible{text-decoration:underline}
.app-footer-credits .footer-separator{opacity:.55}
@media (max-width:480px){
  .app-footer-credits{font-size:10px;width:calc(100% - 20px)}
  .conversation-install-button{width:100%}
}
