/* ==========================================================
   Ivoiragent : feuille de style commune à toutes les pages
   ========================================================== */

/* ---------- Polices intégrées (aucun appel à Google) ---------- */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/roboto-slab-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("../fonts/iosevka-charon-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("../fonts/iosevka-charon-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Couleurs : crème dominant, orange réservé aux actions ---------- */
:root {
  --creme: #FBF6EE;
  --creme-2: #F3EBDF;      /* fond des sections alternées */
  --sable: #E6DACA;        /* bordures, séparateurs */
  --brun: #2A211B;         /* texte principal */
  --brun-2: #5E5248;       /* texte secondaire */
  --orange: #E8772E;       /* boutons d'action uniquement */
  --orange-fonce: #C9611E;
  --vert: #1F6B4A;         /* petites touches */

  --slab: "Roboto Slab", Georgia, serif;
  --mono: "Iosevka Charon Mono", ui-monospace, monospace;
  --texte: "Roboto", system-ui, sans-serif;

  --largeur: 1140px;
  --rayon: 18px;
  --ombre: 0 10px 30px rgba(42, 33, 27, .07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--creme-2); }
.section-titre { max-width: 680px; margin-bottom: 40px; }
.section-titre p { color: var(--brun-2); font-size: 1.1rem; }

.etiquette {
  display: inline-block;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 14px;
}
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.bouton:hover { transform: translateY(-1px); }
.bouton--principal { background: var(--orange); color: #fff; }
.bouton--principal:hover { background: var(--orange-fonce); }
.bouton--secondaire { background: transparent; color: var(--brun); border-color: var(--brun); }
.bouton--secondaire:hover { background: var(--brun); color: var(--creme); }
.bouton svg { width: 20px; height: 20px; flex: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sable);
}
.entete .conteneur { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-marque { width: 36px; height: 36px; flex: none; }
.logo-mot { font-family: var(--slab); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.logo-mot b { color: var(--orange); font-weight: 700; }

.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--brun-2);
}
.menu a:hover { color: var(--brun); background: var(--creme-2); }
.menu a[aria-current="page"] { color: var(--brun); background: var(--creme-2); }

.entete-actions { display: flex; align-items: center; gap: 8px; }
.bascule-anim {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--sable); border-radius: 999px;
  background: transparent; color: var(--brun-2);
  font-family: var(--mono); font-size: .8rem; cursor: pointer;
}
.bascule-anim:hover { border-color: var(--brun-2); color: var(--brun); }
.bascule-anim .pastille { width: 26px; height: 15px; border-radius: 999px; background: var(--sable); position: relative; transition: background .2s; }
.bascule-anim .pastille::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.bascule-anim[aria-pressed="true"] .pastille { background: var(--vert); }
.bascule-anim[aria-pressed="true"] .pastille::after { transform: translateX(11px); }

.entete .bouton--principal { min-height: 40px; padding: 8px 18px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; color: var(--brun); }
.burger svg { width: 26px; height: 26px; margin: auto; }

@media (max-width: 960px) {
  .burger { display: block; }
  .entete .bouton--principal { display: none; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--creme); border-bottom: 1px solid var(--sable);
    display: none;
  }
  .menu.ouvert { display: block; }
  .menu ul { flex-direction: column; padding: 8px 16px 16px; }
  .menu a { padding: 14px 12px; font-size: 1.05rem; }
  .bascule-anim .texte { display: none; }
}

/* ---------- Accroche (landing) ---------- */
.accroche { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.accroche .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.accroche h1 { max-width: 14ch; }
.accroche-texte p.chapo { font-size: 1.15rem; color: var(--brun-2); max-width: 34rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: .8rem; padding: 5px 12px; border: 1px solid var(--sable); border-radius: 999px; color: var(--brun-2); background: #fff; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.prix-rappel { font-family: var(--mono); font-size: .88rem; color: var(--brun-2); }
.prix-rappel strong { color: var(--brun); }

.scene { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: end; }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s; }
.scene-fixe { position: absolute; inset: 0; transition: opacity .25s; }
/* la 3D apparaît en fondu pendant que l'image fixe s'efface vite, pour éviter les formes en double */
.scene.active canvas { opacity: 1; }
.scene.active .scene-fixe { opacity: 0; }

@media (max-width: 860px) {
  .accroche .conteneur { grid-template-columns: 1fr; }
  .scene { order: -1; max-width: 210px; justify-self: center; margin: -16px 0 -12px; }
  .accroche h1 { max-width: none; }
}

/* ---------- Cartes ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grille-3, .grille-2 { grid-template-columns: 1fr; } }

.carte {
  background: #fff;
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 28px;
  box-shadow: var(--ombre);
}
.carte p:last-child { margin-bottom: 0; }
.carte-icone { width: 44px; height: 44px; border-radius: 12px; background: var(--creme-2); color: var(--vert); display: grid; place-items: center; margin-bottom: 18px; }
.carte-icone svg { width: 22px; height: 22px; }
.carte p { color: var(--brun-2); }

.service { display: flex; flex-direction: column; }
.service ul { list-style: none; padding: 0; margin: 4px 0 24px; }
.service li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px dashed var(--sable); }
.service li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: rotate(-45deg); }
.service-prix { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.service-prix .montant { font-family: var(--slab); font-weight: 700; font-size: 1.9rem; }
.service-prix .unite { font-family: var(--mono); font-size: .85rem; color: var(--brun-2); }
.lien-fleche { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--vert); text-decoration: none; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- Démo vidéo ---------- */
.demo .conteneur { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .demo .conteneur { grid-template-columns: 1fr; } }
.lecteur { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--brun); box-shadow: 0 20px 50px rgba(42, 33, 27, .18); aspect-ratio: 16 / 9; }
.lecteur video { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 860px) {
  .lecteur { aspect-ratio: 9 / 16; width: min(100%, 380px, calc((100svh - 120px) * 9 / 16)); margin-inline: auto; }
}
.bouton-son {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px;
  background: rgba(251, 246, 238, .95); color: var(--brun);
  font-family: var(--mono); font-weight: 700; font-size: .85rem; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.bouton-son svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .bouton-son { top: 14px; bottom: auto; } } /* en vertical, les sous-titres sont en bas */
.mention { font-size: .85rem; color: var(--brun-2); margin-top: 12px; }

/* ---------- Bandeau prix affichés ---------- */
.bandeau { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--brun); color: var(--creme); border-radius: 24px; padding: clamp(28px, 5vw, 48px); }
.bandeau h2 { color: var(--creme); }
.bandeau p { color: rgba(251, 246, 238, .75); margin: 0; }
.bandeau-prix { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; }
.bandeau-prix li { font-family: var(--mono); font-size: .85rem; color: rgba(251, 246, 238, .7); }
.bandeau-prix strong { display: block; font-family: var(--slab); font-size: 1.5rem; color: var(--creme); }
.bandeau .bouton--secondaire { color: var(--creme); border-color: var(--creme); }
.bandeau .bouton--secondaire:hover { background: var(--creme); color: var(--brun); }
@media (max-width: 860px) { .bandeau { grid-template-columns: 1fr; } }

/* ---------- Appel final ---------- */
.appel { text-align: center; }
.appel .section-titre { margin-inline: auto; }
.appel .boutons { justify-content: center; }

/* ---------- Pied de page ---------- */
.pied { background: var(--brun); color: rgba(251, 246, 238, .75); padding: 56px 0 28px; font-size: .95rem; }
.pied .logo-mot { color: var(--creme); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; } }
.pied h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--creme); margin-bottom: 14px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--creme); text-decoration: underline; }
.pied button.lien { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.pied button.lien:hover { color: var(--creme); text-decoration: underline; }
.pied-bas { border-top: 1px solid rgba(251, 246, 238, .15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* ---------- Bouton WhatsApp flottant (mobile) ---------- */
.wa-flottant {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: none; place-items: center;
  box-shadow: 0 10px 24px rgba(42, 33, 27, .25);
}
.wa-flottant svg { width: 28px; height: 28px; }
@media (max-width: 960px) { .wa-flottant { display: grid; } }

/* ---------- Bannière cookies ---------- */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px;
  background: #fff; border: 1px solid var(--sable); border-radius: var(--rayon);
  box-shadow: 0 20px 50px rgba(42, 33, 27, .18);
  padding: 22px;
}
.cookies[hidden] { display: none; }
.cookies h2 { font-size: 1.1rem; margin-bottom: 8px; }
.cookies p { font-size: .92rem; color: var(--brun-2); margin-bottom: 16px; }
.cookies .boutons { margin: 0; }
.cookies .bouton { flex: 1 1 140px; min-height: 44px; }
/* Accepter et Refuser ont le même poids visuel */
.cookies .bouton--choix { background: var(--brun); color: var(--creme); }
.cookies .bouton--choix:hover { background: #000; }

/* ---------- Pages de texte (confidentialité...) ---------- */
.page-titre { padding: clamp(48px, 7vw, 80px) 0 24px; }
.page-titre p { color: var(--brun-2); max-width: 640px; font-size: 1.1rem; }
.texte-long { max-width: 760px; padding-bottom: 80px; }
.texte-long h2 { font-size: 1.5rem; margin-top: 2em; }
.texte-long ul { padding-left: 1.2em; }
.texte-long li { margin-bottom: .4em; }
.texte-long table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.texte-long th, .texte-long td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sable); vertical-align: top; }
.texte-long th { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brun-2); }
.tableau-defile { overflow-x: auto; }

/* ---------- Apparition au défilement (désactivée si animations coupées) ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
html.sans-anim .apparait { opacity: 1; transform: none; transition: none; }
html.sans-anim { scroll-behavior: auto; }
html.sans-anim .bouton:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Lien d'évitement visible au clavier */
.sr-only:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; background: var(--brun); color: var(--creme); border-radius: 10px; }

/* ---------- En-tête des pages intérieures ---------- */
.page-titre { background: var(--creme-2); border-bottom: 1px solid var(--sable); padding-bottom: clamp(40px, 6vw, 64px); }
.page-titre h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; }

/* ---------- Services (page détaillée) ---------- */
.bloc-service { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; scroll-margin-top: 90px; }
@media (max-width: 860px) { .bloc-service { grid-template-columns: 1fr; gap: 24px; } }
.bloc-service .chapo { font-size: 1.1rem; color: var(--brun-2); }
.liste-coches { list-style: none; padding: 0; margin: 0 0 8px; }
.liste-coches li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--sable); }
.liste-coches li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 6px; border-left: 2px solid var(--vert); border-bottom: 2px solid var(--vert); transform: rotate(-45deg); }
.liste-non li::before { border: 0; width: 12px; height: 2px; background: var(--brun-2); transform: none; top: 22px; }
.pour-qui { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.pour-qui li { font-family: var(--mono); font-size: .82rem; padding: 6px 12px; background: var(--creme-2); border-radius: 999px; }

/* ---------- Tarifs ---------- */
.grille-tarifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; padding-top: 14px; }
@media (max-width: 1080px) { .grille-tarifs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grille-tarifs { grid-template-columns: 1fr; } }
.tarif { display: flex; flex-direction: column; position: relative; }
.tarif h2 { font-size: 1.3rem; margin-bottom: 4px; }
.tarif .pour { color: var(--brun-2); font-size: .95rem; min-height: 3em; }
.tarif .prix { font-family: var(--slab); font-weight: 700; font-size: 2rem; line-height: 1.1; margin: 12px 0 4px; }
.tarif .prix small { font-family: var(--mono); font-weight: 400; font-size: .85rem; color: var(--brun-2); }
.tarif .prix-suite { font-family: var(--mono); font-size: .85rem; color: var(--brun-2); margin-bottom: 18px; }
.tarif .liste-coches { margin-bottom: 24px; font-size: .95rem; }
.tarif .bouton { margin-top: auto; }
.tarif--mis-en-avant { border: 2px solid var(--brun); }
.tarif .badge { position: absolute; top: -13px; left: 26px; font-family: var(--mono); font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--brun); color: var(--creme); }
.note { font-size: .92rem; color: var(--brun-2); margin-top: 28px; }

/* ---------- Méthode ---------- */
.etapes { list-style: none; padding: 0; margin: 0; counter-reset: etape; display: grid; gap: 18px; }
.etape { counter-increment: etape; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.etape::before { content: counter(etape); width: 56px; height: 56px; border-radius: 16px 16px 16px 4px; background: var(--vert); color: var(--creme); font-family: var(--slab); font-weight: 700; font-size: 1.5rem; display: grid; place-items: center; }
.etape h2 { font-size: 1.35rem; }
.etape .duree { font-family: var(--mono); font-size: .82rem; color: var(--vert); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { background: #fff; border: 1px solid var(--sable); border-radius: 14px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: var(--slab); font-weight: 500; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.4rem; color: var(--vert); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--brun-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }
.contact-principal h2 { font-size: 1.6rem; }
.numero { font-family: var(--slab); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 8px 0 20px; }
.qr-bloc { display: flex; gap: 20px; align-items: center; }
.qr-bloc img { width: 140px; height: 140px; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--sable); }
@media (max-width: 860px) { .qr-bloc { display: none; } } /* inutile de scanner son propre écran */
.infos-contact { list-style: none; padding: 0; margin: 0; }
.infos-contact li { padding: 14px 0; border-bottom: 1px dashed var(--sable); }
.infos-contact li span { display: block; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brun-2); }
.infos-contact a { font-weight: 500; }

/* Petites variantes (remplacent les styles écrits dans le HTML, pour une CSP stricte) */
.pied-intro { margin-top: 14px; }
.lien-demo { margin-top: 20px; }
.carte--suite { margin-top: 16px; }
.etiquette--claire { color: #F2A36B; }
.bouton--petit { min-height: 40px; padding: 6px 16px; }
