/* 1. Polices locales et tokens. Toutes les dimensions typographiques sont en rem. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/Poppins-Regular.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/Poppins-Medium.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/Poppins-SemiBold.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/Poppins-Bold.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/Poppins-Italic.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --blue: #81deff;
  --duck: #14373b;
  --cream: #fef9f3;
  --ink: #294c50;
  --muted: #46676b;
  --pale-blue: #dcf2f8;
  --pale-green: #eaf1ee;
  --border: #b2cbcd;
  --on-dark: #d5e7e7;
  --gutter: clamp(1rem, 5.128vw, 1.5rem);
  --wide: 67.5rem;
  --reading: 40rem;
  --section-space: 3.5rem;
  --radius: 2rem;
}

/* 2. Base et accessibilité. Pas de masquage global du débordement horizontal. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.6875 Poppins, sans-serif; overflow-wrap: break-word; }
body, button, input { font-family: Poppins, sans-serif; }
h1, h2, p, figure, ul, dl, dd { margin: 0; }
h1, h2 { color: var(--duck); }
h1 { font-size: clamp(1.75rem, 8.205vw, 2rem); line-height: 1.25; font-weight: 700; }
h2 { font-size: 1.875rem; line-height: 1.2667; font-weight: 600; }
strong { font-weight: 600; }
em { font-style: italic; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
mark { color: inherit; background: var(--blue); padding-inline: .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:focus-visible { outline: 3px solid var(--duck); outline-offset: 5px; }
.ai :focus-visible, .contact :focus-visible { outline-color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; background: var(--duck); color: var(--cream); padding: .75rem 1rem; border-radius: .4rem; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.container, .reading { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.container { max-width: var(--wide); }
.reading { max-width: var(--reading); }
.container .reading { width: 100%; }
.flow > * + * { margin-top: 1.5rem; }
.section { padding-block: var(--section-space); }
.desktop-break { display: none; }

/* 3. Hero. Le minimum grandit avec le viewport et avec le contenu (zoom, paysage). */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vh, 4rem);
  gap: clamp(2rem, 5dvh, 4rem);
  padding: clamp(2.5rem, 7.6vh, 5rem) var(--gutter) max(2.5rem, env(safe-area-inset-bottom));
  padding-top: clamp(2.5rem, 7.6dvh, 5rem);
  background: linear-gradient(180deg, #ddf3fb, var(--cream) 65%);
  text-align: center;
}
/* Mobile : jusqu'à 32 px d'air supplémentaire ; aucun ajout sous 640 px de haut. */
@media (max-width: 699px) {
  .hero {
    padding-top: calc(clamp(2.5rem, 7.6vh, 5rem) + clamp(0px, 20vh - 8rem, 2rem));
    padding-top: calc(clamp(2.5rem, 7.6dvh, 5rem) + clamp(0px, 20dvh - 8rem, 2rem));
  }
}
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 680px; max-height: 100%; background: url('../assets/icons/grille-mobile.svg') center top / auto 680px repeat-x; pointer-events: none; }
.hero__content { width: 100%; max-width: 70rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero h1 { max-width: 22rem; }
.hero h1 mark { display: inline-block; max-width: 100%; white-space: normal; }
.hero h1 .desktop-break { display: initial; }
.hero__subtitle { color: var(--muted); font-size: 1.0625rem; line-height: 1.6471; max-width: 40rem; }
.benefits { list-style: none; padding: 0; width: min(100%, 19.875rem); display: flex; flex-direction: column; gap: .625rem; text-align: left; }
.benefits li { display: flex; align-items: center; gap: .625rem; min-width: 0; min-height: 3.125rem; padding: .75rem .875rem; border: 1px solid var(--border); border-radius: .625rem; background: var(--cream); font-size: .875rem; line-height: 1.5714; }
.benefits img { flex: 0 0 18px; }
.discover { flex: 0 0 auto; display: flex; align-items: center; flex-direction: column; gap: .75rem; padding: .25rem .75rem; border-radius: .5rem; font-size: .9375rem; line-height: 1.5; font-weight: 500; text-decoration: none; }
.discover:hover span { text-decoration: underline; text-underline-offset: .25em; }
.discover picture { width: 64px; height: 64px; }

/* 4. Introduction, révélation et réalisations. */
#introduction { scroll-margin-top: 1.5rem; }
#introduction:focus { outline: 0; }
.introduction__transition { margin-top: 2rem; }
.introduction__transition > * + * { margin-top: 1.25rem; }
.projection { padding: .75rem; border: 3px solid var(--blue); border-radius: .5rem; text-align: center; font-size: 1.125rem; line-height: 1.5556; }
.projection mark { background: transparent; }
.reveal { background: var(--pale-blue); border-radius: var(--radius); }
.reveal__layout { max-width: var(--reading); display: grid; gap: 1.5rem; }
.reveal__copy > p { margin-top: 1.5rem; }
.mark-dark { display: inline-block; background: var(--duck); color: var(--cream); padding-inline: .3em; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.5rem; }
.work__grid { display: grid; gap: 1.5rem; margin-top: 2rem; max-width: var(--reading); }
.work__image { width: 100%; aspect-ratio: 520 / 350; object-fit: cover; border-radius: 1rem; }
.work__image--website { filter: saturate(.94); }
figcaption { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; line-height: 1.5714; font-weight: 500; }

/* 5. Le chapitre IA garde ses trois exemples et son titre dominant. */
.ai { padding-block: 4rem; background: var(--duck); color: var(--on-dark); border-radius: var(--radius) var(--radius) 0 0; }
.ai h2 { color: var(--blue); font-size: 2rem; line-height: 1.25; }
.ai__intro > * + * { margin-top: 1.25rem; }
.ai__example { max-width: var(--reading); display: grid; gap: 1.5rem; align-items: center; margin-top: 2.5rem; }
.ai__image { width: 100%; border-radius: .5rem; }
.identity-crop { position: relative; aspect-ratio: 500 / 494; overflow: hidden; border: 1px solid #40666a; border-radius: .5rem; }
/* Transformation de l’image originale, conservée depuis V8. */
.identity-crop img { position: absolute; width: 100%; height: 134.95%; max-width: none; left: -.1%; top: -.05%; }
.aside { font-size: 1rem; line-height: 1.6875; }
.ai__compositions { max-width: var(--reading); margin-top: 2.5rem; }
.compositions { margin-top: 1.5rem; aspect-ratio: 1080 / 416; object-fit: contain; }

/* 6. Contribution et témoignage. */
.contribution-wrap { background: var(--duck); }
.contribution { padding-bottom: 2.5rem; border-radius: 3.5rem 3.5rem 0 0; background: var(--cream); }
.testimonial { padding-top: 1rem; padding-bottom: 2.5rem; }
.testimonial__card { max-width: var(--reading); color: var(--duck); }
.testimonial__card h2 { font-size: 1.75rem; line-height: 1.2857; }
/* Message entrant : dimensions compactes identiques sur mobile et ordinateur. */
.voice-message { display: flex; align-items: flex-start; gap: .75rem; width: 100%; max-width: 35rem; margin-top: 1.5rem; }
.voice-message__avatar { flex: 0 0 2.5rem; margin-top: .25rem; }
.voice-message__avatar img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 50%; }
.voice-message__bubble { position: relative; flex: 1; min-width: 0; padding: .875rem 1rem .375rem; border-radius: 0 1rem 1rem; background: var(--pale-blue); }
.voice-message__bubble::before { content: ''; position: absolute; top: 0; left: -.5rem; width: .5rem; height: .75rem; background: var(--pale-blue); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.testimonial__name { font-weight: 600; font-size: 1rem; line-height: 1.5; }
.testimonial__role { margin-top: .125rem; color: var(--muted); font-size: .875rem; line-height: 1.4286; }
.audio-player { position: relative; margin-top: .5rem; }
.audio-player audio { display: block; width: 100%; }
.audio-player__controls { display: flex; align-items: flex-start; gap: .5rem; }
.audio-player__toggle { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.audio-player__toggle:hover { background: rgb(20 55 59 / 8%); }
.play-icon { width: 0; height: 0; margin-left: 3px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid var(--duck); }
.pause-icon { display: flex; gap: 5px; }
.pause-icon::before, .pause-icon::after { content: ''; width: 5px; height: 20px; border-radius: 1px; background: var(--duck); }
.audio-player__timeline { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.audio-player__track { --progress: 0%; position: relative; height: 44px; }
.audio-player__track::before, .audio-player__track::after { content: ''; position: absolute; inset: 6px 7px; pointer-events: none; background: url('../assets/icons/audio-waveform.svg') center / 100% 100% no-repeat; }
.audio-player__track::before { opacity: .4; }
.audio-player__track::after { clip-path: inset(0 calc(100% - var(--progress)) 0 0); }
.audio-player__seek { position: relative; z-index: 1; display: block; width: 100%; min-width: 0; height: 44px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; accent-color: var(--duck); cursor: pointer; }
.audio-player__seek::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.audio-player__seek::-moz-range-track { height: 4px; background: transparent; }
.audio-player__seek::-moz-range-progress { height: 4px; background: transparent; }
.audio-player__seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 2px solid var(--pale-blue); border-radius: 50%; background: var(--duck); }
.audio-player__seek::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--pale-blue); border-radius: 50%; background: var(--duck); }
.audio-player__seek:disabled { opacity: .65; }
.audio-player__time { font-size: .875rem; line-height: 1.4286; text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.audio-player__feedback { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; font-size: .875rem; }
.audio-player__feedback button { min-height: 44px; padding: .4rem .75rem; background: transparent; border: 1px solid var(--duck); border-radius: .4rem; }
.audio-player__feedback:not(.audio-player__feedback--error) { position: absolute; right: 0; bottom: 0; padding: 0; font-size: .875rem; line-height: 1.4286; background: var(--pale-blue); }
.audio-player[data-loading="true"] .audio-player__time { visibility: hidden; }
.transcript summary { display: flex; align-items: center; gap: .375rem; min-height: 44px; padding-block: .5rem; font-size: .875rem; line-height: 1.4286; list-style: none; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary img { flex: 0 0 16px; width: 16px; height: 16px; }
.transcript[open] summary img { transform: rotate(180deg); }
.transcript__open, .transcript[open] .transcript__closed { display: none; }
.transcript[open] .transcript__open { display: inline; }
.transcript__content { padding-block: .5rem .75rem; font-size: 1rem; line-height: 1.625; }
.transcript__content > * + * { margin-top: .75rem; }

/* 7. Lettre, budget et contact. */
.letter__body { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.letter__lead { font-size: 1.0625rem; line-height: 1.6471; }
.offer { display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 0; background: var(--pale-green); border-radius: var(--radius) var(--radius) 0 0; }
.offer__card { max-width: var(--reading); padding: 2rem 1rem; border-radius: 1.5rem; background: var(--cream); box-shadow: 0 16px 24px rgb(20 55 59 / 9%); display: flex; flex-direction: column; gap: 1.5rem; }
.offer__card h2 { font-size: 1.75rem; line-height: 1.2857; text-align: center; }
.offer__conditions { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.offer__hours { padding: .5rem .75rem; background: var(--blue); border-radius: .375rem; font-size: 1.125rem; font-weight: 600; }
.offer__conditions > p:last-child { font-size: .9375rem; line-height: 1.6; }
hr { width: 100%; height: 1px; border: 0; background: var(--border); margin: 0; }
.offer__price { color: var(--duck); font-size: 2rem; line-height: 1.25; font-weight: 600; text-align: center; }
.budget__row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: .75rem; }
.budget__row + .budget__row { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.budget dt { font-size: .9375rem; line-height: 1.4667; }
.budget dd { font-weight: 600; text-align: right; white-space: nowrap; }
.budget .budget__note { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; line-height: 1.5714; font-weight: 500; white-space: normal; text-align: left; }
.offer__terms { display: flex; flex-direction: column; gap: 1.5rem; }
.offer__terms .flow > * + * { margin-top: 1rem; }
.contact { width: 100%; border-radius: var(--radius) var(--radius) 0 0; background: var(--duck); color: var(--on-dark); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.contact h2 { color: var(--cream); font-size: 1.75rem; line-height: 1.2857; text-align: center; }
.contact__button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: calc(100% - 2 * var(--gutter)); max-width: 30rem; padding: 1.25rem; border-radius: .75rem; background: var(--blue); color: var(--duck); text-align: left; text-decoration: none; transition: background-color 150ms ease; }
a.contact__button:hover { background: #a6e7ff; }
.contact__button--static { cursor: default; }
.contact__copy { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.contact__label { font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.contact__hint { font-size: .875rem; line-height: 1.5; font-weight: 400; }
/* La flèche s'aligne sur l'ensemble des deux textes, y compris après retour à la ligne. */
.contact__arrow { flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; align-self: center; }

/* 8. Tablette : colonne de lecture plafonnée à 640 px. */
@media (min-width: 700px) {
  .hero h1 { max-width: 48rem; font-size: 2.5rem; }
  .hero__subtitle { max-width: 45rem; }
  .work__grid { max-width: var(--wide); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

/* 9. Ordinateur : grille 1080 px / texte 760 px, hauteurs toujours automatiques. */
@media (min-width: 1024px) {
  :root { --reading: 47.5rem; --section-space: 5.5rem; --radius: 3.5rem; --gutter: 2.5rem; }
  body { font-size: 1.25rem; line-height: 1.6; }
  h2 { font-size: 2.5rem; line-height: 1.25; }
  .desktop-break { display: initial; }
  .hero { padding-top: clamp(5rem, 30vh, 17.5rem); padding-top: clamp(5rem, 30dvh, 17.5rem); padding-bottom: 4rem; }
  .hero::before { background-image: url('../assets/icons/grille.svg'); }
  .hero__content { gap: 1.75rem; }
  .hero h1 { max-width: 70rem; font-size: clamp(2.75rem, 3.611vw, 3.25rem); line-height: 1.2308; }
  .hero__subtitle { max-width: 50rem; font-size: 1.25rem; line-height: 1.6; }
  .benefits { width: auto; max-width: 100%; flex-direction: row; gap: 1rem; }
  .benefits li { padding: .875rem 1.125rem; font-size: 1rem; line-height: 1.5; }
  .discover { font-size: 1rem; }
  .introduction { padding-top: 4.5rem; }
  .introduction__transition { margin-top: 3rem; }
  .projection { border: 0; padding: 0; font-size: 1.25rem; line-height: 1.7; }
  .projection mark { background: var(--blue); }
  .reveal__layout { max-width: var(--wide); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4.5rem; align-items: center; }
  .reveal h2 { font-size: 2.75rem; line-height: 1.2273; }
  .reveal__copy > p { margin-top: 2rem; }
  .work { padding-bottom: 6.5rem; }
  .work__grid { gap: 2.5rem; margin-top: 2.5rem; }
  figcaption { font-size: 1.125rem; line-height: 1.5556; }
  .ai { padding-top: 7rem; padding-bottom: 6.5rem; }
  .ai h2 { font-size: 3rem; line-height: 1.1667; text-align: center; }
  .ai__example { max-width: var(--wide); grid-template-columns: minmax(0, 516fr) minmax(0, 500fr); gap: 4rem; margin-top: 5.5rem; }
  .ai__example--reverse { grid-template-columns: minmax(0, 500fr) minmax(0, 516fr); }
  .ai__example--reverse > div:first-child { grid-column: 2; grid-row: 1; }
  .ai__example--reverse > div:last-child { grid-column: 1; grid-row: 1; }
  .aside { font-size: 1rem; line-height: 1.625; }
  .ai__compositions { max-width: var(--wide); margin-top: 5.5rem; }
  .contribution { padding-top: 6.5rem; padding-bottom: 5.5rem; }
  .contribution .flow > * + * { margin-top: 1.75rem; }
  .testimonial { padding-top: 3rem; padding-bottom: 5rem; }
  .testimonial__card h2 { font-size: 2rem; line-height: 1.25; }
  .letter { padding-block: 6.5rem; }
  .letter__body { margin-top: 2.5rem; }
  .letter__lead { font-size: 1.375rem; line-height: 1.6364; }
  .offer { padding-top: 7rem; gap: 3.5rem; }
  .offer__card { max-width: var(--wide); padding: 3.5rem 4rem; gap: 2rem; border-radius: 1.75rem; }
  .offer__card h2 { font-size: 2.5rem; line-height: 1.25; }
  .offer__hours { padding: .5rem 1.25rem; font-size: 1.5rem; line-height: 1.5; }
  .offer__conditions > p:last-child { font-size: 1.25rem; }
  .offer__price { font-size: 2.75rem; line-height: 1.2727; }
  .budget__row { gap: .75rem 1.5rem; }
  .budget dt { font-size: 1.25rem; line-height: 1.6; }
  .budget .budget__note { font-size: 1rem; line-height: 1.5; }
  .offer__terms { gap: 1.75rem; }
  .contact { padding-block: 5rem; }
  .contact h2 { font-size: 2.25rem; line-height: 1.2778; }
}

/* 10. Animations déclenchées à l'entrée, sans jamais cacher le contenu au repos. */
@keyframes reveal-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.is-revealing { animation: reveal-up 350ms ease-out both; }
.is-revealing:focus-within { animation: none; }
@media (min-width: 1024px) {
  [data-reveal="left"].is-revealing { animation-name: reveal-left; }
  [data-reveal="right"].is-revealing { animation-name: reveal-right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  mark, .offer__hours { border: 1px solid currentColor; }
  .audio-player__track::before, .audio-player__track::after { display: none; }
  .audio-player__seek { appearance: auto; }
  .play-icon { border-left-color: ButtonText; }
  .pause-icon::before, .pause-icon::after { background: ButtonText; }
}
@media print {
  html { scroll-behavior: auto; }
  .hero { min-height: auto; padding-block: 2rem; }
  .section { padding-block: 2rem; }
  .discover, .skip-link, .audio-player { display: none; }
  .is-revealing { animation: none; }
  body { font-size: 11pt; }
}
