/* =====================================================================================================
   Fondation AZOU 2 CŒURS — page d'attente (www.azou2coeurs.com), en attendant le déploiement du site.
   Aucun style en ligne : compatible avec la politique de sécurité du contenu déclarée dans index.html.
   ===================================================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-800.woff2") format("woff2"); }

:root {
  --bordeaux: #790032; --bordeaux-nuit: #42001D; --prune: #5A0636; --prune-2: #720044; --magenta: #A50065; --rose: #F27BC0;
  --or: #F5B82E; --or-clair: #FFE69C; --or-fonce: #C98A00;
  --fond: #FFFDFB; --texte: #2B2430; --doux: #5B5560; --trait: #EFE4E8;
  --titre: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 1rem/1.6 var(--corps); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

/* Lien d'évitement (clavier, lecteurs d'écran) */
.evitement { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--or); color: var(--bordeaux-nuit); font-weight: 800; text-decoration: none; transition: top .2s; }
.evitement:focus { top: 12px; }

/* ---------- Héros (rendu validé) ---------- */
.heros { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bordeaux); }
.heros__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(54, 0, 24, .9), rgba(54, 0, 24, .15) 56%, rgba(35, 0, 15, .4)); }
.heros__contenu { position: relative; z-index: 1; max-width: 1120px; padding: 0 clamp(20px, 7vw, 95px) 7vh; color: #fff; }
.sur-titre { margin: 0; color: var(--or-clair); font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.heros h1 { margin: 14px 0; font-size: clamp(2.5rem, 6.5vw, 6rem); line-height: .98; letter-spacing: -.04em; }
.heros h1 span { color: var(--or-clair); }
.heros__contenu > p:last-child { max-width: 680px; margin: 0; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.55; }

/* ---------- 04 · Bientôt en ligne ---------- */
.bientot { padding: clamp(70px, 9vw, 120px) 20px; }
.bientot:focus { outline: none; }
.bientot__cadre { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "affiche titre" "affiche texte"; grid-template-rows: auto auto;
  column-gap: 44px; align-items: center; align-content: center; width: min(1180px, 100%); margin-inline: auto; }
.bientot__titre { grid-area: titre; align-self: end; }
.bientot__affiche { grid-area: affiche; }
.bientot__texte { grid-area: texte; align-self: start; }
.bientot__affiche { position: relative; margin: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 40px 70px -40px rgba(90, 6, 54, .8);
  transform: perspective(1200px) rotateY(6deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2, .9, .3, 1); }
.bientot__affiche:hover { transform: none; }
.bientot__affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .25), transparent 35%); pointer-events: none; }
.bientot__affiche img { width: 100%; }

.bientot h2 { margin: 0 0 12px; color: var(--prune-2); font: 800 clamp(1.8rem, 3.6vw, 2.7rem)/1.12 var(--titre); text-wrap: balance; }
.bientot h2 span { background: linear-gradient(90deg, var(--magenta), var(--or-fonce)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bientot__intro { margin: 0 0 26px; color: var(--doux); font-size: 1.1rem; }
.bientot__intro strong { color: var(--texte); }
.plateformes { white-space: nowrap; }
.plateformes strong { color: var(--magenta) !important; letter-spacing: .03em; }

.progres { margin-bottom: 24px; }
.progres__legende { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: var(--doux); font: 700 .86rem var(--titre); }
.progres__valeur { color: var(--magenta); font-variant-numeric: tabular-nums; }
.progres__barre { position: relative; height: 12px; overflow: hidden; border-radius: 999px; background: var(--trait); }
.progres__jauge { position: absolute; inset: 0 auto 0 0; width: 70%; border-radius: inherit; background: linear-gradient(90deg, var(--magenta), var(--or)); }
.progres__jauge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: brille 1.8s linear infinite; }
@keyframes brille { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Avec JavaScript, la jauge part de zéro quand elle arrive à l'écran */
.js .progres__jauge { width: 0; transition: width 2.2s cubic-bezier(.2, .9, .3, 1); }

.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.module { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--trait); transition: transform .25s, box-shadow .25s; }
.module:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1.5px var(--rose); }
.module__ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(140deg, var(--magenta), var(--prune)); }
.module__ic svg { width: 20px; height: 20px; }
.module__ic g { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.module strong { display: block; color: var(--texte); font: 800 .92rem var(--titre); }
.module small { display: block; color: var(--doux); font-size: .85rem; line-height: 1.3; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--magenta), var(--prune)); box-shadow: 0 16px 28px -14px var(--magenta); font: 800 .98rem var(--titre); transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.bouton:hover { transform: translateY(-3px); }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton g { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Apparition au défilement : seulement quand JavaScript est là (sinon tout reste visible) */
.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .3, 1); }
.js .revele.est-visible { opacity: 1; transform: none; }
.d1 { transition-delay: 90ms !important; } .d2 { transition-delay: 180ms !important; } .d3 { transition-delay: 270ms !important; }
.d4 { transition-delay: 360ms !important; } .d5 { transition-delay: 450ms !important; }

/* ---------- Pied ---------- */
.pied { position: relative; overflow: hidden; color: #F3E3EA; text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(245, 184, 46, .16), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(242, 123, 192, .12), transparent 70%), linear-gradient(180deg, #4A0029, #2A0016 70%, #1F0010); }
.pied__arc { height: 5px; background: linear-gradient(90deg, transparent, var(--or), #FFE9A8, var(--or), transparent); }
.pied__cadre { display: grid; justify-items: center; gap: 22px; width: min(1180px, 100%); margin-inline: auto; padding: 54px 20px 26px; }
.pied__marque { display: flex; align-items: center; gap: 14px; }
.pied__marque img { width: auto; height: 64px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.pied__marque p { display: grid; margin: 0; text-align: left; line-height: 1; }
.pied__fondation { color: var(--or-clair); font: 700 .72rem var(--titre); letter-spacing: .3em; text-transform: uppercase; }
.pied__nom { color: #fff; font: 800 1.7rem var(--titre); letter-spacing: .01em; }
.pied__nom span { color: var(--or); }
.pied__devise { margin: 0; color: #FFE9F3; font: 700 italic clamp(1.05rem, 2vw, 1.3rem) var(--titre); }
.pied__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.pied__contacts a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 12px; border-radius: 999px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 230, 156, .3); font: 700 .9rem var(--titre); transition: background .25s, box-shadow .25s, transform .25s; }
.pied__contacts a:hover { color: #3A0020; background: var(--or); box-shadow: inset 0 0 0 1px var(--or); transform: translateY(-2px); }
.pied__contacts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: 100%; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #C9B3BE; }
.pied__bas p { margin: 0; }
.pied__credit strong { white-space: nowrap; color: var(--or-clair); font-family: var(--titre); letter-spacing: .02em; }
.pied__groupe { font-weight: 800; background: linear-gradient(90deg, #FFE69C, #F5B82E 35%, #F27BC0 70%, #FFB8DE); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.pied__coeur { display: inline-block; color: var(--or); animation: battre 1.6s ease-in-out infinite; }
@keyframes battre { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 28% { transform: scale(1.1); } }
@media (max-width: 640px) { .pied__bas { justify-content: center; text-align: center; } .pied__nom { font-size: 1.45rem; } }

/* ---------- Écrans ---------- */
@media (max-width: 900px) {
  .bientot__cadre { grid-template-columns: minmax(0, 1fr); grid-template-areas: "titre" "affiche" "texte"; row-gap: 22px; }
  .bientot__affiche { transform: none; }
  .bientot__titre { margin: 0; }
  /* Le titre tient sur une ligne, le plus grand possible */
  .bientot h2.bientot__titre { font-size: min(calc((100vw - 44px) / 13.7), 2.4rem); white-space: nowrap; letter-spacing: -.01em; }
}
/* Téléphone et tablette en portrait : l'affiche du haut s'affiche en entier (logo compris), le texte passe dessous */
@media (max-width: 900px), (orientation: portrait) {
  .heros { display: block; min-height: 0; background: linear-gradient(180deg, #5A0028, #350019); }
  .heros__image { position: static; width: 100%; height: auto; object-fit: contain; }
  .heros::after { display: none; }
  .heros__contenu { padding: 26px 20px 38px; }
  .heros h1 { font-size: clamp(2.1rem, 9.5vw, 3.4rem); }
}
@media (max-width: 640px) {
  /* Le titre tient sur une ligne */
  /* Le sur-titre du haut tient sur une ligne : la taille suit la largeur de l'écran */
  .sur-titre { font-size: min(calc((100vw - 44px) / 28.8), .8rem); letter-spacing: .08em; white-space: nowrap; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .bouton { width: 100%; text-align: center; }
}
@media (max-width: 540px) {
  .bientot { padding: 55px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revele { opacity: 1; transform: none; }
}
@media print {
  .heros { min-height: 0; }
  .heros__image, .heros::after { display: none; }
  .heros__contenu { color: var(--texte); padding: 0; }
  .bientot__affiche { transform: none; box-shadow: none; }
}
