/* FUTURSKILLS — feuille de style commune
   Couleurs imposées : bordeaux #7A1F3D (principale), beige #D9B88F (secondaire)
   Règle : le beige n'est JAMAIS utilisé pour du texte. */

:root {
  --bordeaux: #7A1F3D;
  --bordeaux-fonce: #5E1730;
  --beige: #D9B88F;
  --beige-clair: #F6EEE4;   /* beige #D9B88F éclairci, fonds uniquement */
  --encre: #241418;          /* texte principal */
  --gris: #5B4E52;           /* texte secondaire (contraste AA sur blanc et beige clair) */
  --blanc: #FFFFFF;
  --rayon: 10px;
  --largeur: 1140px;
  --titre: Georgia, "Times New Roman", serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--texte); color: var(--encre); background: var(--blanc); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--bordeaux); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 2px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.2; color: var(--encre); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p + p { margin-top: 12px; }
.surtitre { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--bordeaux); margin-bottom: 12px; }
.intro { color: var(--gris); max-width: 680px; }
.a-completer { background: #FFF3CD; color: #5c4400; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* Boutons */
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--rayon); font-weight: 700; text-decoration: none; border: 2px solid var(--bordeaux); transition: background .2s, color .2s; cursor: pointer; font-size: 1rem; font-family: var(--texte); }
.btn-principal { background: var(--bordeaux); color: var(--blanc); }
.btn-principal:hover { background: var(--bordeaux-fonce); border-color: var(--bordeaux-fonce); }
.btn-secondaire { background: transparent; color: var(--bordeaux); }
.btn-secondaire:hover { background: var(--bordeaux); color: var(--blanc); }
.btn-clair { background: var(--blanc); color: var(--bordeaux); border-color: var(--blanc); }
.btn-clair:hover { background: var(--beige-clair); }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); border-bottom: 1px solid #eadfd3; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--titre); font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; color: var(--bordeaux); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-marque { width: 34px; height: 34px; border-radius: 8px; background: var(--bordeaux); display: grid; place-items: center; color: var(--blanc); font-size: 1rem; }
.nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; color: var(--encre); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bordeaux); }
.nav .btn { color: var(--blanc); padding: 10px 18px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--bordeaux); margin: 5px auto; border-radius: 2px; }

/* Sections */
section { padding: 84px 0; }
.fond-beige { background: var(--beige-clair); }
.fond-bordeaux { background: var(--bordeaux); color: var(--blanc); }
.fond-bordeaux h2, .fond-bordeaux h3 { color: var(--blanc); }

/* Héros */
.heros { padding: 96px 0 88px; background: linear-gradient(135deg, var(--beige-clair) 0%, #FFFFFF 60%); position: relative; overflow: hidden; }
.heros::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid var(--beige); opacity: .35; }
.heros .conteneur { position: relative; z-index: 1; }
.heros p.intro { font-size: 1.15rem; margin: 22px 0 32px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.heros h1 em { font-style: normal; color: var(--bordeaux); }

/* Grilles et cartes */
.grille { display: grid; gap: 24px; margin-top: 40px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.carte { background: var(--blanc); border: 1px solid #eadfd3; border-radius: var(--rayon); padding: 30px; border-top: 4px solid var(--bordeaux); }
.carte p { color: var(--gris); }
.carte .lien { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.icone { width: 48px; height: 48px; border-radius: 50%; background: var(--beige); display: grid; place-items: center; margin-bottom: 18px; color: var(--bordeaux); font-weight: 700; font-family: var(--titre); font-size: 1.2rem; }

/* Étapes */
.etapes { counter-reset: etape; list-style: none; }
.etapes li { counter-increment: etape; position: relative; padding-left: 64px; margin-bottom: 26px; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bordeaux); color: var(--blanc); display: grid; place-items: center; font-weight: 700; font-family: var(--titre); }

/* Bandeau d'appel */
.bandeau { text-align: center; }
.bandeau p { max-width: 640px; margin: 10px auto 28px; }

/* Formulaire */
.formulaire { display: grid; gap: 18px; max-width: 680px; }
.formulaire label { font-weight: 600; display: block; margin-bottom: 6px; }
.formulaire input, .formulaire textarea, .formulaire select { width: 100%; padding: 13px 14px; border: 1px solid #c9b8a6; border-radius: 8px; font: inherit; color: var(--encre); background: var(--blanc); }
.formulaire textarea { min-height: 150px; resize: vertical; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--gris); }
.case input { width: auto; margin-top: 5px; }

/* Texte long (mentions légales…) */
.texte-long { max-width: 820px; }
.texte-long h2 { font-size: 1.4rem; margin-top: 36px; }
.texte-long ul { margin: 10px 0 10px 22px; }

/* Pied de page */
.pied { background: var(--encre); color: #E9DFD6; padding: 60px 0 28px; font-size: .95rem; }
.pied a { color: #FFFFFF; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.pied h3 { color: var(--blanc); font-size: 1.05rem; margin-bottom: 12px; }
.pied ul { list-style: none; }
.pied li { margin-bottom: 6px; }
.pied .legal { border-top: 1px solid #4a3a3f; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #CFC3BA; }
.pied .logo { color: var(--blanc); margin-bottom: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .grille-3, .grille-2, .pied .colonnes { grid-template-columns: 1fr; }
  .burger { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--blanc); border-bottom: 1px solid #eadfd3; display: none; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 20px; }
  .nav li a { display: block; padding: 12px 0; }
  .nav .btn { text-align: center; margin-top: 8px; }
  section { padding: 60px 0; }
  .heros { padding: 64px 0; }
  .heros::after { display: none; }
}

/* --- Ajouts : test, FAQ --- */
.quiz { display: grid; gap: 22px; max-width: 760px; }
.question { border: 1px solid #eadfd3; border-radius: var(--rayon); padding: 20px 22px; background: var(--blanc); }
.question legend { font-weight: 700; padding: 0 6px; font-family: var(--titre); font-size: 1.1rem; }
.question .num { display: inline-block; background: var(--bordeaux); color: var(--blanc); font-family: var(--texte); font-size: .8rem; border-radius: 20px; padding: 2px 10px; margin-right: 6px; vertical-align: middle; }
.choix { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-top: 8px; border-radius: 8px; border: 1px solid #eadfd3; cursor: pointer; }
.choix:hover { background: var(--beige-clair); }
.choix input { width: 20px; height: 20px; accent-color: var(--bordeaux); flex-shrink: 0; }
.choix:has(input:checked) { border-color: var(--bordeaux); background: var(--beige-clair); }
.quiz-erreur { color: #9B1C1C; font-weight: 700; }
.resultats { max-width: 760px; margin-top: 40px; padding: 30px; border-radius: var(--rayon); background: var(--beige-clair); border-left: 5px solid var(--bordeaux); }
.resultats:focus { outline: none; }
.conseils { margin: 18px 0 24px 22px; }
.conseils li { margin-bottom: 10px; }
.actions-resultats { display: flex; flex-wrap: wrap; gap: 12px; }
.faq { border: 1px solid #eadfd3; border-radius: var(--rayon); margin-bottom: 12px; background: var(--blanc); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; position: relative; padding-right: 50px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.5rem; color: var(--bordeaux); }
.faq[open] summary::after { content: "–"; }
.faq > div { padding: 0 22px 18px; color: var(--gris); }

/* --- Ajouts : illustrations et fiches formation --- */
.heros-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.heros-img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(122,31,61,.14); }
.carte-formation { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.carte-formation:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36,20,24,.10); }
.carte-formation > *:not(.carte-img) { margin-left: 28px; margin-right: 28px; }
.carte-formation .surtitre { margin-top: 24px; margin-bottom: 6px; }
.carte-formation .btn { align-self: flex-start; margin-bottom: 28px; margin-top: auto !important; }
.carte-formation p { margin-bottom: 18px; }
.carte-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-bottom: 1px solid #eadfd3; }
.liste-objectifs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.liste-objectifs li { background: var(--blanc); border-radius: var(--rayon); padding: 18px 20px 18px 54px; position: relative; border: 1px solid #eadfd3; }
.liste-objectifs li::before { content: "✓"; position: absolute; left: 18px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--bordeaux); color: var(--blanc); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .carte-formation, .carte-formation:hover { transition: none; transform: none; } }
@media (max-width: 900px) {
  .heros-split { grid-template-columns: 1fr; gap: 32px; }
  .liste-objectifs { grid-template-columns: 1fr; }
}

/* --- Pages programme (document à l'écran, imprimable) --- */
.doc-page { background: var(--beige-clair); }
.doc-barre { max-width: 860px; margin: 0 auto; padding: 22px 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.doc-barre a { font-weight: 700; text-decoration: none; }
.doc-barre .btn { padding: 10px 18px; }
.doc { max-width: 860px; margin: 18px auto 0; background: var(--blanc); border-radius: 14px; box-shadow: 0 20px 50px rgba(36,20,24,.08); overflow: hidden; }
.doc-entete { background: var(--bordeaux); color: var(--blanc); padding: 40px 48px 36px; }
.doc-entete h1 { color: var(--blanc); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 6px 0 12px; }
.doc-entete p { color: #F3E6EA; }
.doc-logo svg { height: 40px; width: auto; display: block; margin-bottom: 26px; }
.doc-type { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--beige) !important; }
.doc-infos { padding: 30px 48px; border-bottom: 1px solid #eadfd3; }
.doc-infos dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
.doc-infos dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--bordeaux); }
.doc-infos dd { margin: 4px 0 0; color: var(--encre); }
.doc-bloc { padding: 30px 48px; border-bottom: 1px solid #eadfd3; }
.doc-bloc h2 { font-size: 1.35rem; margin-bottom: 14px; }
.doc-objectifs { margin: 12px 0 0 0; list-style: none; }
.doc-objectifs li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.doc-objectifs li::before { content: "✓"; position: absolute; left: 0; color: var(--bordeaux); font-weight: 700; }
.doc-module { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed #e4d6c6; }
.doc-module:first-of-type { border-top: 0; }
.doc-num { width: 40px; height: 40px; border-radius: 50%; background: var(--bordeaux); color: var(--blanc); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; }
.doc-module h3 { font-size: 1.08rem; margin-bottom: 4px; }
.doc-module p { color: var(--gris); }
.doc-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }
.doc-grille h2 { font-size: 1.1rem; margin-bottom: 6px; }
.doc-grille p { color: var(--gris); }
.doc-pied { padding: 24px 48px 30px; font-size: .85rem; color: var(--gris); background: #FBF7F2; }
.doc-pied p + p { margin-top: 4px; }
.doc-actions { max-width: 860px; margin: 26px auto 60px; padding: 0 22px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .doc-entete, .doc-infos, .doc-bloc, .doc-pied { padding-left: 22px; padding-right: 22px; }
  .doc-infos dl, .doc-grille { grid-template-columns: 1fr; }
}
@media print {
  .doc-page { background: #fff; }
  .doc-barre, .doc-actions { display: none; }
  .doc { box-shadow: none; margin: 0; max-width: none; border-radius: 0; }
  .doc-entete { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-module, .doc-grille > div { break-inside: avoid; }
}
