/* Chicadom · landing v3 (#370) : une page en 5 temps, l'appli en action dans un téléphone.
   Charte : appli Chicadom (V1 « Crème apaisée », #278) + logo R4a terracotta (kit officiel #355). */
@font-face { font-family: "Fraunces"; src: url(fonts/Fraunces-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/Fraunces-italique-latin.woff2) format("woff2"); font-style: italic; font-weight: 540; font-display: swap; } /* instance fixe : opsz 144, SOFT 100 */
@font-face { font-family: "Inter"; src: url(fonts/Inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --creme: #FAF8F5;      /* fond de l'appli */
  --lin: #F2EBDF;        /* fond alterné */
  --trait: #E4DACB;
  --encre: #1F1B16;
  --encre-douce: #5E5244; /* 7,3:1 sur crème, 6,4:1 sur lin */
  --terre: #C2410C;       /* action : blanc dessus 5,2:1 */
  --terre-fonce: #9A3412; /* texte en couleur : 7,0:1 sur crème */
  --terre-doux: #F8E7DC;
  --argile: #BB7555;      /* signes graphiques fins uniquement */
  --blush: #F6E3D6;       /* fond chaud du prix */
  --erreur: #BE123C;

  --display: "Fraunces", Georgia, serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 14px;
  --gouttiere: clamp(20px, 5vw, 40px);
  --sortie: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Passage d'une page à l'autre (accueil, prospection, mentions) : View Transitions, l'en-tête reste en place */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
::view-transition-old(root) { animation: 160ms cubic-bezier(.4, 0, 1, 1) both vt-sortie; }
::view-transition-new(root) { animation: 320ms cubic-bezier(.16, 1, .3, 1) both vt-entree; }
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font: 400 17px/1.6 var(--texte); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terre-fonce); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--terre-doux); color: var(--encre); }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--encre); color: #fff; padding: 10px 14px; border-radius: 8px; }
.evitement:focus { top: 12px; }

.enveloppe { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gouttiere); }
.enveloppe--etroite { max-width: 760px; }

/* Titres : Fraunces, la chute en italique terracotta */
.titre-2 { font: 620 clamp(2.1rem, 8.4vw, 3.6rem)/1.04 var(--display); letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
.titre-3 { font: 600 clamp(1.6rem, 5.6vw, 2.2rem)/1.1 var(--display); letter-spacing: -.015em; font-variation-settings: "opsz" 72; }
.titre-2 em, .heros__titre em, .merci__titre { font-style: italic; font-weight: 540; color: var(--terre-fonce); }
.titre-2 em { display: block; letter-spacing: -.02em; }

/* Bouton : une seule action sur la page */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--terre); color: #fff; text-decoration: none; text-align: center;
  font: 600 1.0625rem/1.2 var(--texte); letter-spacing: -.005em; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px -6px rgba(31, 27, 22, .35);
  transition: background-color .2s var(--sortie), transform .2s var(--sortie), opacity .2s;
  touch-action: manipulation;
}
.bouton:hover { background: var(--terre-fonce); text-decoration: none; }
.bouton:active { transform: scale(.98); }
.bouton:disabled { cursor: not-allowed; background: #B9A99A; box-shadow: none; transform: none; }
.bouton[aria-busy=true] { opacity: .75; cursor: progress; }
.bouton--petit { min-height: 44px; padding: 0 18px; font-size: .9375rem; box-shadow: none; }
.bouton--plein { width: 100%; }

/* En-tête */
/* Fond plein : aucun texte ne doit se lire derrière l'en-tête (retour #370) */
.entete { position: sticky; top: 0; z-index: 40; background: var(--creme); border-bottom: 1px solid transparent; transition: border-color .3s; }
.entete.est-defile { border-bottom-color: var(--trait); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.entete__logo { display: inline-flex; align-items: center; min-height: 44px; }
.entete__logo img { width: 112px; height: auto; }
.entete__cta { display: none; }

/* Téléphone (cadre dessiné ; l'écran est un film de l'appli 393×800) */
.tel { position: relative; z-index: 1; margin: 0; aspect-ratio: 393 / 852; padding: 3.1%; border-radius: 15.5% / 7.2%; background: #1F1B16;
  box-shadow: 0 0 0 1.5px #3A332B inset, 0 30px 60px -24px rgba(31,27,22,.45), 0 12px 24px -12px rgba(31,27,22,.25); }
.tel__ecran { position: relative; height: 100%; overflow: hidden; border-radius: 12.6% / 5.9%; background: var(--creme); padding-top: 6.1%; }
.tel__ecran::before { content: ""; position: absolute; z-index: 2; top: 1.9%; left: 50%; width: 31%; height: 3.6%; transform: translateX(-50%); border-radius: 99px; background: #0E0C0A; }
.film-fixe img { width: 100%; height: auto; }
/* L'affiche (1re image du film) est toujours peinte dessous : rien de blanc avant la lecture, ni si la vidéo échoue */
.ecran-film { position: relative; }
.film { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .film { display: none; }
  .pause { display: none !important; }
}

/* Scène : téléphone + ovale miroir + légende et pause */
.scene { position: relative; margin: 0; display: grid; justify-items: center; }
.scene::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(420px, 112%); aspect-ratio: 1 / 1.3; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #F8E7DC 0 70%, color-mix(in srgb, #F3DCCB 70%, var(--creme)) 100%); }
.scene__pied { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: .8125rem; color: var(--encre-douce); }
.pause { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--trait); border-radius: 50%; background: var(--creme); color: var(--encre); cursor: pointer; }
.pause:hover { border-color: var(--terre); }
.pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pause .i-lecture { display: none; fill: currentColor; stroke: none; }
.pause[aria-pressed="true"] .i-pause { display: none; }
.pause[aria-pressed="true"] .i-lecture { display: inline; }
.pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Morceaux de l'appli posés à côté du téléphone (séquences : crops 2x de vrais écrans) */
.flotte { position: absolute; z-index: 2; pointer-events: none; }
.flotte img { width: 100%; height: auto; }
.pastille { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; font-weight: 600; font-size: .9375rem; color: var(--encre); white-space: nowrap;
  box-shadow: 0 1px 0 var(--trait), 0 18px 32px -16px rgba(31,27,22,.4); }
.pastille__anim { flex: none; width: 40px; height: 40px; }
.pastille--cliente { left: 50%; bottom: 22%; margin-left: clamp(-60px, calc(50vw - 184px), 20px); }
.pastille--rappel { left: 50%; top: -2%; margin-left: -150px; }
.flotte__badge { position: absolute; right: -6px; top: -20px; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 10px 22px -10px rgba(31,27,22,.45); }
.flotte--facture { width: min(250px, 64vw); right: max(8px, calc(50% - 190px)); bottom: 12%; transform: rotate(-2deg); }
.flotte--facture img { border-radius: 12px; box-shadow: 0 1px 0 var(--trait), 0 30px 50px -22px rgba(31,27,22,.5); }

/* 1. Accroche */
.heros { padding: 18px 0 40px; overflow: clip; }
.heros__grille { display: grid; gap: 28px; }
.heros__titre { font: 640 clamp(2.1rem, 9.2vw, 4.75rem)/1.02 var(--display); letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.heros__titre em { display: block; letter-spacing: -.02em; }
.heros__sous { margin-top: 16px; max-width: 30em; font-size: 1.125rem; color: var(--encre-douce); }
.heros__action { margin-top: 24px; }
.heros__note { margin-top: 12px; font-size: .9375rem; color: var(--encre-douce); }
.heros__note strong { color: var(--encre); }
.heros__visuel { width: min(230px, 60vw, var(--tel-h)); justify-self: center; padding-top: 4px; }
/* Chaque téléphone se voit en entier, avec sa légende (#395 v3.3) : sa largeur suit la hauteur de l'écran.
   Téléphone : place sous l'en-tête (65 px), au-dessus de la barre collante (79 px), légende (58 px) et 16 px d'air retirés. */
:root { --tel-h: calc((100svh - 65px - 79px - 58px - 16px) * 393 / 852); }
/* Téléphone : le titre, puis l'appli qui tourne, puis l'action (la barre « Réserver » reste en bas d'écran) */
@media (max-width: 959px) {
  .heros__texte { display: contents; }
  .heros__titre { order: 1; } .heros__sous { order: 2; margin-top: -14px; } .heros__visuel { order: 3; } .heros__action { order: 4; margin-top: 0; } .heros__note { order: 5; margin-top: -16px; }
  .heros__grille { gap: 22px; }
  .heros__sous { font-size: 1.0625rem; }
}
.heros__visuel .tel { width: 100%; }

/* 2 à 4. Les moments : un titre, une phrase, le film */
.moment { padding: 64px 0; overflow: clip; }
.moment:nth-of-type(even) { background: var(--lin); }
.moment:nth-of-type(even) .scene::before { background: radial-gradient(closest-side, #FBF3EC 0 70%, color-mix(in srgb, #F6E6D8 60%, var(--lin)) 100%); }
.moment:nth-of-type(even) .pause { background: var(--lin); }
.moment__grille { display: grid; gap: 30px; }
.moment__dit { margin-top: 16px; max-width: 26em; font-size: 1.1875rem; line-height: 1.5; color: var(--encre-douce); }
.moment__scene .tel { width: max(150px, min(250px, 66vw, var(--tel-h))); }

/* 5. Prix + liste d'attente */
.prix { background: var(--blush); padding: 64px 0; }
.prix__grille { display: grid; gap: 36px; }
.offre__prix { margin-top: 22px; display: flex; align-items: baseline; gap: 4px; color: var(--encre); }
.offre__montant { font: 600 clamp(4.5rem, 22vw, 6.5rem)/.9 var(--display); letter-spacing: -.04em; font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums; }
.offre__unite { font: 500 1.5rem/1 var(--display); color: var(--encre-douce); }
.offre__ou { margin-top: 12px; color: #4A3A2E; }
.offre__ou strong { color: var(--encre); }
.offre__plus { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 500; }
.offre__plus li { position: relative; padding-left: 30px; }
.offre__plus li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--terre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.temoignage { margin: 22px 0 0; }
.temoignage blockquote { margin: 0; font: italic 540 1.25rem/1.4 var(--display); color: var(--encre); }
.temoignage figcaption { margin-top: 8px; font-size: .9375rem; color: #4A3A2E; }
.offre__terrain { margin-top: 22px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--argile) 35%, transparent); font-size: .9375rem; color: #4A3A2E; }

.formulaire { display: grid; gap: 18px; padding: 24px; border-radius: 22px; background: var(--creme); box-shadow: 0 1px 0 var(--trait), 0 24px 44px -28px rgba(31,27,22,.4); }
.formulaire__titre { font: 600 1.25rem/1.3 var(--display); letter-spacing: -.01em; }
.formulaire__champs { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.formulaire__champs:disabled { opacity: .6; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ > label { font-weight: 600; font-size: .9375rem; }
.champ input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #CFC3B2; border-radius: 12px; background: #fff;
  font: 400 1rem var(--texte); color: var(--encre); caret-color: var(--terre); transition: border-color .15s;
}
.champ input:hover { border-color: #A99A86; }
.champ input:focus-visible { outline: 3px solid color-mix(in srgb, var(--terre) 35%, transparent); outline-offset: 0; border-color: var(--terre); }
.champ input:disabled { background: #F4EFE8; cursor: not-allowed; }
.champ input[aria-invalid=true] { border-color: var(--erreur); }
.champ__erreur { font-size: .875rem; font-weight: 500; color: var(--erreur); }
.formulaire__bientot { margin-top: -6px; text-align: center; font-weight: 500; color: var(--encre-douce); } /* information, pas une alerte (#395) */
.formulaire__echec { padding: 12px 14px; border-radius: 12px; background: #FDECEF; color: #9F1239; font-size: .9375rem; font-weight: 500; }
.formulaire__legal { font-size: .8125rem; line-height: 1.5; color: var(--encre-douce); }
.formulaire__legal a { display: inline-block; padding: 10px 0; margin: -10px 0; } /* cible de 44 px sans gonfler l'interligne */
.merci { padding: 28px 24px; border-radius: 22px; background: var(--creme); }
.merci:focus { outline: none; }
.merci__titre { font: 540 1.75rem/1.2 var(--display); font-style: italic; margin-bottom: 10px; }
.merci__fin { margin-top: 12px; color: var(--encre-douce); }

/* FAQ courte */
.faq { padding: 56px 0; }
.faq__liste { margin-top: 20px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px; border-right: 2px solid var(--terre-fonce); border-bottom: 2px solid var(--terre-fonce); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--sortie); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--encre-douce); max-width: 38em; }
.faq__humain { margin-top: 24px; color: var(--encre-douce); }

/* Pied */
.pied { padding: 40px 0 120px; font-size: .9375rem; border-top: 1px solid var(--trait); }
.pied__grille { display: grid; gap: 16px; }
.pied__liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.pied__liens a { color: var(--encre); display: inline-block; padding: 10px 0; }
.pied__grals { color: var(--encre-douce); font-size: .875rem; }

/* Barre d'action au téléphone (même action, après l'accroche, masquée sur le formulaire) */
.barre-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px var(--gouttiere) calc(12px + env(safe-area-inset-bottom)); background: var(--creme); border-top: 1px solid var(--trait); transform: translateY(110%); transition: transform .35s var(--sortie); }
.barre-cta.est-visible { transform: none; }

/* Pages légales (mentions, prospection) */
.legal { padding: 40px 0 80px; }
.legal h1 { font: 620 clamp(2rem, 7vw, 3rem)/1.08 var(--display); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.legal h2 { margin-top: 36px; font: 600 1.35rem/1.25 var(--display); }
.legal p, .legal ul { margin-top: 12px; color: #3B332B; max-width: 40em; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal__retour { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; font-weight: 600; }
.legal__origine { margin-top: 16px; padding: 14px 16px; border-radius: var(--rayon); background: var(--lin); }

/* Tablette */
@media (min-width: 700px) {
  .formulaire { padding: 32px; }
  /* tablette en portrait : titre, phrase, téléphone et légende tiennent ensemble ; au héros, le titre et le bouton aussi */
  .moment__scene .tel { width: max(180px, min(270px, calc((100svh - 65px - 79px - 58px - 300px) * 393 / 852))); }
  .heros__visuel { width: max(180px, min(230px, calc((100svh - 590px) * 393 / 852))); }
}

/* Ordinateur */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .entete__cta { display: inline-flex; }
  .entete__ligne { height: 72px; }
  .entete__logo img { width: 140px; }
  /* Le héros tient dans l'écran d'un portable (#395) : il occupe la hauteur sous l'en-tête, le contenu y est centré,
     et le téléphone se règle sur la hauteur disponible (marges + légende retirées), entre 200 et 320 px de large. */
  .heros { --marge-h: clamp(16px, 4svh, 48px); --entete-h: 72px; --legende-h: 58px;
    display: grid; align-content: center; min-height: calc(100svh - var(--entete-h)); padding: var(--marge-h) 0; }
  .heros__grille { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .heros__titre { font-size: clamp(3rem, 10svh, 4.75rem); }
  .heros__visuel { width: clamp(200px, calc((100svh - var(--entete-h) - 2 * var(--marge-h) - var(--legende-h)) * 393 / 852), 320px); }
  /* Les moments tiennent dans l'écran d'un portable (#395 v3.3) : marges et téléphone suivent la hauteur, comme au héros */
  .moment { padding: clamp(40px, 12svh, 112px) 0; }
  .moment__grille { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .moment--inverse .moment__texte { order: 2; }
  .moment__scene .tel { width: clamp(180px, calc((100svh - var(--entete-h, 72px) - 32px - var(--legende-h, 58px)) * 393 / 852), 300px); }
  .pastille--cliente { margin-left: 70px; }
  .pastille--rappel { margin-left: -190px; }
  .flotte--facture { width: 310px; right: auto; left: 50%; margin-left: -110px; }
  .prix, .faq { padding: 112px 0; }
  .prix__grille { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  /* Le bloc prix tient aussi dans l'écran d'un portable (#395 v3.3) : tailles et écarts suivent la hauteur, plafonnés à ceux d'avant */
  .prix { padding: clamp(40px, 12svh, 112px) 0; }
  .prix__grille { grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 5vw, 72px); }
  .prix__titre { font-size: clamp(2rem, 6svh, 3.6rem); }
  .offre__prix { margin-top: clamp(10px, 2.4svh, 22px); }
  .offre__montant { font-size: clamp(3.5rem, 11svh, 6.5rem); }
  .offre__ou { font-size: clamp(.9375rem, 2.6svh, 1.125rem); }
  .offre__plus { margin-top: clamp(12px, 2.4svh, 22px); gap: clamp(4px, 1svh, 10px); }
  .offre__terrain { margin-top: clamp(12px, 2.4svh, 22px); padding-top: clamp(10px, 1.8svh, 16px); }
  .formulaire { gap: clamp(10px, 1.9svh, 18px); padding: clamp(20px, 3.4svh, 32px); }
  .formulaire__champs { gap: clamp(8px, 1.6svh, 16px); grid-template-columns: 1fr 1fr; } /* prénom et ville côte à côte, e-mail en entier */
  .formulaire__champs .champ:nth-of-type(3) { grid-column: 1 / -1; }
  .formulaire__titre { font-size: clamp(1.0625rem, 2.9svh, 1.25rem); }
  .pied { padding-bottom: 48px; }
  .pied__grille { grid-template-columns: auto 1fr; align-items: center; gap: 12px 40px; }
  .pied__grals { grid-column: 1 / -1; }
  .barre-cta { display: none; }
}
