/* INDEX V3 · CTA final et footer — refonte ciblée (LOT 9B).
   Chargée APRÈS maquette-v3.css : elle remplace les règles « CTA FINAL » et « Footer » de maquette-v3.css (mêmes sélecteurs,
   spécificité égale ou supérieure). La composition est conservée : grand titre centré, bouton unique, aube, footer en deux lignes.
   Lumière : l'aube est composée de deux couches sans flou CSS (dégradés radiaux, moins coûteux que l'ancien « filter: blur ») :
     1. .fin-lumiere::after — lueur de base, ancrée sur le bord bas du CTA ;
     2. .dawn — cœur de l'aube, plus doux qu'avant, qui monte légèrement avec le défilement (variable --dawn, maquette-v3.js) ;
   et elle se prolonge dans le footer par .site-footer::before : même rayon horizontal (--fin-rx) et mêmes teintes à la frontière,
   puis extinction jusqu'au bas de page. Plus de coupure nette à la frontière du footer. */
:root { --fin-rx: min(980px, 78vw); }

/* ======================= CTA FINAL ======================= */
.finale { min-height: 0; overflow: visible; padding-block: calc(var(--sec-top) + 40px) clamp(96px, 16vh, 170px); }
.finale .fin-lumiere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.finale .fin-lumiere::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(var(--fin-rx) 58% at 50% 100%, rgba(255, 143, 26, .13), rgba(242, 41, 111, .08) 38%, rgba(107, 43, 255, .045) 68%, transparent 100%); }
.finale .dawn {
  position: absolute; left: 50%; bottom: 0; z-index: 0; width: min(1500px, 140vw); height: 78%; border-radius: 50%; filter: none;
  transform: translate(-50%, calc((1 - var(--dawn, 1)) * 14%)); opacity: calc(.45 + var(--dawn, 1) * .55);
  background: radial-gradient(closest-side, rgba(255, 150, 80, .17), rgba(242, 41, 111, .11) 42%, rgba(107, 43, 255, .06) 70%, transparent 100%);
}
.finale .dawn::after { content: none; }
.finale-inner { gap: clamp(30px, 4.4vh, 44px); }
/* titre : « La prochaine création… » / « Et si c’était la vôtre ? » — dimensionné pour tenir sans être rogné (aucun masquage).
   Ordinateur : chaque phrase sur une ligne (6,2cqi : « LA PROCHAINE CRÉATION… » occupe ~95 % de la largeur utile). */
.finale .display-fin { font-size: clamp(34px, 6.2cqi, 112px); line-height: .94; max-width: 100%; }
.finale .display-fin .line { padding-inline: .04em; }
.finale .display-fin .line > span { white-space: normal; text-wrap: balance; }
.finale .display-fin .fin-l2 em { font-size: 1.12em; white-space: nowrap; }
.finale .display-fin .fin-g { white-space: nowrap; }  /* « Et si c’était » insécable : coupure seulement avant « la vôtre ? » */
.fin-actions { gap: 20px; margin-top: 4px; width: 100%; }
.btn-main { max-width: 100%; text-align: center; justify-content: center; text-wrap: balance;
  box-shadow: 0 0 0 1px rgba(238, 235, 229, .4), 0 18px 60px -14px rgba(242, 41, 111, .42); }
.btn-main:hover { box-shadow: 0 0 0 1px #fff, 0 22px 70px -14px rgba(255, 143, 26, .5); }
.btn-main:active { background: #e4e0d9; box-shadow: 0 0 0 1px rgba(238, 235, 229, .5), 0 10px 40px -16px rgba(242, 41, 111, .4); }
.btn-main:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
/* e-mail : voie secondaire discrète, désormais cliquable ; couleur relevée pour 4,5:1 minimum sur l'aube */
.fin-contact { display: block; margin: 0; user-select: text; }
.fin-mail { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: #d7d3dc; text-decoration: underline; text-decoration-color: rgba(215, 211, 220, .35); text-underline-offset: 5px; transition: color .3s, text-decoration-color .3s; }
.fin-mail:hover, .fin-mail:focus-visible { color: var(--paper); text-decoration-color: currentColor; }
.fin-mail:active { color: #fff; }
@media (pointer: coarse) { .fin-mail { min-height: 44px; } }
@media (max-width: 959px) {
  /* minimum 32 px (34 en 9B) : « LA PROCHAINE » garde 4 px de réserve de chaque côté à 320 px au lieu de 2 */
  .finale .display-fin { font-size: clamp(32px, 11.6cqi, 64px); }
}
@media (max-width: 560px) {
  .finale { padding-block: calc(var(--sec-top) + 20px) clamp(56px, 8vh, 80px); }
  .btn-main { padding: 20px 26px; gap: 12px; font-size: 13.5px; letter-spacing: .09em; }
}
@media (max-width: 389px) {
  /* petits téléphones : bouton sur une ligne jusqu'à 360 px ; en dessous, retour à la ligne équilibré (« Parlons de / votre projet ») */
  .btn-main { padding: 18px 22px; font-size: 13px; letter-spacing: .07em; }
  .fin-mail { letter-spacing: .08em; }
}

/* ======================= FOOTER ======================= */
/* fond : transparent en haut (comme le CTA, pour la continuité de la lumière), assombri vers le bas ; plus de filet de séparation */
.site-footer { border-top: 0; background: linear-gradient(180deg, rgba(8, 7, 11, 0) 0%, rgba(8, 7, 11, .55) 45%, rgba(8, 7, 11, .94) 100%); isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--fin-rx) 100% at 50% 0%, rgba(255, 143, 26, .13), rgba(242, 41, 111, .08) 38%, rgba(107, 43, 255, .045) 68%, transparent 100%); }
.site-footer .wrap { position: relative; }
.f-top { padding-block: 40px 36px; }
.f-nav { gap: 0 8px; color: #a8a4b1; }
.f-nav a, .f-links a, .f-contact a, .site-footer .brand { display: inline-flex; align-items: center; min-height: 32px; }
.f-nav a { padding-inline: 10px; }
.f-nav a:first-child { margin-left: -10px; }
.f-contact { gap: 0; color: #a8a4b1; }
.f-contact a { justify-content: flex-end; }
.f-nav a:hover, .f-links a:hover, .f-contact a:hover { color: var(--paper); }
.f-nav a:active, .f-links a:active, .f-contact a:active { color: #fff; }
/* ligne basse : --dim (3,0:1) remplacé par une teinte claire (≥ 4,5:1) ; filet fin conservé entre les deux lignes */
.f-bottom { align-items: center; padding-block: 16px 24px; color: #9e9aa7; font-size: 12.5px; border-top: 1px solid rgba(238, 235, 229, .08); }
.f-links { gap: 0 6px; }
.f-links a { padding-inline: 8px; color: #a8a4b1; }
.f-links a:last-child { margin-right: -8px; }
.f-ext::after { content: "\2197"; margin-left: 4px; font-size: .9em; opacity: .7; }
.f-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (pointer: coarse) { .f-nav a, .f-links a, .f-contact a, .site-footer .brand { min-height: 44px; } .f-links a { min-width: 44px; } }
@media (max-width: 960px) {
  /* téléphone et tablette portrait : blocs empilés et aérés — logo, plan du site (3 colonnes, 2 sous 360 px), coordonnées, réseaux et légal, copyright */
  .f-top { gap: 22px; padding-block: 36px 18px; }
  .f-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; width: 100%; max-width: 560px; }
  .f-nav a, .f-nav a:first-child { margin-left: 0; padding-inline: 0; }
  .f-contact { display: flex; flex-wrap: wrap; gap: 0 26px; text-align: left; }
  .f-contact a { justify-content: flex-start; }
  .f-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 18px 32px; }
  .f-bottom > span:first-child { order: 2; padding-top: 10px; }
  .f-links { order: 1; gap: 0 18px; }
  .f-links a, .f-links a:last-child { padding-inline: 0; margin-right: 0; }
}
@media (max-width: 359px) { .f-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================= MOUVEMENT RÉDUIT ======================= */
@media (prefers-reduced-motion: reduce) {
  /* l'aube ne suit plus le défilement : composition fixe, dans son état final */
  .finale .dawn { transform: translate(-50%, 0) !important; opacity: 1 !important; }
  .fin-mail { transition: none; }
}
