/* Page « Analyser mon site » : l'estran. Repose sur site-panorama.css (barre du haut, polices, couleurs),
   site-applis.css (boutons, liens, intitulés) et site-faq.css (bandeau du bas, pied de page). */
.page-estran { background: #10151c; --marge: max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2); }
.page-estran h1 em, .page-estran h2 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: #ffd9b0; }

/* --- écran 1 : le titre sur les rochers, le formulaire sur le sable mouillé --- */
.estran .stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr); gap: clamp(28px, 5vw, 96px); align-items: center; min-height: max(100vh, 720px); padding: clamp(116px, 16vh, 170px) var(--marge) clamp(40px, 7vh, 80px); overflow: clip;/* clip et non hidden : la hauteur suit le contenu, le formulaire n'est jamais coupé */ isolation: isolate; color: var(--cream); }
.estran .fond { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.estran .stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 22, 0.78), rgba(14, 16, 22, 0.56) 38%, rgba(14, 16, 22, 0.1) 66%, rgba(14, 16, 22, 0.16)), linear-gradient(180deg, rgba(14, 16, 22, 0.5), rgba(14, 16, 22, 0) 26%), linear-gradient(180deg, rgba(16, 21, 28, 0) 62%, rgba(16, 21, 28, 0.55) 84%, #10151c 100%); } /* le bas du hero s'assombrit jusqu'à la couleur du haut de l'écran suivant : plus de coupure nette */
.e-gauche { display: grid; gap: clamp(14px, 2.4vh, 26px); align-content: center; }
.e-gauche p, .e-gauche h1 { margin: 0; }
.e-gauche .sur { color: #fff; }
.estran h1 { max-width: 13ch; font: 600 clamp(44px, 5.6vw, 104px)/0.96 Bricolage, DM, sans-serif; letter-spacing: -0.04em; text-shadow: 0 2px 28px rgba(10, 12, 18, 0.5); }
.e-chapeau { max-width: 56ch; font-size: clamp(16px, 1.22vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 16px rgba(10, 12, 18, 0.7); }
.reperes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px); margin: clamp(8px, 2vh, 22px) 0 0; padding-top: clamp(14px, 2.2vh, 22px); border-top: 1px solid rgba(247, 241, 227, 0.4); }
.reperes dt { font: 600 clamp(30px, 3vw, 54px)/1 Bricolage, DM, sans-serif; letter-spacing: -0.03em; color: #ffd9b0; }
.reperes dd { margin: 6px 0 0; font-size: clamp(13px, 0.98vw, 16px); line-height: 1.35; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 12px rgba(10, 12, 18, 0.7); }
.e-gauche > :is(.e-chapeau, .reperes), .e-droite { opacity: 0; translate: 0 18px; transition: opacity 800ms ease 500ms, translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) 500ms; }
.stage.la .e-gauche > :is(.e-chapeau, .reperes), .stage.la .e-droite { opacity: 1; translate: 0 0; }
.stage.la .reperes { transition-delay: 640ms; } .stage.la .e-droite { transition-delay: 760ms; }

/* le formulaire : une vitre sombre posée sur le sable */
.analyse { display: grid; gap: clamp(12px, 1.8vh, 18px); padding: clamp(24px, 2.6vw, 42px); border: 1px solid rgba(247, 241, 227, 0.24); border-radius: 18px; background: rgba(16, 18, 26, 0.66); box-shadow: 0 30px 80px rgba(8, 8, 14, 0.45); backdrop-filter: blur(18px) saturate(1.1); color: var(--cream); }
.analyse p, .analyse h2 { margin: 0; }
.p-sur i { font: italic 400 1.25em/1 "Iowan Old Style", Baskerville, Georgia, serif; letter-spacing: 0; margin-right: 6px; text-transform: none; }
.analyse h2 { font: 600 clamp(22px, 1.9vw, 32px)/1.12 Bricolage, DM, sans-serif; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.champ { display: grid; gap: 7px; }
.champ span { font: 600 clamp(12px, 0.85vw, 14px)/1 DM, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 241, 227, 0.8); }
.champ input { width: 100%; padding: 15px 16px; border: 1px solid rgba(247, 241, 227, 0.34); border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; font: 500 clamp(16px, 1.15vw, 19px)/1.2 DM, sans-serif; transition: border-color 200ms ease, background 200ms ease; }
.champ input::placeholder { color: rgba(247, 241, 227, 0.5); }
.champ input:focus { outline: 0; border-color: var(--copper-clair); background: rgba(255, 255, 255, 0.14); }
.accord { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: clamp(12.5px, 0.88vw, 14px); line-height: 1.45; color: rgba(247, 241, 227, 0.82); cursor: pointer; }
.accord input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--copper); }
.accord a { color: #ffd9b0; }
.analyse .bouton { justify-content: center; border: 0; cursor: pointer; }
.analyse .bouton:disabled { opacity: 0.6; cursor: progress; }
.a-note { font-size: clamp(12.5px, 0.88vw, 14px); color: rgba(247, 241, 227, 0.7); text-align: center; }
.a-erreur { padding: 10px 14px; border-left: 3px solid #ff9a7a; background: rgba(255, 120, 90, 0.14); font-size: 14.5px; color: #ffd6c8; }
.analyse.merci { animation: panneau-arrive 620ms cubic-bezier(0.16, 1, 0.3, 1); }
.analyse.merci h2 { font-size: clamp(30px, 2.8vw, 48px); }
.analyse.merci > p:not(.p-sur, .a-note) { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; }
.analyse.merci .a-note { text-align: left; }

/* --- les blocs du bas arrivent quand on les voit --- */
.vu { opacity: 0; translate: 0 26px; transition: opacity 800ms ease calc(var(--i, 0) * 110ms), translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 110ms); }
.vu.la { opacity: 1; translate: 0 0; }
.vu.la .sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 200ms; }

/* --- écran 2 : la flaque vue de dessus, les quatre points regardés --- */
.flaque { position: relative; display: grid; align-content: center; gap: clamp(26px, 5vh, 56px); min-height: max(100vh, 760px); padding: clamp(70px, 11vh, 130px) var(--marge); overflow: hidden; isolation: isolate; color: var(--cream); }
.flaque .fond { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flaque::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #10151c, rgba(16, 21, 28, 0.42) 22%, rgba(16, 21, 28, 0.3) 70%, #f3ecdc 100%); }
.f-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: clamp(28px, 5vw, 96px); align-items: end; }
.f-tete > * { margin: 0; }
.f-tete .sur { grid-column: 1 / -1; margin-bottom: clamp(12px, 2vh, 20px); color: #fff; }
.f-tete h2, .recu h2 { font: 600 clamp(36px, 4.2vw, 78px)/0.98 Bricolage, DM, sans-serif; letter-spacing: -0.04em; text-wrap: balance; }
.f-tete h2 { text-shadow: 0 2px 28px rgba(10, 12, 18, 0.6); }
.f-tete > p:last-child { font-size: clamp(16px, 1.22vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 16px rgba(10, 12, 18, 0.8); }
.axes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.axe { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: clamp(18px, 1.8vw, 30px); border: 1px solid rgba(247, 241, 227, 0.22); border-radius: 16px; background: rgba(14, 18, 26, 0.62); box-shadow: 0 24px 60px rgba(6, 8, 14, 0.4); backdrop-filter: blur(14px) saturate(1.1); transition: opacity 800ms ease calc(var(--i, 0) * 110ms), translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 110ms), border-color 300ms ease, background 300ms ease; }
.axe:hover { border-color: rgba(255, 217, 176, 0.6); background: rgba(14, 18, 26, 0.74); }
.axe > * { margin: 0; }
.axe h3 { font: 600 clamp(20px, 1.7vw, 30px)/1.1 Bricolage, DM, sans-serif; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.axe > p:not(.p-sur) { font-size: clamp(14.5px, 1.02vw, 17px); line-height: 1.5; color: rgba(247, 241, 227, 0.9); }
.mini { margin-top: 8px; padding: 14px 16px; border-radius: 10px; background: #f7f1e3; color: #1d2430; font-family: DM, sans-serif; min-height: 128px; }
.mini small { display: block; font-size: 12.5px; line-height: 1.4; color: #5a6270; }
.serp { display: grid; gap: 5px; align-content: start; }
.serp span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #5a6270; }
.serp span i { width: 16px; height: 16px; border-radius: 50%; background: var(--copper); }
.serp b { font: 600 16px/1.2 DM, sans-serif; color: #1a3fa8; }
.serp em, .message em { justify-self: start; margin-top: 4px; padding: 5px 10px; border-radius: 99px; background: #1d2430; color: #fff; font: 600 12px/1 DM, sans-serif; font-style: normal; }
.pouce { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.mtel { display: grid; gap: 5px; align-content: start; width: 58px; height: 100px; padding: 9px 7px; border: 2px solid #1d2430; border-radius: 11px; }
.mtel i { height: 22px; border-radius: 3px; background: linear-gradient(135deg, #c98a5c, #7fa3b5); }
.mtel b { height: 4px; border-radius: 2px; background: #c9c2b2; } .mtel b + b { width: 70%; }
.mtel span { margin-top: auto; padding: 4px 0; border-radius: 4px; background: var(--copper); color: #fff; font: 700 8px/1 DM, sans-serif; text-align: center; }
.pouce ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font: 600 13.5px/1.2 DM, sans-serif; }
.pouce li::before { content: "✓"; margin-right: 8px; color: #2f8a5b; font-weight: 700; }
.score { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; }
.score svg { width: 92px; rotate: -90deg; }
.score circle { fill: none; stroke-width: 10; }
.score .piste { stroke: #e2dac8; }
.score .valeur { stroke: #d99a2b; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1600ms cubic-bezier(0.16, 1, 0.3, 1) 500ms; }
.axe.la .score .valeur { stroke-dashoffset: 91.5; }
.score > b { position: absolute; left: 16px; width: 92px; text-align: center; font: 600 28px/1 Bricolage, DM, sans-serif; }
.score span { font: 600 15px/1.2 DM, sans-serif; }
.message { display: grid; gap: 6px; align-content: start; }
.message b { font: 600 15.5px/1.25 Bricolage, DM, sans-serif; }
.message mark { background: linear-gradient(transparent 58%, #ffd9b0 58%); color: inherit; }
.message em { background: var(--copper); }

/* --- le courriel reçu, puis les trois étapes : sur le sable clair --- */
.recu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vh, 84px) clamp(28px, 5vw, 96px); align-items: center; padding: clamp(60px, 10vh, 120px) var(--marge) clamp(64px, 10vh, 120px); background: #f3ecdc; color: #1d2430; }
.recu h2 em { color: var(--copper); }
.r-texte { display: grid; gap: clamp(14px, 2.2vh, 24px); justify-items: start; }
.r-texte > * { margin: 0; }
.r-texte .sur { color: var(--copper); }
.r-texte > p:not(.sur) { max-width: 52ch; font-size: clamp(16px, 1.22vw, 21px); line-height: 1.55; color: #3a4250; }
.courriel { padding: clamp(22px, 2.4vw, 40px); border-radius: 16px; background: #fffdf7; box-shadow: 0 30px 70px rgba(60, 44, 20, 0.18), 0 2px 0 rgba(60, 44, 20, 0.06); rotate: 1.2deg; font-family: DM, sans-serif; }
.c-tete { display: flex; align-items: center; gap: 12px; }
.c-tete i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--copper); color: #fff; font: 600 20px/1 Bricolage, DM, sans-serif; font-style: normal; }
.c-tete b { display: block; font-size: 16px; } .c-tete small { color: #6a7280; font-size: 13.5px; }
.c-objet { margin: 16px 0 6px; padding-bottom: 14px; border-bottom: 1px solid #e6dfce; font: 600 clamp(20px, 1.7vw, 28px)/1.15 Bricolage, DM, sans-serif; letter-spacing: -0.02em; }
.courriel ul { display: grid; margin: 0; padding: 0; list-style: none; }
.courriel li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid #eee7d6; font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.45; }
.courriel li:last-child { border: 0; padding-bottom: 0; }
.courriel li b { font: 700 12px/1.6 DM, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #b3541e; }
.courriel li b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; }
.courriel li.fort b { color: #2f8a5b; } .courriel li.piste b { color: #1a3fa8; }
.r-etapes { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-top: clamp(30px, 6vh, 64px); border-top: 1px solid #d9d0bb; }
.r-etapes h2 { margin: 0; font-size: clamp(30px, 3vw, 54px); }
.r-etapes ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 44px); margin: 0; padding: 0; list-style: none; }
.r-etapes li { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 2px solid var(--copper); }
.r-etapes li i { font: italic 400 clamp(22px, 1.9vw, 32px)/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--copper); }
.r-etapes li b { font: 600 clamp(18px, 1.5vw, 26px)/1.15 Bricolage, DM, sans-serif; letter-spacing: -0.02em; }
.r-etapes li p { margin: 0; font-size: clamp(15px, 1.08vw, 18px); line-height: 1.5; color: #3a4250; }

@media (max-width: 1180px) { .axes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .estran .stage, .f-tete, .recu, .r-etapes { grid-template-columns: 1fr; }
  .reperes { grid-template-columns: 1fr 1fr; } .r-etapes ol { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .axes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .e-gauche > *, .e-droite, .vu { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
  .analyse.merci { animation: none; } .score .valeur { transition: none; stroke-dashoffset: 91.5; }
}

/* --- téléphone : le hero prend la hauteur qu'il lui faut, le courriel se pose droit, un point par ligne --- */
@media (max-width: 760px) {
  /* la feuille du bureau fixe height: 100vh sur .stage : ici le bloc prend la hauteur de son contenu, sinon le formulaire est coupé */
  .estran .stage { height: auto; min-height: 0; padding-top: 104px; padding-bottom: 36px; gap: 26px; overflow: clip; }
  .estran h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .e-chapeau { font-size: 15.5px; }
  .reperes { gap: 14px 18px; }
  .reperes dt { font-size: 30px; }
  .reperes dd { font-size: 13.5px; }
  .courriel { rotate: 0deg; padding: 20px 18px; }
  .courriel li { grid-template-columns: 1fr; gap: 6px; }
  .courriel li b { line-height: 1.2; }
}
