/* riftveil.ai : page d'attente (livrable 4, point 1 ; mise en page revue le 13/11 à la demande de l'auteur). Feuille
   autonome, même identité que rv.css (couleurs, polices, logo) : EB Garamond pour les titres et les affirmations, IBM Plex
   Sans pour le texte et le formulaire. Le premier écran ne remplit pas toute la hauteur : le haut de la section suivante
   reste visible, avec un sommaire dans l'en-tête et un lien « Découvrir » à côté du bouton, pour que la suite se devine.
   Un seul geste marqué : le logo de Riftveil (le voile et la faille) agrandi dans l'ouverture, tracé une fois. */

:root {
  --paper: #F3F2EE; --white: #FFFFFF; --ink: #262626; --text: #4A4A4A; --muted: #6B6B6B;
  --slate: #33506E; --navy: #1F3246; --navy2: #283F57; --amber: #E9A83A;
  --rule: #D9D6CF; --field: #8C8A84; --onband: #F4EFE4; --onband2: #C2CAD4; --onrule: rgba(244,239,228,.24);
  --shadow: 0 24px 48px -24px rgba(10,20,32,.55), 0 2px 6px rgba(10,20,32,.12);
  --gutter: clamp(16px, 5vw, 72px); --max: 1160px;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; --serif: "EB Garamond", Garamond, "Times New Roman", serif; --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, dl, dd, form, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; overflow-wrap: normal; hyphens: manual; }
a { color: var(--slate); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--amber); color: var(--navy); padding: 10px 14px; font-weight: 500; text-decoration: none; }
.skip:focus { left: 8px; }
.at-large { max-width: var(--max); margin-inline: auto; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > section { flex: none; scroll-margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* En-tête : sur le bleu profond de l'ouverture ; le sommaire annonce les sections de la page */
.at-tete { background: var(--navy); padding-inline: var(--gutter); }
.at-tete .at-large { display: flex; align-items: center; gap: 16px 28px; padding-block: 20px; border-bottom: 1px solid var(--onrule); }
.at-marque { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; margin-right: auto; }
.at-marque:hover { color: #FFFFFF; }
.at-marque svg { width: 26px; height: 26px; flex: none; }
.at-marque span { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1; }
.at-sommaire { display: flex; gap: 26px; }
.at-sommaire a { color: var(--onband2); font-size: 15px; text-decoration: none; border-bottom: 1px solid transparent; padding-block: 4px; white-space: nowrap; }
.at-sommaire a:hover { color: #FFFFFF; border-bottom-color: var(--amber); }
.at-outils { display: flex; align-items: center; gap: 18px; }
.at-lien-demande { color: var(--onband); font-size: 15px; text-decoration: none; white-space: nowrap; border: 1px solid var(--amber); padding: 6px 14px; }
.at-lien-demande:hover { color: var(--navy); background: var(--amber); }
.lang { color: var(--onband2); border: 1px solid var(--onrule); padding: 5px 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; letter-spacing: .04em; text-decoration: none; }
.lang:hover { color: #FFFFFF; border-color: var(--onband); }
.at-tete :focus-visible, .at-ouverture :focus-visible, .at-demande .at-programme :focus-visible { outline-color: var(--amber); }

/* Ouverture : ce qu'est Riftveil, pour qui, ce qu'on y gagne ; moins haute que l'écran */
.at-ouverture { background: var(--navy); color: var(--onband); padding-inline: var(--gutter); padding-block: clamp(32px, 4.6vw, 64px) clamp(40px, 5vw, 68px); border-bottom: 6px solid var(--amber); }
.at-ouverture-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.at-annonce { color: var(--amber); font-size: 15px; font-weight: 500; letter-spacing: .01em; margin-bottom: 20px; }
.at-ouverture h1 { color: #FFFFFF; font-size: clamp(33px, 4.1vw, 56px); line-height: 1.07; letter-spacing: -.01em; max-width: 15.5em; }
.at-sous { font-family: var(--serif); font-size: clamp(19px, 1.65vw, 22px); line-height: 1.45; color: var(--onband); max-width: 34em; margin-top: 22px; }
.at-cles { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 8px; max-width: 42em; }
.at-cles li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--onband); }
.at-cles li::before { content: ""; position: absolute; left: 2px; top: .74em; width: 15px; height: 2px; background: var(--amber); transform: rotate(-49deg); }
.at-action { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.at-bouton { display: inline-block; background: var(--amber); color: var(--navy); border: 1px solid var(--amber); padding: 16px 28px; font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.at-bouton:hover, .at-bouton:focus-visible { background: #FFFFFF; border-color: #FFFFFF; color: var(--navy); }
.at-decouvrir { display: inline-flex; align-items: center; gap: 10px; color: var(--onband); font-size: 16px; text-decoration: none; padding-block: 6px; border-bottom: 1px solid var(--onrule); }
.at-decouvrir:hover { color: #FFFFFF; border-bottom-color: var(--amber); }
.at-decouvrir svg { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.at-faille { width: 100%; max-width: 380px; justify-self: end; overflow: visible; }
.at-faille .voile { fill: var(--navy2); stroke: var(--onband); stroke-opacity: .55; stroke-width: 1.4; }
.at-faille .trait { fill: none; stroke: var(--amber); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .at-faille .trait { animation: at-trace 1.5s cubic-bezier(.65, 0, .35, 1) .3s both; }
  .at-decouvrir svg { animation: at-signe 1.2s ease-in-out 2s 2; }
}
@keyframes at-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes at-signe { 50% { transform: translateY(4px); } }

/* Bandes : le titre à gauche, le propos à droite */
.at-bande { padding-inline: var(--gutter); padding-block: clamp(48px, 7vw, 96px); background: var(--paper); }
.at-bande.at-blanc { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.at-bande.at-qui { padding-top: clamp(36px, 4.4vw, 60px); }
.at-dossier { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 88px); align-items: start; }
.at-bande h2 { color: var(--navy); font-size: clamp(29px, 3.2vw, 40px); line-height: 1.13; max-width: 13em; }
.at-bande h2::before, .at-programme h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--amber); margin-bottom: 20px; }
.at-chapeau { font-size: 19px; line-height: 1.6; color: var(--text); max-width: 34em; }
.at-dossier > .at-chapeau { padding-top: 24px; }
.at-points { list-style: none; padding: 0; margin-top: 32px; border-bottom: 1px solid var(--rule); max-width: 36em; }
.at-points li { position: relative; border-top: 1px solid var(--rule); padding: 18px 0 18px 46px; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--navy); }
/* repère : le trait du logo, en petit */
.at-points li::before { content: ""; position: absolute; left: 4px; top: 34px; width: 22px; height: 2px; background: var(--slate); transform: rotate(-49deg); }

/* Pour qui : les métiers, sur une grille de six */
.at-metiers { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.at-metiers li { padding: 22px 24px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--white); }
.at-metiers strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; color: var(--navy); }
.at-metiers span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.at-et { margin-top: 20px; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--navy); }

/* Fonctionnement : trois étapes, et un exemple de rapport */
.at-fonctionnement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 48px clamp(32px, 6vw, 88px); align-items: start; }
.at-etapes { list-style: none; counter-reset: etape; padding: 0; margin-top: 34px; border-bottom: 1px solid var(--rule); }
.at-etapes li { counter-increment: etape; position: relative; padding: 22px 0 22px 62px; border-top: 1px solid var(--rule); }
.at-etapes li::before { content: counter(etape); position: absolute; left: 2px; top: 16px; font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--slate); }
.at-etapes h3 { font-size: 24px; line-height: 1.25; color: var(--navy); }
.at-etapes p { margin-top: 6px; }
.at-note { margin-top: 20px; font-size: 15.5px; color: var(--muted); }
.at-specimen { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: clamp(22px, 3vw, 32px); box-shadow: 0 22px 44px -30px rgba(10,20,32,.5); }
.at-specimen figcaption, .at-r-enjeu, .at-specimen dt { font-size: 12.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.at-specimen figcaption { color: var(--muted); }
.at-r-titre { margin-top: 12px; font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--navy); }
.at-r-projet { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.at-r-enjeu { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); }
.at-r-enjeu b { background: var(--navy); color: #FFFFFF; padding: 3px 10px; font-weight: 500; letter-spacing: .09em; }
.at-specimen dl { margin-top: 18px; border-top: 1px solid var(--rule); }
.at-specimen dt { margin-top: 16px; color: var(--slate); }
.at-specimen dd { margin-top: 4px; font-family: var(--serif); font-size: 18.5px; line-height: 1.4; color: var(--ink); }
.at-specimen dd span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.at-r-fin { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 18.5px; font-style: italic; color: var(--navy); }

/* Demande : l'invitation, puis le formulaire */
.at-demande { background: var(--navy); color: var(--onband); padding-inline: var(--gutter); padding-block: clamp(56px, 8vw, 104px); }
.at-demande-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(32px, 6vw, 88px); align-items: start; }
.at-programme h2 { color: #FFFFFF; font-size: clamp(29px, 3.2vw, 40px); line-height: 1.13; }
.at-programme > p { margin-top: 18px; max-width: 32em; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--onband); }
.at-offre { margin-top: 30px; max-width: 32em; border-bottom: 1px solid var(--onrule); }
.at-offre dt { padding-top: 20px; border-top: 1px solid var(--onrule); color: var(--amber); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.at-offre dd { padding: 6px 0 20px; color: var(--onband); }

/* Le formulaire : une feuille posée sur le bleu */
.at-feuille { background: var(--white); color: var(--text); border-top: 4px solid var(--amber); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.at-feuille h2 { color: var(--navy); font-size: clamp(27px, 2.6vw, 32px); line-height: 1.15; margin-bottom: 26px; }
.at-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.at-champ { margin-bottom: 20px; }
.at-champ label { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.at-champ label span { font-weight: 400; color: var(--muted); }
.at-champ input { display: block; width: 100%; min-height: 50px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: 0; padding: 11px 13px; }
.at-champ input:focus-visible { outline: 2px solid var(--slate); outline-offset: 1px; border-color: var(--slate); }
.at-aide { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-top: 7px; }
.at-accord { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--rule); }
.at-accord input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--slate); }
.at-accord label { font-size: 15px; line-height: 1.55; color: var(--text); }
.at-confidentialite { font-size: 15px; margin: 8px 0 0 34px; }
.at-envoyer { display: block; width: 100%; margin-top: 26px; background: var(--slate); color: #FFFFFF; border: 1px solid var(--slate); border-radius: 0; padding: 16px 24px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
.at-envoyer:hover, .at-envoyer:focus-visible { background: var(--navy); border-color: var(--navy); }

/* Après l'envoi : confirmation ou erreur, sur le bleu de l'ouverture */
main > .at-etat { flex: 1 0 auto; padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 120px); }
.at-etat .at-ouverture-grille { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; }
.at-etat h1 { font-size: clamp(36px, 4.8vw, 60px); }
.at-etat .at-sous { font-family: var(--sans); font-size: 18px; line-height: 1.6; max-width: 34em; }

/* Pied */
.at-pied { padding-inline: var(--gutter); padding-block: 28px 36px; background: var(--paper); }
.at-pied p { font-size: 14.5px; color: var(--muted); }
.at-pied a { color: var(--muted); }
.at-pied a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .at-sommaire { display: none; }
}
@media (max-width: 900px) {
  .at-ouverture-grille, .at-dossier, .at-demande-grille, .at-fonctionnement, .at-etat .at-ouverture-grille { grid-template-columns: minmax(0, 1fr); }
  .at-faille { display: none; }
  .at-bande h2 { max-width: 22em; }
  .at-dossier > .at-chapeau { padding-top: 0; }
  .at-metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .at-lien-demande { display: none; }
  .at-ouverture { padding-block: 28px 34px; }
  .at-annonce { margin-bottom: 14px; }
  .at-sous { margin-top: 16px; font-size: 18px; }
  .at-cles { margin-top: 18px; }
  .at-cles li { font-size: 15.5px; }
  .at-action { margin-top: 22px; gap: 6px; }
  .at-bouton { display: block; width: 100%; text-align: center; }
  .at-decouvrir { margin-inline: auto; border-bottom-color: transparent; }
  .at-bande.at-qui { padding-top: 30px; }
  .at-deux, .at-metiers { grid-template-columns: minmax(0, 1fr); }
  .at-metiers li { padding: 16px 18px 18px; }
  .at-metiers strong { font-size: 21px; }
  .at-points li { font-size: 19px; padding-left: 40px; }
  .at-points li::before { top: 31px; width: 18px; }
  .at-etapes li { padding-left: 48px; }
  .at-etapes li::before { font-size: 38px; }
  .at-etapes h3 { font-size: 22px; }
  .at-chapeau { font-size: 18px; }
}
@media (max-width: 380px) {
  .at-ouverture { padding-top: 22px; }
  .at-ouverture h1 { font-size: 30px; }
  .at-sous { font-size: 17px; line-height: 1.42; }
  .at-cles li { font-size: 15px; line-height: 1.45; }
  .at-action { margin-top: 18px; }
}
@media print {
  .at-tete, .at-faille, .at-feuille, .at-decouvrir, .skip { display: none; }
  .at-ouverture, .at-demande { background: none; color: var(--ink); border: 0; }
  .at-ouverture h1, .at-programme h2, .at-sous, .at-cles li, .at-programme p, .at-offre dd { color: var(--ink); }
}
.at-ouverture .at-sous a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(244,239,228,.5); }
.at-ouverture .at-sous a:hover { text-decoration-color: var(--amber); }
