/* =========================================================
   Portfolio Loïc Denambride
   Idée : une planche technique Vectorworks (plan de scène,
   ponts, treuils, cotations) en fond, très discrète, et un
   texte très lisible par-dessus (pensé aussi pour la dyslexie).
   ========================================================= */

:root {
  /* Couleurs "Graphite et signal" :
     texte gris graphite, accent orange sécurité, bleu réservé aux traits du plan */
  --fond: #eef1f4;
  --surface: #ffffff;
  --surface-2: #e6eaef;
  --encre: #1e2329;
  --gris: #48505c;
  --ligne: #c9d1db;
  --accent: #c2410c;
  --accent-fort: #9a3412;
  --accent-texte: #ffffff;
  --accent-doux: #fbeadf;
  --repere: #2f5d9e;         /* petites étiquettes, comme les annotations d'un plan */
  --trait: #2f5d9e;          /* couleur des traits du plan en fond */
  --trait-opacite: .17;
  --ok: #0f7a4a;

  /* Typographies */
  --titre: "Archivo", "Segoe UI", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;

  /* Taille de base : grande, pour un confort de lecture */
  --base: 1.125rem;
  --interligne: 1.65;
  --espacement-lettres: 0;
  --espacement-mots: 0;

  --rayon: 8px;
  --largeur: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #14181d; --surface: #1c2128; --surface-2: #232a33; --encre: #ece9e4; --gris: #bcc2ca;
    --ligne: #2f3742; --accent: #f08a4b; --accent-fort: #f6a877; --accent-texte: #14181d; --accent-doux: #3a2519;
    --repere: #8fb0dc; --trait: #7ea2d6; --trait-opacite: .13; --ok: #5fd39a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #14181d; --surface: #1c2128; --surface-2: #232a33; --encre: #ece9e4; --gris: #bcc2ca;
  --ligne: #2f3742; --accent: #f08a4b; --accent-fort: #f6a877; --accent-texte: #14181d; --accent-doux: #3a2519;
  --repere: #8fb0dc; --trait: #7ea2d6; --trait-opacite: .13; --ok: #5fd39a; color-scheme: dark;
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  font-family: var(--texte);
  font-size: var(--base);
  line-height: var(--interligne);
  letter-spacing: var(--espacement-lettres);
  word-spacing: var(--espacement-mots);
  color: var(--encre);
  background: var(--fond);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { font-family: var(--titre); font-stretch: 112%; line-height: 1.2; text-wrap: balance; letter-spacing: 0; word-spacing: 0; }
p, li { max-width: 68ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-inline: 20px; }
section { padding-block: 72px; position: relative; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 750; margin-bottom: 12px; }
.intro { color: var(--gris); margin-bottom: 32px; }
.etiquette {
  display: inline-block; font-family: var(--titre); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--repere); margin-bottom: 10px;
}

/* ---------- Fond : planche technique ---------- */
/* Quasi invisible à gauche (zone du texte, environ 0,04-0,05), visible à droite et en bas */
.planche {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  color: var(--trait); opacity: var(--trait-opacite);
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .25) 0%, rgb(0 0 0 / .3) 55%, #000 85%), linear-gradient(180deg, transparent 60%, #000 100%);
          mask-image: linear-gradient(90deg, rgb(0 0 0 / .25) 0%, rgb(0 0 0 / .3) 55%, #000 85%), linear-gradient(180deg, transparent 60%, #000 100%);
}
.planche svg { width: 100%; height: 100%; }
@media (max-width: 760px) { .planche { opacity: calc(var(--trait-opacite) * .3); -webkit-mask-image: none; mask-image: none; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px;
  border-radius: var(--rayon); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-texte);
  font-family: var(--texte); font-size: 1.05rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.bouton:hover { background: var(--accent-fort); border-color: var(--accent-fort); transform: translateY(-1px); }
.bouton.secondaire { background: var(--surface); color: var(--encre); border-color: var(--ligne); }
.bouton.secondaire:hover { border-color: var(--accent); color: var(--accent); }
.bouton:disabled { opacity: .55; cursor: default; transform: none; }
.fleche { font-family: var(--titre); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.nav .conteneur { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { font-family: var(--titre); font-stretch: 112%; font-weight: 800; font-size: 1.1rem; color: var(--encre); text-decoration: none; white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav ul a {
  display: block; padding: 10px 14px; border-radius: var(--rayon); white-space: nowrap;
  color: var(--gris); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.nav ul a:hover { background: var(--accent-doux); color: var(--accent); }
.btn-contact { min-height: 44px; padding: 8px 18px; font-size: 1rem; white-space: nowrap; }
@media (max-width: 860px) {
  .nav .conteneur { flex-wrap: wrap; gap: 4px 8px; padding-block: 8px; }
  .nav ul { order: 3; width: 100%; margin-left: 0; }
  .btn-contact { margin-left: auto; }
}

/* ---------- En-tête ---------- */
.hero { padding-block: 36px 40px; }
.hero-titre { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 40px; align-items: start; max-width: 1000px; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; margin-bottom: 10px; }
.hero .accroche-orange { font-family: var(--titre); font-stretch: 112%; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; color: var(--accent); line-height: 1.3; margin-bottom: 14px; }
.hero .chapeau { font-size: 1.1rem; color: var(--gris); margin-bottom: 6px; }
.hero .modalites { color: var(--gris); margin-bottom: 20px; }
.hero .boutons { margin-bottom: 14px; }
.contact-direct { color: var(--gris); font-size: .95rem; margin-bottom: 14px; }
.contact-direct a { color: var(--encre); font-weight: 700; }

/* Certifications : simple texte avec une coche, rien de cliquable */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.badges li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--gris); cursor: default; max-width: none; }
.badges li::before {
  content: ""; position: absolute; left: 3px; top: .45em; width: 9px; height: 5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* Photo : à côté du titre. Pour la changer, remplacer seulement le fichier img/avatar.jpg */
.portrait { position: relative; margin: 6px 0 0; }
.portrait > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: var(--rayon); filter: grayscale(1) contrast(1.05); }

/* Logos Vectorworks et Production Assist : petits, ils se promènent à l'intérieur du cadre de la photo */
.logo-flottant {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #ffffff;
  box-shadow: 0 2px 8px rgb(15 26 43 / .25);
}
.logo-flottant img { width: 18px; height: 18px; object-fit: contain; }
.logo-flottant.vw { top: 6px; left: 6px; animation: balade-vw 9s ease-in-out infinite; }
.logo-flottant.pa { bottom: 6px; right: 6px; animation: balade-pa 9s ease-in-out infinite; animation-delay: -4.5s; }
@keyframes balade-vw {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(14px, 10px); }
  50% { transform: translate(6px, 24px); }
  75% { transform: translate(18px, 4px); }
}
@keyframes balade-pa {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-12px, -14px); }
  50% { transform: translate(-22px, -4px); }
  75% { transform: translate(-6px, -22px); }
}
@media (prefers-reduced-motion: reduce) { .logo-flottant.vw, .logo-flottant.pa { animation: none; } }
@media (max-width: 767px) {
  .logo-flottant.vw, .logo-flottant.pa { animation: none; }
  .hero-titre { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 110px; order: -1; }
}

/* ---------- Chiffres clés ---------- */
.reperes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 32px; }
.repere { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; }
.repere strong { display: block; font-family: var(--titre); font-stretch: 112%; font-size: 1.6rem; color: var(--accent); }
.repere span { color: var(--gris); }

/* ---------- Cartes génériques ---------- */
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; min-width: 0; }
.carte h3 { font-size: 1.25rem; margin-bottom: 8px; }
.carte p { color: var(--gris); }

/* ---------- Formations ---------- */
.choix-formation { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.logiciel {
  text-align: left; font: inherit; color: var(--encre); cursor: pointer;
  background: var(--surface); border: 2px solid var(--ligne); border-radius: var(--rayon); padding: 28px;
  display: grid; gap: 8px; transition: border-color .15s, transform .15s;
}
.logiciel:hover { border-color: var(--accent); transform: translateY(-2px); }
.logiciel h3 { font-size: 1.5rem; }
.logiciel p { color: var(--gris); }
.logiciel .voir { margin-top: 8px; font-weight: 700; color: var(--accent); }
.logiciel[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-doux); }
.logiciel[aria-expanded="true"] .voir::after { content: " · ouvert"; color: var(--gris); font-weight: 400; }

.fiche { margin-top: 20px; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--rayon); padding: 28px; }
.fiche > h3 { font-size: 1.4rem; margin-bottom: 20px; }
.offre { padding-block: 24px; border-top: 1px solid var(--ligne); }
.offre:first-of-type { border-top: none; padding-top: 0; }
.offre h4 { font-size: 1.25rem; margin-bottom: 6px; }
.offre .meta, .blocs .meta { color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.offre .accroche { color: var(--gris); margin-bottom: 10px; }
.offre ul, .blocs ul { color: var(--gris); padding-left: 22px; display: grid; gap: 4px; }
.blocs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 16px; }
.blocs > div { background: var(--surface-2); border-radius: var(--rayon); padding: 18px; min-width: 0; }
.blocs h5 { font-size: 1.05rem; margin-bottom: 4px; }
.note { color: var(--gris); font-size: .95rem; margin-top: 16px; }
.encart { margin-top: 20px; padding: 20px; border-radius: var(--rayon); background: var(--surface-2); }
.encart h4 { margin-bottom: 6px; }
.encart p { color: var(--gris); }
.bandeau-programme { margin: -8px 0 20px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--encre); }
.bouton-programme { margin-top: 16px; min-height: 44px; padding: 8px 16px; font-size: .95rem; }

/* ---------- Étapes (déroulé d'une formation) ---------- */
.etapes { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: etape; }
.etapes > li { counter-increment: etape; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; max-width: none; }
.etapes > li::before {
  content: counter(etape); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--accent-texte); font-family: var(--titre); font-weight: 800;
}
.etapes h3 { font-size: 1.15rem; margin-bottom: 6px; }
.etapes p { color: var(--gris); }

/* ---------- Financement & modalités ---------- */
.deux-colonnes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.liste-check { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.liste-check li { padding-left: 30px; position: relative; color: var(--gris); }
.liste-check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.liste-check strong { color: var(--encre); }

/* ---------- Planning ---------- */
.mois { margin-bottom: 24px; }
.mois h3 { font-family: var(--titre); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); margin-bottom: 10px; }
.session {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 16px 20px; margin-bottom: 10px;
}
.session .dates { font-family: var(--titre); font-stretch: 112%; font-weight: 750; font-variant-numeric: tabular-nums; }
.session .infos strong { display: block; }
.session .infos span { color: var(--gris); }
.statut-session { font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; border: 2px solid; }
.statut-session.ouvert { color: var(--ok); border-color: var(--ok); }
.statut-session.complet { color: var(--gris); border-color: var(--ligne); }
.statut-session.bientot { color: var(--accent); border-color: var(--accent); }
#sessions.replie .en-plus { display: none; }
.btn-planning { margin-bottom: 8px; }
.centres { margin-top: 40px; }
.centres h3 { font-size: 1.2rem; margin-bottom: 14px; }
.centres ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.centres li { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 10px 16px; max-width: none; }
.centres li a { font-weight: 700; }
.centres li span { color: var(--gris); }
@media (max-width: 640px) { .session { grid-template-columns: 1fr; gap: 4px; } .statut-session { justify-self: start; } }

/* ---------- Vidéos ---------- */
.video { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--encre); transition: border-color .15s; }
.video:hover { border-color: var(--accent); }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video div { padding: 14px 16px; font-weight: 700; }
.video small { display: block; color: var(--gris); font-weight: 400; font-size: .9rem; }

/* ---------- Avis ---------- */
.avis-carte blockquote { margin-bottom: 12px; }
.avis-carte figcaption { color: var(--gris); font-size: .95rem; }
.etoiles-lues { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
#avisSelection:not(:empty), #avisPublies:not(:empty) { margin-bottom: 20px; }
.vide { color: var(--gris); }
.avis-liens { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--gris); margin: 12px 0 28px; }
.avis-liens a { font-weight: 700; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 8px; max-width: 680px; }
.formulaire h3 { margin-bottom: 6px; }
.formulaire .ligne { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.formulaire .ligne > div { display: grid; gap: 6px; min-width: 0; }
label, legend { font-weight: 700; font-size: .95rem; }
input, textarea {
  font: inherit; color: var(--encre); background: var(--fond); width: 100%;
  border: 2px solid var(--ligne); border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 6px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
fieldset { border: none; }
#etoiles button { background: none; border: none; cursor: pointer; font-size: 1.8rem; line-height: 1; color: var(--ligne); padding: 4px; }
#etoiles button.on { color: var(--accent); }
.statut { color: var(--accent); font-weight: 700; }
.formulaire .bouton { justify-self: start; }
.actions-avis { display: flex; gap: 8px; margin-top: 12px; }
.actions-avis .bouton { min-height: 40px; padding: 6px 14px; font-size: .9rem; }

/* ---------- Communauté & contact ---------- */
.bandeau { background: var(--accent); color: var(--accent-texte); border-radius: var(--rayon); padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.bandeau h2 { color: inherit; font-size: clamp(1.5rem, 3vw, 2rem); }
.bandeau p { color: inherit; opacity: .9; }
.bandeau .bouton { background: var(--accent-texte); color: var(--accent); border-color: var(--accent-texte); }

/* ---------- Questionnaire ---------- */
.quiz-fond { position: fixed; inset: 0; z-index: 50; background: rgb(8 14 26 / .6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 16px; }
.quiz-fond.ouvert { display: flex; }
.quiz { background: var(--surface); color: var(--encre); border-radius: var(--rayon); width: 100%; max-width: 580px; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; }
.quiz .fermer { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; background: none; border: none; color: var(--gris); font-size: 1.8rem; cursor: pointer; border-radius: var(--rayon); }
.quiz .etape { color: var(--accent); font-weight: 700; font-size: .95rem; }
.quiz .barre { height: 6px; background: var(--surface-2); border-radius: 6px; margin: 10px 0 22px; }
.quiz .barre div { height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s; }
.quiz h3 { font-size: 1.4rem; margin-bottom: 18px; }
.quiz .choix { display: grid; gap: 10px; }
.quiz .choix button { text-align: left; padding: 14px 18px; min-height: 52px; border-radius: var(--rayon); cursor: pointer; background: var(--fond); color: var(--encre); border: 2px solid var(--ligne); font: inherit; font-weight: 700; }
.quiz .choix button:hover { border-color: var(--accent); }
.quiz p { color: var(--gris); margin-bottom: 18px; }
.quiz .profil { font-family: var(--titre); font-stretch: 112%; font-size: 1.7rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.quiz ul { color: var(--gris); margin: 0 0 20px 20px; }
.quiz .autre { display: grid; gap: 8px; margin-top: 16px; }
.quiz .envoi { display: grid; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ligne); }
.quiz .envoi .bouton, .quiz .autre .bouton { justify-self: start; }

/* ---------- À propos : paragraphes et phrase sous les chiffres ---------- */
.texte-apropos { display: grid; gap: 14px; }
.apres-reperes { color: var(--gris); margin-top: 20px; }

/* ---------- Formations : supports remis ---------- */
.supports { margin-top: 40px; }
.supports > h3 { font-size: 1.4rem; margin-bottom: 16px; }
.supports .carte h4 { font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Accompagnement : 3 colonnes (ordinateur), 2 (tablette), 1 (mobile) ---------- */
#accompagnement .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { #accompagnement .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { #accompagnement .grille { grid-template-columns: 1fr; } }

/* ---------- Planning : bloc Collectif, séparé des centres ---------- */
.collectif { margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--ligne); border-radius: var(--rayon); }
.collectif h3 { font-size: 1.1rem; margin-bottom: 6px; }
.collectif p { color: var(--gris); }
.collectif a { font-weight: 700; }

/* ---------- Bande "Ils m'ont fait confiance" ---------- */
.confiance { padding-block: 22px; border-block: 1px solid var(--ligne); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.confiance-titre { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); margin-bottom: 12px; }
.confiance-liste { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.confiance-liste li { max-width: none; }
.confiance-liste .nom-ref { font-family: var(--titre); font-stretch: 112%; font-weight: 700; color: var(--gris); white-space: nowrap; }
.confiance-liste .logo-ref { height: 36px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.confiance-liste .logo-ref:hover { filter: none; opacity: 1; }

/* ---------- Section Références ---------- */
.references-grille { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .references-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .references-grille { grid-template-columns: 1fr; } }
.reference { display: grid; gap: 8px; align-content: start; max-width: none; }
.reference .nom-ref { font-family: var(--titre); font-stretch: 112%; font-size: 1.15rem; font-weight: 750; color: var(--encre); }
.reference .logo-ref { height: 44px; width: auto; justify-self: start; }
.lieux-ref { font-size: .9rem; color: var(--gris); }
.tags-ref { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-ref { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ligne); color: var(--encre); background: var(--surface-2); }

/* ---------- Bande de photos de formation ---------- */
.photos-formation { padding-block: 0 56px; }
.photos-grille { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.photos-grille figure { margin: 0; min-width: 0; }
.photos-grille img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 640px) { .photos-grille { grid-auto-flow: row; grid-template-columns: 1fr; } }

/* ---------- À propos : texte et photo côte à côte ---------- */
.apropos-colonnes { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.photo-apropos { margin: 0; width: 360px; }
.photo-apropos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
@media (max-width: 860px) { .apropos-colonnes { grid-template-columns: 1fr; } .photo-apropos { width: 100%; max-width: 560px; } }

/* ---------- Bande "Prochaine session" tout en haut ---------- */
.annonce { background: var(--surface-2); color: var(--encre); border-bottom: 1px solid var(--ligne); font-size: .92rem; padding-top: env(safe-area-inset-top, 0px); }
.annonce .conteneur { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-block: 8px; }
.annonce-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.annonce-texte { min-width: 0; }
.annonce-lien { margin-left: auto; color: var(--accent); font-weight: 700; white-space: nowrap; }
.annonce-lien:hover { color: var(--accent-fort); }
.annonce .conteneur { flex-wrap: nowrap; }
.annonce-texte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dates-courtes { display: none; }
@media (max-width: 1400px) { .annonce-formation { display: none; } }
@media (max-width: 640px) {
  .annonce-label { display: none; }
  .dates-longues { display: none; }
  .dates-courtes { display: inline; }
}

/* ---------- En-tête : rendu 3D de la salle (images/fond-entete.jpg) ---------- */
/* Le texte est posé sur un fond sombre uni à gauche ; le rendu occupe la droite et se fond dans le noir. */
.hero {
  --encre: #f3f1ec; --gris: #cfd4dc; --accent: #f6964f; --accent-fort: #f9b07a; --accent-texte: #14181d;
  --surface: rgb(20 24 29 / .65); --ligne: rgb(255 255 255 / .28); --ok: #6ee0a6;
  color: var(--encre);
  background: #0d1016;
  position: relative; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: -1;
  background: linear-gradient(90deg, rgb(13 16 22 / .35), rgb(13 16 22 / .1)), url("images/fond-entete.jpg") 0% 40% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .3) 30%, #000 58%);
          mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .3) 30%, #000 58%);
}
.hero h1 { color: var(--encre); }
.hero h1, .hero p, .hero .badges li { text-shadow: 0 1px 14px rgb(0 0 0 / .65); }
@media (max-width: 760px) {
  /* Sur téléphone : le rendu en haut, en bandeau, qui se fond vers le bas sous le texte */
  .hero::before { left: 0; width: 100%; bottom: auto; height: 300px; background-position: 40% 40%;
    -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, transparent 100%);
            mask-image: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, transparent 100%); }
}

/* ---------- Réalisations (rendus 3D, liste REALISATIONS de contenus.js) ---------- */
.realisations-grille { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.realisations-grille figure { margin: 0; min-width: 0; }
.realisations-grille img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); }
.realisations-grille figcaption { font-size: .9rem; color: var(--gris); margin-top: 6px; }
@media (max-width: 860px) { .realisations-grille { grid-template-columns: 1fr; } }

/* ---------- Réserver des journées : calendrier + formulaire ---------- */
.resa { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .resa { grid-template-columns: 1fr; } }
.cal-entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-entete h3 { margin: 0; text-transform: capitalize; font-size: 1.2rem; }
.cal-nav { width: 44px; height: 44px; border-radius: var(--rayon); border: 2px solid var(--ligne); background: var(--surface); color: var(--encre); font: inherit; font-weight: 700; cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-jours-semaine, .cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-jours-semaine span { text-align: center; font-size: .8rem; font-weight: 700; color: var(--gris); padding-bottom: 4px; }
.jour { aspect-ratio: 1; min-height: 38px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.jour.libre { background: color-mix(in srgb, var(--ok) 32%, var(--surface)); color: var(--encre); border-color: var(--ok); }
.jour.libre:hover { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 48%, var(--surface)); }
.jour.choisi, .jour.choisi:hover { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.jour.pris, .jour.ferme, .jour.passe { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px); color: var(--gris); cursor: not-allowed; opacity: .75; }
.cal-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .85rem; color: var(--gris); }
.cal-legende li { display: flex; align-items: center; gap: 6px; max-width: none; }
.pastille { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--ligne); }
.pastille.libre { background: color-mix(in srgb, var(--ok) 35%, var(--surface)); border-color: var(--ok); }
.pastille.choisi { background: var(--accent); border-color: var(--accent); }
.pastille.pris { background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, transparent 3px 6px); }
.resa-selection { color: var(--gris); font-size: .95rem; margin-bottom: 6px; }
.resa-selection.rempli { color: var(--encre); font-weight: 700; }
select { font: inherit; color: var(--encre); background: var(--fond); width: 100%; border: 2px solid var(--ligne); border-radius: var(--rayon); padding: 12px 14px; margin-bottom: 6px; }
select:focus { outline: none; border-color: var(--accent); }

.lien-dispo { margin-top: 20px; color: var(--gris); }
.lien-dispo a { font-weight: 700; }

/* ---------- Étape 1 : en-tête ---------- */
/* Photo descendue en bas de la colonne pour laisser voir le cube vidéo du rendu au-dessus */
.hero-titre .portrait { align-self: end; }


/* Petites icônes Twinmotion et Capture, plus discrètes que Vectorworks et Production Assist */
.logo-flottant.petit { width: 24px; height: 24px; }
.logo-flottant.petit img { width: 14px; height: 14px; }
.logo-flottant.tm { top: 8px; right: 8px; animation: balade-tm 11s ease-in-out infinite; }
.logo-flottant.cap { bottom: 8px; left: 8px; animation: balade-cap 11s ease-in-out infinite; animation-delay: -5.5s; }
@keyframes balade-tm {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-16px, 12px); }
  50% { transform: translate(-6px, 28px); }
  75% { transform: translate(-20px, 6px); }
}
@keyframes balade-cap {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(14px, -16px); }
  50% { transform: translate(24px, -6px); }
  75% { transform: translate(8px, -26px); }
}
@media (prefers-reduced-motion: reduce) { .logo-flottant.tm, .logo-flottant.cap { animation: none; } }
@media (max-width: 767px) { .logo-flottant.tm, .logo-flottant.cap { animation: none; } }

/* ---------- Étapes : listes et bouton visio ---------- */
.etapes ul { color: var(--gris); font-size: .95rem; padding-left: 20px; margin-top: 10px; display: grid; gap: 4px; list-style: disc; }
.etapes > li { display: flex; flex-direction: column; }
.bouton-etape { align-self: flex-start; margin-top: auto !important; }
.etapes > li > ul + .bouton-etape { margin-top: 16px !important; }
.etapes .note { margin-top: 10px; font-size: .85rem; }
.bouton-etape { margin-top: 14px; min-height: 44px; padding: 8px 16px; font-size: .95rem; }

.info-planning { color: var(--gris); font-size: .95rem; margin: -16px 0 28px; padding: 12px 16px; border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); border-radius: 0; max-width: 80ch; }
.info-planning strong { color: var(--encre); }
.maj-planning { display: block; margin-top: 4px; font-size: .85rem; }

/* ---------- Contact (pied de page) ---------- */
footer { border-top: 1px solid var(--ligne); padding-block: 72px 32px; background: var(--surface); }
footer .conteneur { display: grid; gap: 48px; grid-template-columns: 1fr; }
.contact-appel { max-width: 760px; }
footer h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
footer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 12px; }
footer li { max-width: none; }
footer a { font-weight: 700; }
.contact-appel > p { color: var(--gris); margin-bottom: 20px; }
.bouton-visio { font-size: 1.1rem; min-height: 58px; padding: 14px 26px; }
.contact-precision { font-size: .9rem; color: var(--gris); margin: 10px 0 24px !important; }
.contact-autres .bouton { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.contact-colonnes { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); padding-top: 32px; border-top: 1px solid var(--ligne); }
.contact-colonnes a { color: var(--encre); text-decoration-color: color-mix(in srgb, var(--encre) 35%, transparent); }
.contact-colonnes a:hover { color: var(--accent); text-decoration-color: currentColor; }
.contact-colonnes li { overflow-wrap: anywhere; }
.contact-libelle { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
footer .mention { grid-column: 1 / -1; border-top: 1px solid var(--ligne); padding-top: 20px; color: var(--gris); font-size: .85rem; display: grid; gap: 4px; }
footer .mention p { max-width: none; }
@media (max-width: 1000px) {
  .contact-colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .contact-colonnes { grid-template-columns: 1fr; gap: 28px; }
  .bouton-visio { width: 100%; justify-content: center; }
}

/* ---------- Mes deux métiers (sous la bande de références) ---------- */
#offres { padding-block: 48px 24px; }
.deux-offres { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.offre-carte { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--ligne); border-top: 4px solid var(--accent); border-radius: var(--rayon); padding: 28px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.offre-carte:hover { border-color: var(--accent); transform: translateY(-2px); }
.offre-carte h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.offre-carte p { color: var(--gris); }
.offre-carte .voir { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent); }
#offres .reperes { margin-top: 16px; }

/* ---------- Liste des formations visible sur les cartes logiciel ---------- */
.liste-formations { display: grid; gap: 6px; color: var(--gris); }
.liste-formations > span { display: block; padding-left: 14px; border-left: 2px solid var(--ligne); }
.liste-formations strong { color: var(--encre); }

/* ---------- Tarifs ---------- */
.tarif-colonne { display: flex; flex-direction: column; gap: 12px; }
.tarif-colonne h3 { margin-bottom: 0; }
.tarif-sous-titre { font-weight: 700; color: var(--repere) !important; }
.tarifs { list-style: none; display: grid; }
.tarifs li { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--ligne); }
.tarifs li:first-child { border-top: 1px solid var(--ligne); }
.tarif-nom { font-weight: 700; color: var(--encre); }
.tarif-nom small { display: block; font-weight: 400; font-size: .92rem; color: var(--gris); }
.tarif-prix { font-family: var(--titre); font-stretch: 112%; font-size: 1.35rem; color: var(--accent); white-space: nowrap; }
.tarif-colonne .boutons { margin-top: auto; padding-top: 8px; }

/* ---------- Avis : formulaire replié ---------- */
.depot-avis { margin-top: 12px; }
.depot-avis > summary { list-style: none; display: inline-flex; cursor: pointer; }
.depot-avis > summary::-webkit-details-marker { display: none; }
.depot-avis[open] > summary { margin-bottom: 16px; }
.bandeau h3 { color: inherit; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.tarif-groupe { padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--rayon) var(--rayon) 0; display: grid; gap: 10px; }
.tarif-groupe > p { color: var(--encre) !important; }
.tarif-groupe > p:first-child { font-weight: 700; }
.tarif-exemple { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tarif-exemple caption { text-align: left; color: var(--gris); font-size: .9rem; margin-bottom: 6px; }
.tarif-exemple th { text-align: left; color: var(--gris); font-weight: 700; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ligne); }
.tarif-exemple td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ligne); color: var(--encre); }
.tarif-exemple td:nth-child(2) { font-weight: 700; color: var(--accent); white-space: nowrap; }
.tarifs-titre { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 8px 0 -4px; }
.pastille-fin { align-self: flex-start; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.pastille-fin.sans { color: var(--gris); border-color: var(--ligne); }
.pastille-fin.avec { color: var(--ok); border-color: var(--ok); }
.alerte-financement { border: 2px solid var(--accent); border-radius: var(--rayon); padding: 14px 16px; background: var(--accent-doux); display: grid; gap: 8px; }
.alerte-financement p { color: var(--encre) !important; }
.alerte-financement .alerte-titre { font-family: var(--titre); font-weight: 800; font-size: 1.05rem; color: var(--accent) !important; }
.avis-source { font-size: .9rem; font-weight: 700; }
.depot-avis > summary.bouton { min-height: 52px; font-size: 1.05rem; }
.avis-linkedin { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.avis-linkedin p { color: var(--gris); max-width: 60ch; }
.avis-linkedin strong { color: var(--encre); }
#accompagnement .grille > .carte:last-child { grid-column: 1 / -1; }
.ou-suivre { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--ligne); border-left: 4px solid var(--repere); border-radius: 0 var(--rayon) var(--rayon) 0; background: var(--surface-2); }
.ou-suivre-titre { font-weight: 700; color: var(--encre); margin-bottom: 6px; }
.ou-suivre ul { list-style: none; padding-left: 0 !important; display: grid; gap: 4px; color: var(--gris); }
.ou-suivre strong, .ou-suivre a { font-weight: 700; }
