/* Présentation de l'oral : une scène fixe de 1920 × 1080, mise à l'échelle de l'écran,
   pour que tout tombe au même endroit sur un portable comme sur un vidéoprojecteur. */
html, body.soutenance { height: 100%; overflow: hidden; background: #111212; }
body.soutenance { margin: 0; }
.scene {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--echelle, .5)); transform-origin: center;
  background: #fff; overflow: hidden; font-size: 30px; line-height: 1.5; color: var(--texte);
}

/* La route des étapes, à gauche, comme la navigation à repères de leur accueil */
.d-route { position: absolute; left: 0; top: 0; bottom: 0; width: 300px; background: #151616; z-index: 5; display: flex; align-items: center; }
.d-route ol { list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; }
.d-route ol::before { content: ''; position: absolute; left: 73px; top: 20px; bottom: 20px; border-left: 2px dotted rgba(255,255,255,.4); }
.d-route li { margin: 0 0 30px; }
.d-route li:last-child { margin-bottom: 0; }
.d-route button { display: flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; cursor: pointer; color: rgba(255,255,255,.45); font: 400 19px/1.2 var(--titre); text-transform: uppercase; letter-spacing: .6px; text-align: left; }
.d-route svg { width: 20px; height: 26px; flex: none; position: relative; }
.d-route .passe button { color: rgba(255,255,255,.75); }
.d-route .courant button { color: var(--rouge); font-weight: 600; }
.d-route button:focus-visible { outline: 3px solid var(--rouge); outline-offset: 6px; }

.diapo { position: absolute; top: 0; right: 0; bottom: 0; left: 300px; overflow: hidden; }
.diapo[hidden] { display: none; }
.diapo.sombre { background: var(--anthracite); color: #CFCFCF; }
.diapo.clair { background: #fff; }
.d-fantome {
  position: absolute; left: 96px; top: 46px; font: 600 230px/1 var(--titre); text-transform: uppercase; letter-spacing: -4px;
  color: #EDEDED; white-space: nowrap; pointer-events: none; user-select: none;
}
.diapo.sombre .d-fantome { color: #2B2C2C; }
.diapo.sombre .d-repere { color: #fff; }
.d-contenu { position: absolute; left: 120px; right: 120px; top: 190px; bottom: 110px; display: flex; flex-direction: column; justify-content: center; }
.d-logo { position: absolute; right: 64px; bottom: 44px; width: 170px; height: auto; opacity: .95; }

.diapo h1, .diapo h2 { color: var(--anthracite); }
.diapo.sombre h1, .diapo.sombre h2, .diapo.sombre h3 { color: #fff; }
.diapo h2 { font: 700 68px/1.12 var(--sous-titre); margin-bottom: 30px; max-width: 26ch; }
.d-texte { font-size: 30px; max-width: 46ch; margin-bottom: 40px; }
.d-repere { font: 500 22px/1.3 var(--titre); text-transform: uppercase; letter-spacing: 1px; color: var(--rouge); margin-bottom: 18px; display: flex; gap: 16px; align-items: baseline; }
.d-repere span { background: var(--rouge); color: #fff; padding: 6px 12px; letter-spacing: .6px; }

/* Couverture */
.d-couverture { display: grid; grid-template-columns: 1fr 560px; gap: 60px; align-items: center; height: 100%; }
.d-couverture > div:first-child { align-self: center; }
.d-surtitre { font: 400 34px/1 var(--titre); letter-spacing: 10px; text-transform: uppercase; color: #fff; margin-bottom: 40px; }
.diapo h1 { font: 600 118px/1.02 var(--titre); text-transform: uppercase; letter-spacing: -2px; margin-bottom: 40px; }
.d-sous { font: 500 38px/1.3 var(--titre); color: #fff; padding-left: 26px; border-left: 6px solid var(--rouge); margin-bottom: 34px; }
.d-statut { font-size: 25px; line-height: 1.6; color: #A9AAAA; }
.d-portrait { position: relative; height: 740px; overflow: hidden; background: #333434; border: 3px solid var(--brique); }
/* La silhouette occupe 212 à 807 px de haut, centrée sur 288 px de large, dans l'image de 605 × 807 : agrandie ×1,28 et recentrée */
.d-portrait img { position: absolute; left: 50%; top: -27%; height: 140%; width: auto; max-width: none; transform: translateX(-47.6%); }

/* Tuiles chiffrées */
.d-tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.d-tuiles .tuile { padding: 34px 30px 96px; border-width: 3px; }
.d-tuiles .tuile-valeur { font-size: 62px; margin-bottom: 10px; }
.d-tuiles .tuile-label { font-size: 26px; }
.d-tuiles .tuile svg { width: 58px; height: 58px; right: 24px; bottom: 22px; }

/* Missions du poste */
.d-missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 3px solid var(--brique); margin-bottom: 46px; }
.d-missions > div { padding: 40px 40px 44px; }
.d-missions > div + div { border-left: 1px solid #3A3B3B; }
.d-missions svg { width: 66px; height: 66px; color: var(--rouge); margin-bottom: 22px; }
.d-missions h3 { font: 600 44px/1 var(--titre); text-transform: uppercase; margin-bottom: 14px; }
.d-missions p { font-size: 27px; line-height: 1.45; margin: 0; }
.d-devise { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.d-devise p { margin: 0; font: 400 italic 31px/1.4 var(--titre); color: #9FA0A0; }
.d-devise p + p { color: #fff; }
.d-devise span { display: block; font: 600 20px/1 var(--titre); font-style: normal; text-transform: uppercase; letter-spacing: 1px; color: var(--rouge); margin-bottom: 12px; }

/* Une preuve : le document à gauche, l'argument à droite */
.d-preuve { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: center; }
.d-doc { width: 420px; height: auto; border: 3px solid var(--brique); box-shadow: 0 30px 60px rgba(0,0,0,.18); background: #fff; }
.diapo.sombre .d-doc { box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.d-preuve h2 { font-size: 60px; }
.d-criteres { display: grid; gap: 14px; max-width: 900px; margin-bottom: 40px; }
.d-criteres div { display: grid; grid-template-columns: 290px 1fr 110px; align-items: center; gap: 24px; font-size: 28px; }
.d-criteres i { height: 22px; background: var(--perle); position: relative; }
.d-criteres i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: var(--anthracite); transform-origin: left; }
.d-criteres .fort { color: var(--rouge); font-weight: 600; }
.d-criteres .fort i::after { background: var(--rouge); }
.d-criteres b { font: 700 32px/1 var(--sous-titre); color: var(--anthracite); text-align: right; }
.d-criteres .fort b { color: var(--rouge); }
.d-liste { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 26px; }
.d-liste li { padding-left: 30px; border-left: 5px solid var(--rouge); font-size: 28px; line-height: 1.45; }
.d-liste b { display: block; font: 600 36px/1.2 var(--titre); color: #fff; margin-bottom: 6px; }
.d-chiffres { display: flex; gap: 40px; margin-bottom: 36px; }
.d-chiffres p { margin: 0; font-size: 24px; }
.d-chiffres b { display: block; font: 700 58px/1 var(--sous-titre); color: #fff; }

/* Les étapes de l'engagement : une vraie séquence */
.d-etapes { list-style: none; margin: 10px 0 50px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: e; }
.d-etapes li { position: relative; padding: 78px 34px 0 0; font-size: 26px; line-height: 1.45; counter-increment: e; }
.d-etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 54px; height: 54px; display: grid; place-items: center; background: var(--rouge); color: #fff; font: 700 28px/1 var(--sous-titre); }
.d-etapes li::after { content: ''; position: absolute; left: 70px; right: 16px; top: 27px; border-top: 3px dotted var(--brique); }
.d-etapes li:last-child::after { display: none; }
.d-etapes b { display: block; font: 600 34px/1.2 var(--titre); color: var(--anthracite); margin-bottom: 10px; }

/* Avant / après */
.d-avant-apres { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; margin-bottom: 44px; }
.d-avant-apres > div:not(.d-fleche) { border: 3px solid #3A3B3B; padding: 40px 44px; height: 100%; }
.d-avant-apres > div:last-child { border-color: var(--rouge); background: #232424; }
.d-etiquette { font: 600 21px/1 var(--titre); text-transform: uppercase; letter-spacing: 1px; color: #8E8F8F; margin-bottom: 14px; }
.d-avant-apres > div:last-child .d-etiquette { color: var(--rouge); }
.d-grand { font: 700 50px/1.15 var(--sous-titre); color: #fff; margin-bottom: 22px; }
.d-avant-apres ul { margin: 0; padding-left: 30px; font-size: 27px; line-height: 1.65; }
.d-avant-apres li::marker { color: var(--rouge); }
.d-fleche { display: grid; place-items: center; color: var(--rouge); }
.d-fleche svg { width: 70px; height: 70px; }

/* Ce que j'apporte */
.d-apport { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.d-apport > div { border: 3px solid var(--brique); padding: 34px 34px 38px; }
.d-apport h3 { font: 600 40px/1.1 var(--titre); color: var(--anthracite); margin-bottom: 14px; }
.d-apport p { font-size: 26px; line-height: 1.45; margin: 0; }
.d-pratique { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 46px; font-size: 26px; color: var(--anthracite); }
.d-pratique li { display: flex; align-items: center; gap: 14px; }
.d-pratique svg { width: 18px; height: 24px; color: var(--rouge); }

/* Les apprentissages critiques, discrets mais présents pour le jury */
.d-ac { display: flex; flex-wrap: wrap; gap: 14px; }
.d-ac span { border: 2px solid var(--brique); color: var(--brique); font: 400 20px/1.3 var(--titre); padding: 10px 16px; max-width: 760px; }
.d-ac b { font-weight: 600; margin-right: 6px; }
.diapo.sombre .d-ac span { border-color: #6A2A30; color: #E8A0A8; }

/* Fin */
.d-fin { text-align: left; }
.d-slogan { font: 600 104px/1.08 var(--titre); color: #fff; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 60px; }
.d-contact { display: flex; align-items: center; gap: 18px; font-size: 32px; color: #fff; }
.d-contact svg { width: 40px; height: 40px; color: var(--rouge); flex: none; }
.d-contact + .d-contact { margin-top: 18px; }
.d-contact a { color: inherit; text-decoration: none; }

/* Outils de répétition, cachés par défaut */
.d-chrono { position: absolute; right: 40px; top: 30px; z-index: 6; font: 600 34px/1 var(--sous-titre); color: #fff; background: rgba(21,22,22,.85); padding: 12px 18px; }
.d-chrono.depasse { background: var(--rouge); }
.d-notes { position: absolute; left: 300px; right: 0; bottom: 0; z-index: 6; background: rgba(21,22,22,.95); color: #fff; padding: 26px 60px 30px; font-size: 27px; line-height: 1.5; }
.d-notes b { color: var(--rouge); font-weight: 600; }
.d-aide { position: fixed; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; color: #8A8B8B; font: 400 13px/1 'Poppins', sans-serif; transition: opacity .6s ease; pointer-events: none; }
.d-aide.cache { opacity: 0; }

/* Entrée des éléments à chaque écran */
@media (prefers-reduced-motion: no-preference) {
  .diapo.entre [data-anim] { animation: d-monte .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .diapo.entre .d-criteres i::after { animation: d-barre .8s cubic-bezier(.2,.7,.2,1) .35s both; }
}
@keyframes d-monte { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes d-barre { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Maisonhaute à l'essentiel : trois chiffres */
.d-tuiles.trois { grid-template-columns: repeat(3, 1fr); max-width: 1240px; }

/* Le poste : quatre missions numérotées, une par compétence qui suit */
.d-missions.quatre { grid-template-columns: repeat(var(--n, 4), 1fr); margin-bottom: 44px; }
.d-missions.quatre > div { position: relative; padding: 36px 30px 40px; }
.d-missions.quatre svg { width: 60px; height: 60px; }
.d-missions.quatre h3 { font-size: 36px; }
.d-missions.quatre p { font-size: 25px; }
.d-num { position: absolute; right: 26px; top: 30px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--rouge); color: #fff; font: 700 27px/1 var(--sous-titre); }
.d-pont { display: flex; align-items: center; gap: 18px; margin: 0; font: 500 34px/1.3 var(--titre); color: #fff; }
.d-pont svg { width: 46px; height: 46px; color: var(--rouge); flex: none; }

/* Une compétence : ce que je fais chez Lamatex, ce que ça apporte à Maisonhaute, les AC */
.diapo h2.d-titre-comp { font-size: 58px; max-width: 36ch; margin-bottom: 46px; }
.d-comp { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 70px; align-items: stretch; margin-bottom: 46px; }
.d-comp .d-etiquette { margin-bottom: 22px; }
.d-faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.d-faits li { position: relative; padding-left: 52px; font-size: 32px; line-height: 1.35; color: var(--anthracite); }
.d-faits li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 24px; height: 12px; border-left: 4px solid var(--rouge); border-bottom: 4px solid var(--rouge); transform: rotate(-45deg); }
.diapo.sombre .d-faits li { color: #E6E6E6; }
.d-pour { border: 3px solid var(--brique); padding: 34px 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.d-pour svg { width: 56px; height: 56px; color: var(--rouge); margin-bottom: 18px; }
.d-pour .d-etiquette { color: var(--rouge); margin-bottom: 12px; }
.d-pour p:last-child { margin: 0; font: 600 34px/1.3 var(--titre); color: var(--anthracite); }
.diapo.sombre .d-pour { background: #232424; border-color: var(--rouge); }
.diapo.sombre .d-pour p:last-child { color: #fff; }

/* À refaire, sur fond clair */
.diapo.clair .d-avant-apres > div:not(.d-fleche) { border-color: #DADADA; }
.diapo.clair .d-avant-apres > div:last-child { background: #FBF1F2; border-color: var(--rouge); }
.diapo.clair .d-grand { color: var(--anthracite); }

/* La fin : le slogan, la vision, le pratique */
.d-fin .d-slogan { font-size: 92px; margin-bottom: 46px; }
/* Le bas de l'écran de fin : les coordonnées à gauche, l'extrait du profil LinkedIn à droite (capture du 5 décembre 2026) */
.d-fin-bas { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 48px; align-items: start; padding-bottom: 36px; }
.d-fin-bas .d-contact { font-size: 28px; }
.d-fin-bas .d-vision { font-size: 34px; }
.d-linkedin { position: relative; display: block; border: 3px solid var(--rouge); background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.45); text-decoration: none; }
.d-linkedin img { display: block; width: 100%; height: auto; }
.d-linkedin span { position: absolute; left: -3px; bottom: -46px; display: flex; align-items: center; gap: 10px; background: var(--rouge); color: #fff; font: 600 18px/1 var(--titre); text-transform: uppercase; letter-spacing: 1px; padding: 8px 14px 8px 10px; }
.d-linkedin span svg { width: 24px; height: 24px; }
.d-vision { margin: 0 0 36px; padding-left: 26px; border-left: 6px solid var(--rouge); font: 500 38px/1.3 var(--titre); color: #fff; }
.d-vision span { display: block; margin-bottom: 10px; font: 600 20px/1 var(--titre); text-transform: uppercase; letter-spacing: 1px; color: var(--rouge); }
.diapo.sombre .d-pratique { color: #D8D8D8; }

/* À refaire : les deux cadres partagent les mêmes lignes (étiquette, titre, puis chaque point),
   pour que chaque point de droite soit en face de celui de gauche (demande du 5 décembre 2026) */
.d-avant-apres { grid-template-rows: repeat(5, auto); }
.d-avant-apres > div:not(.d-fleche) { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 5; height: auto; align-content: start; }
.d-avant-apres > div:first-child { grid-column: 1; }
.d-avant-apres > .d-fleche { grid-column: 2; grid-row: 1 / span 5; }
.d-avant-apres > div:last-child { grid-column: 3; }
.d-avant-apres ul { display: contents; }
.d-avant-apres li { margin: 0 0 8px 30px; align-self: start; }

/* Le numéro de page, sur tous les écrans (demande des professeurs, 5 décembre 2026) */
.d-page { position: absolute; left: 120px; bottom: 40px; margin: 0; font: 500 22px/1 var(--titre); letter-spacing: 1px; color: #9A9B9B; }
.d-page b { font-weight: 700; color: var(--rouge); }
.diapo.sombre .d-page { color: #8A8B8B; }

/* Le lien du portfolio en ligne (6 décembre 2026) : souligné rouge, pour qu'on voie qu'il s'ouvre */
.d-portfolio a { text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 3px; text-underline-offset: 8px; }
