/* Pages de service du site v3 : le même contenu, habillé par l'univers choisi.
   Le décor filmé est fixe derrière la page ; les panneaux défilent devant, avec de la profondeur. */

/* ---------- Les trois habillages ---------- */
:root, [data-univers='startup'] {
  --u-encre: #14231B; --u-encre-2: #44564B; --u-accent: #0B7D4F; --u-accent-vif: #13BE76;
  --u-panneau: rgba(255, 255, 255, .86); --u-panneau-plein: rgba(255, 255, 255, .93); --u-carte: rgba(255, 255, 255, .92); --u-bord: rgba(255, 255, 255, .7); --u-trait: rgba(20, 35, 27, .12);
  --u-ombre: 0 40px 90px rgba(6, 14, 30, .34), 0 4px 14px rgba(6, 14, 30, .12);
  --u-hero: #fff; --u-hero-ombre: 0 2px 28px rgba(4, 8, 22, .7);
  --u-voile: linear-gradient(98deg, rgba(5, 9, 24, .74) 0%, rgba(5, 9, 24, .46) 34%, rgba(5, 9, 24, 0) 62%), linear-gradient(to top, rgba(5, 9, 24, .5) 0%, rgba(5, 9, 24, 0) 30%);
  --u-lecture: rgba(8, 16, 12, .5);
  --u-voile-m: linear-gradient(to top, rgba(5, 9, 24, .9) 0%, rgba(5, 9, 24, .72) 44%, rgba(5, 9, 24, 0) 74%);
  --u-bouton: #13BE76; --u-bouton-texte: #06210F; --u-entete: rgba(255, 255, 255, .8); --u-entete-encre: #14231B;
}
[data-univers='plage'] {
  --u-encre: #0E2A36; --u-encre-2: #3F5A66; --u-accent: #087A82; --u-accent-vif: #F2894B;
  --u-panneau: rgba(255, 253, 248, .86); --u-panneau-plein: rgba(255, 253, 248, .93); --u-carte: rgba(255, 255, 255, .92); --u-bord: rgba(255, 255, 255, .8); --u-trait: rgba(14, 42, 54, .12);
  --u-ombre: 0 40px 90px rgba(14, 42, 54, .26), 0 4px 14px rgba(14, 42, 54, .1);
  --u-hero: #0E2A36; --u-hero-ombre: 0 1px 24px rgba(255, 250, 240, .9);
  --u-voile: linear-gradient(98deg, rgba(255, 249, 238, .88) 0%, rgba(255, 249, 238, .6) 34%, rgba(255, 249, 238, 0) 60%), linear-gradient(to top, rgba(255, 249, 238, .6) 0%, rgba(255, 249, 238, 0) 28%);
  --u-lecture: rgba(14, 42, 54, .18); --u-flou: 3px; /* voile léger : les scènes filmées restent visibles (avis de l'expert, 30/09) */
  --u-voile-m: linear-gradient(to top, rgba(255, 249, 238, .96) 0%, rgba(255, 249, 238, .84) 44%, rgba(255, 249, 238, 0) 74%);
  --u-bouton: #0E2A36; --u-bouton-texte: #fff; --u-entete: rgba(255, 253, 248, .8); --u-entete-encre: #0E2A36;
}
[data-univers='cyber'] {
  --u-encre: #F2F4FF; --u-encre-2: #B9BEDC; --u-accent: #FF7ADB; --u-accent-vif: #3DE8F5;
  --u-panneau: rgba(14, 10, 34, .8); --u-panneau-plein: rgba(14, 10, 34, .9); --u-carte: rgba(28, 20, 58, .82); --u-bord: rgba(255, 92, 210, .4); --u-trait: rgba(255, 255, 255, .14);
  --u-ombre: 0 0 0 1px rgba(61, 232, 245, .12), 0 40px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 61, 200, .16);
  --u-hero: #fff; --u-hero-ombre: 0 2px 30px rgba(0, 0, 0, .8);
  --u-voile: linear-gradient(98deg, rgba(6, 4, 18, .8) 0%, rgba(6, 4, 18, .5) 36%, rgba(6, 4, 18, 0) 64%), linear-gradient(to top, rgba(6, 4, 18, .6) 0%, rgba(6, 4, 18, 0) 30%);
  --u-lecture: rgba(6, 4, 18, .55);
  --u-voile-m: linear-gradient(to top, rgba(6, 4, 18, .92) 0%, rgba(6, 4, 18, .74) 44%, rgba(6, 4, 18, 0) 74%);
  --u-bouton: linear-gradient(100deg, #FF5BD0, #3DE8F5); --u-bouton-texte: #0B0620; --u-entete: rgba(12, 8, 30, .72); --u-entete-encre: #F2F4FF;
}

body.page { background: #0B1124; color: var(--u-encre); overflow-x: clip; } /* clip et non hidden (08/10) : hidden faisait du corps un conteneur de défilement et cassait le cadre collant de la scène 3D */
.page .entete { background: var(--u-entete); color: var(--u-entete-encre); border-bottom-color: var(--u-trait); }
.page .rdv b { background: var(--u-bouton); color: var(--u-bouton-texte); }

/* ---------- Le décor ---------- */
.fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0B1124; }
.fond__plan { position: absolute; inset: -3%; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom, 1)); transition: transform 1.2s var(--aise); will-change: transform; }
.fond__plan img, .fond__plan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transition: opacity .9s linear; }
[data-univers='plage'] [data-affiche='plage'], [data-univers='startup'] [data-affiche='startup'], [data-univers='cyber'] [data-affiche='cyber'] { opacity: 1; }
.fond__plan video.visible { opacity: 1; }
.fond__voile { position: absolute; inset: 0; background: var(--u-voile); transition: background .9s, opacity .4s ease-out; }
.fond.libre .fond__voile { opacity: 0; } /* respiration : le plan se voit sans voile */
/* Décor toujours net (Julien, 01/10 : « j'aime pas les flous ») : plus de voile ni de flou de lecture ; seul le verre dépoli du panneau protège la lisibilité du texte */
.fond__lecture { display: none; }

/* Arrivée après le saut : le blanc se retire, la caméra se pose, les bandes noires s'ouvrent */
.blanc { position: fixed; inset: 0; z-index: 65; background: #fff; opacity: 0; pointer-events: none; transition: opacity 1.1s ease-out; }
.arrivee .blanc { opacity: 1; transition: none; }
.arrivee .fond__plan { --zoom: 1.08; transition: none; }
.arrivee .hero__texte, .arrivee .hero__bas, .arrivee .defile, .arrivee .entete, .arrivee .selecteur { opacity: 0; transform: translateY(16px); }
.selecteur { transition: opacity 1s var(--aise), transform 1.2s var(--aise), background .9s, border-color .9s, visibility 0s; }
.lecture .selecteur { opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none; transition: opacity .4s, transform .5s var(--aise), visibility 0s .5s; }
.hero__texte, .hero__bas, .defile { transition: opacity 1s var(--aise), transform 1.2s var(--aise); }
.pose .fond__plan { transition: transform 3.2s cubic-bezier(.16, .7, .2, 1); }

/* ---------- Ouverture ---------- */
.hero { position: relative; z-index: 2; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--entete) + 24px) clamp(16px, 6vw, 110px) 120px; }
.hero__texte { max-width: min(680px, 52vw); color: var(--u-hero); text-shadow: var(--u-hero-ombre); }
.hero .sur { font: 700 13px/1 var(--texte); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 22px; opacity: .92; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 92px); }
.hero .sous { margin-top: 22px; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.45; max-width: 38ch; font-weight: 500; }
.hero .sous strong { display: block; margin-bottom: 6px; font-weight: 800; text-wrap: balance; } /* accroche en deux temps : la phrase forte, puis la preuve */
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; text-shadow: none; }
.hero .actions .lien { color: var(--u-hero); text-shadow: var(--u-hero-ombre); }
.bouton--u { background: var(--u-bouton); color: var(--u-bouton-texte); }
.hero__bas { position: absolute; left: clamp(16px, 6vw, 110px); right: clamp(16px, 6vw, 110px); bottom: 30px; display: flex; justify-content: space-between; align-items: end; gap: 20px; color: var(--u-hero); }
.hero__bas .mention-ia { text-shadow: var(--u-hero-ombre); max-width: 36ch; }
.defile { position: absolute; left: 50%; bottom: 34px; translate: -50% 0; font: 700 11px/1 var(--texte); letter-spacing: .3em; text-transform: uppercase; color: var(--u-hero); text-shadow: var(--u-hero-ombre); opacity: .85; }
.defile::after { content: ''; display: block; width: 1px; height: 34px; margin: 12px auto 0; background: currentColor; animation: fil 2.2s var(--aise) infinite; transform-origin: top; }
@keyframes fil { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Sélecteur d'univers */
.selecteur { position: fixed; z-index: 30; right: clamp(16px, 3vw, 44px); bottom: 24px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--u-panneau); border: 1px solid var(--u-bord); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); color: var(--u-encre); }
.selecteur span { font: 700 11px/1 var(--texte); letter-spacing: .2em; text-transform: uppercase; padding: 0 10px 0 12px; color: var(--u-encre-2); }
.selecteur button { border: 0; border-radius: 999px; padding: 10px 16px; background: transparent; font: 600 14px/1 var(--texte); color: var(--u-encre); cursor: pointer; transition: background .25s, color .25s; }
.selecteur button:hover { background: var(--u-trait); }
.selecteur button[aria-pressed='true'] { background: var(--u-encre); color: var(--u-panneau); }
[data-univers='cyber'] .selecteur button[aria-pressed='true'] { background: var(--u-bouton); color: var(--u-bouton-texte); }
[data-univers='plage'] .selecteur button[aria-pressed='true'], [data-univers='startup'] .selecteur button[aria-pressed='true'] { color: #fff; }

/* ---------- Panneaux ---------- */
.bloc { position: relative; z-index: 2; padding: clamp(28px, 6vh, 70px) clamp(16px, 6vw, 110px); perspective: 1600px; }
.panneau { max-width: 1180px; margin: 0 auto; padding: clamp(26px, 3.6vw, 60px); border-radius: 30px; color: var(--u-encre);
  background: var(--u-panneau-plein); border: 1px solid var(--u-bord); box-shadow: var(--u-ombre); /* 05/10 : plus de flou d'arrière-plan (fond un peu plus opaque, même rendu) : l'entrée en perspective d'un panneau flouté coûtait 80 à 140 ms d'affichage à une carte graphique intégrée */
  transform-origin: 50% 100%; transition: transform 1.2s var(--aise), opacity .9s ease-out, background .9s, border-color .9s, color .9s; }
.js .panneau:not(.vu) { opacity: 0; transform: rotateX(14deg) translateY(90px) scale(.95); }
.panneau .num { font: 800 15px/1 var(--titre); letter-spacing: .1em; color: var(--u-accent); margin-bottom: 14px; }
.panneau h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 52px); }
.panneau h3 { font-weight: 700; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.25; letter-spacing: -.01em; }
.chapo { margin-top: 18px; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; max-width: 62ch; }
.legende { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--u-encre-2); max-width: 90ch; }
.preuve { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--u-accent-vif); border-radius: 0 14px 14px 0; background: var(--u-carte); font-weight: 600; max-width: 70ch; }
.etiquette { font: 700 11.5px/1 var(--texte); letter-spacing: .18em; text-transform: uppercase; color: var(--u-accent); margin-bottom: 10px; }

.carte { position: relative; padding: 22px 24px; border-radius: 20px; background: var(--u-carte); border: 1px solid var(--u-trait); box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transition: transform .5s var(--aise), box-shadow .5s, background .9s; }
/* 05/10 : l'inclinaison 3D seulement au survol ; en permanence, chaque carte était une couche 3D imbriquée dans un panneau
   qui entre en perspective : son entrée retenait une image du film derrière (80 à 100 ms, bloc « Composez votre programme ») */
.carte.survol { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transform-style: preserve-3d; box-shadow: 0 26px 50px rgba(0, 0, 0, .18); transition: transform .08s linear, box-shadow .3s; }
.cartes { display: grid; gap: 16px; margin-top: 30px; }
.cartes--4 { grid-template-columns: repeat(4, 1fr); }
.cartes .carte p { margin-top: 8px; color: var(--u-encre-2); font-size: 15.5px; }
.chiffres .carte strong { display: block; font: 800 clamp(26px, 2.6vw, 42px)/1 var(--titre); letter-spacing: -.02em; color: var(--u-accent); }
.deux { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: 8px; }

/* Automatiser : la pile, la chaîne, le tableau de bord */
.pile { display: grid; gap: 0; margin-top: 30px; max-width: 520px; }
.pile .carte { font: 700 19px/1.2 var(--texte); margin-top: -10px; }
.pile .carte:nth-child(1) { --tz: 0px; rotate: -1.4deg; margin-top: 0; }
.pile .carte:nth-child(2) { rotate: 1deg; translate: 22px 0; }
.pile .carte:nth-child(3) { rotate: -.6deg; translate: 8px 0; }
.chaine { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: pas; }
.chaine li { font: 700 18px/1.2 var(--texte); display: flex; align-items: center; gap: 14px; }
.chaine li span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--u-accent); color: var(--u-panneau); font: 800 15px/1 var(--titre); }
[data-univers='plage'] .chaine li span, [data-univers='startup'] .chaine li span { color: #fff; }
.chaine li + li::before { content: ''; position: absolute; left: -34px; top: 50%; width: 34px; height: 2px; background: linear-gradient(90deg, var(--u-accent), var(--u-accent-vif)); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--aise); }
.vu .chaine li + li::before { transform: scaleX(1); }
.vu .chaine li:nth-child(2)::before { transition-delay: .5s; } .vu .chaine li:nth-child(3)::before { transition-delay: 1s; } .vu .chaine li:nth-child(4)::before { transition-delay: 1.5s; }
.tableau { padding: 22px; }
.tableau p { margin: 0; }
.tableau__tete { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--u-trait); font-weight: 700; }
.tableau__tete strong { font: 800 26px/1 var(--titre); color: var(--u-accent); }
.tableau__ligne { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--u-trait); }
.tableau__ligne i { height: 9px; border-radius: 9px; background: var(--u-trait); }
.tableau__ligne b { font: 700 12.5px/1 var(--texte); padding: 6px 10px; border-radius: 999px; color: var(--u-accent); border: 1px solid currentColor; }

/* Former : l'assistant */
.assistant { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin-top: 30px; }
.assistant ul { margin: 0 0 20px; padding-left: 20px; }
.assistant li { margin: 4px 0; }
.frappe { min-height: 3.2em; }
.frappe.ecrit::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--u-accent); animation: curseur 1s steps(2) infinite; }
@keyframes curseur { 50% { opacity: 0; } }

/* Créer : les notes et l'atelier */
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.note-papier { padding: 26px 20px 30px; min-height: 130px; border-radius: 4px 4px 18px 4px; font: 600 18px/1.3 var(--texte); color: #2A2A1C; background: #FFF3A6; box-shadow: 0 16px 30px rgba(0, 0, 0, .18); transition: transform .6s var(--aise); }
.note-papier:nth-child(1) { rotate: -2.2deg; } .note-papier:nth-child(2) { rotate: 1.6deg; background: #C9F2DF; } .note-papier:nth-child(3) { rotate: -1deg; background: #FFD7E4; } .note-papier:nth-child(4) { rotate: 2.4deg; background: #CFE6FF; }
.note-papier:hover { transform: translateY(-8px) scale(1.03); }
.atelier { margin-top: 28px; }
.atelier__mode { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--u-carte); border: 1px solid var(--u-trait); }
.atelier__mode button { border: 0; border-radius: 999px; padding: 11px 18px; background: transparent; font: 600 15px/1 var(--texte); color: var(--u-encre); cursor: pointer; }
.atelier__mode button[aria-pressed='true'] { background: var(--u-accent); color: var(--u-panneau); }
[data-univers='plage'] .atelier__mode button[aria-pressed='true'], [data-univers='startup'] .atelier__mode button[aria-pressed='true'] { color: #fff; }
.fenetre { margin-top: 18px; padding: 0; overflow: hidden; }
.fenetre__barre { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--u-trait); }
.fenetre__barre i { width: 11px; height: 11px; border-radius: 50%; background: var(--u-trait); }
.fenetre__onglets { list-style: none; margin: 0; padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--u-trait); }
.fenetre__onglets button { border: 1.5px solid var(--u-trait); border-radius: 12px; padding: 11px 18px; background: transparent; font: 700 15px/1 var(--texte); color: var(--u-encre); cursor: grab; touch-action: none; transition: transform .3s var(--aise), border-color .2s, background .2s; }
.fenetre__onglets button[aria-pressed='true'], .fenetre__onglets button.saisi { border-color: var(--u-accent); background: var(--u-trait); }
.fenetre__onglets button.saisi { cursor: grabbing; transform: scale(1.06) translateY(-3px); box-shadow: 0 14px 26px rgba(0, 0, 0, .2); }
.fenetre__page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 20px 18px 24px; }
.fenetre[data-fenetre='appli'] { display: grid; grid-template-columns: 210px 1fr; grid-template-rows: auto 1fr; }
.fenetre[data-fenetre='appli'] .fenetre__barre { grid-column: 1 / -1; }
.fenetre[data-fenetre='appli'] .fenetre__onglets { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--u-trait); }
.fenetre[data-fenetre='appli'] .fenetre__page { grid-template-columns: 1fr; }
.rubrique { padding: 16px; border-radius: 14px; border: 1px solid var(--u-trait); transition: transform .5s var(--aise); }
.rubrique b { display: block; margin-bottom: 12px; font: 700 15px/1 var(--texte); color: var(--u-accent); }
.rubrique i { display: block; height: 9px; margin-top: 8px; border-radius: 9px; background: var(--u-trait); }
.rubrique i:nth-of-type(2) { width: 78%; } .rubrique i:nth-of-type(3) { width: 56%; }


/* Former (refonte du 30/09) : étapes, socle, avant / après, programme à composer, questions */
.cartes--3 { grid-template-columns: repeat(3, 1fr); }
.cartes + .cartes { margin-top: 16px; }
.etapes { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.etapes--3 { grid-template-columns: repeat(3, 1fr); }
.etapes li { position: relative; display: grid; gap: 14px; align-content: start; } /* numéro au-dessus du texte : les intitulés gardent toute la largeur de leur colonne */
.etapes li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--u-accent); color: var(--u-panneau); font: 800 16px/1 var(--titre); }
[data-univers='plage'] .etapes li > span, [data-univers='startup'] .etapes li > span { color: #fff; }
.etapes h3 { margin-top: 2px; }
.etapes p { margin-top: 8px; font-size: 15.5px; color: var(--u-encre-2); }

/* deux colonnes qui s'écoulent (08/10, Julien) : une grille alignait les lignes sur le point le plus long et laissait un trou */
.socle { list-style: none; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 36px; }
.socle li { position: relative; padding-left: 34px; break-inside: avoid; margin-bottom: 14px; font-size: 16px; line-height: 1.45; color: var(--u-encre-2); }
.socle li b { display: block; color: var(--u-encre); font-size: 17px; }
.socle li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--u-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.avant-apres { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin-top: 32px; }
.demande { padding: 12px 14px; border-radius: 12px; background: var(--u-trait); font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.reponse { margin-top: 14px; font-size: 15.5px; line-height: 1.55; }
.avant-apres__floue { opacity: .78; }
.avant-apres__floue .etiquette { color: var(--u-encre-2); }
.avant-apres__cadree { border: 1.5px solid var(--u-accent); }
.frappe.reponse { min-height: 6.5em; }
.brouillon { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; font: 700 13px/1 var(--texte); color: var(--u-accent); border: 1px solid currentColor; }
.brouillon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.js .avant-apres__cadree:not(.fini) .brouillon { opacity: 0; transform: translateY(6px); }
.brouillon { transition: opacity .6s, transform .6s var(--aise); }
.exemple { margin-top: 16px; border-left: 3px solid var(--u-accent-vif); }
.exemple p:not(.etiquette) { max-width: 90ch; }

.compose { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(18px, 2.4vw, 34px); align-items: start; margin-top: 30px; }
.famille + .famille { margin-top: 22px; }
.famille ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brique { width: 100%; height: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 12px 12px 10px; border-radius: 14px; text-align: left; cursor: grab; user-select: none; -webkit-user-select: none;
  background: var(--u-carte); border: 1.5px solid var(--u-trait); color: var(--u-encre); transition: border-color .2s, background .2s, transform .25s var(--aise), box-shadow .25s, opacity .2s; }
.brique:hover { border-color: var(--u-accent); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.brique b { display: block; font: 700 15px/1.25 var(--texte); }
.brique small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--u-encre-2); }
.brique__prise { width: 10px; height: 18px; opacity: .45; background: radial-gradient(circle, currentColor 1.4px, transparent 1.6px) 0 0 / 5px 6px; }
.brique__signe { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--u-trait); transition: background .2s, border-color .2s; }
.brique__signe::before, .brique__signe::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--u-accent); border-radius: 2px; }
.brique__signe::after { transform: rotate(90deg); }
.brique[aria-pressed='true'] { border-color: var(--u-accent); background: var(--u-panneau); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-accent) 22%, transparent); }
.brique[aria-pressed='true'] .brique__signe { background: var(--u-accent); border-color: var(--u-accent); }
.brique[aria-pressed='true'] .brique__signe::before { width: 6px; margin: 0; left: 5px; top: 12px; transform: rotate(45deg); background: var(--u-panneau); }
.brique[aria-pressed='true'] .brique__signe::after { width: 11px; margin: 0; left: 8px; top: 10px; transform: rotate(-50deg); background: var(--u-panneau); }
[data-univers='plage'] .brique[aria-pressed='true'] .brique__signe::before, [data-univers='plage'] .brique[aria-pressed='true'] .brique__signe::after,
[data-univers='startup'] .brique[aria-pressed='true'] .brique__signe::before, [data-univers='startup'] .brique[aria-pressed='true'] .brique__signe::after { background: #fff; }
.brique.saisi { opacity: .35; }
.fantome { position: fixed; z-index: 80; left: 0; top: 0; margin: 0; pointer-events: none; width: 260px; height: auto; rotate: 2.5deg; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); cursor: grabbing; }
.compose__planning { position: sticky; top: calc(var(--entete) + 20px); padding: 22px; transition: box-shadow .25s, border-color .25s, transform .5s var(--aise); }
.compose__planning.survole { border-color: var(--u-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-accent) 25%, transparent), 0 26px 50px rgba(0, 0, 0, .18); }
.creneau, .creneaux li { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 10px 12px; border-radius: 12px; }
.creneau--socle { background: var(--u-trait); }
.creneau__quand { font: 700 11px/1.2 var(--texte); letter-spacing: .12em; text-transform: uppercase; color: var(--u-accent); }
.creneau b, .creneaux li b { font: 700 15px/1.25 var(--texte); }
.creneaux { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.creneaux li { border: 1.5px solid var(--u-trait); background: var(--u-carte); animation: pose .45s var(--aise); }
.creneaux li.vide { border-style: dashed; background: transparent; color: var(--u-encre-2); animation: none; }
.creneaux li.vide b { font-weight: 500; font-size: 14.5px; }
.creneaux li.cible { border-color: var(--u-accent); border-style: solid; }
@keyframes pose { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.creneaux button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--u-trait); background: transparent; color: var(--u-encre-2); cursor: pointer; font: 600 18px/1 var(--texte); }
.creneaux button:hover { color: var(--u-encre); border-color: var(--u-encre-2); }
.compose__total { margin-top: 16px; font-weight: 700; }
.compose__actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.compose__actions .bouton { font-size: 16px; padding: 15px 22px; }
.envoi { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--u-trait); display: grid; gap: 12px; }
.envoi[hidden] { display: none; } /* le formulaire reste fermé tant qu'on n'a pas cliqué « Parlons de ce programme » (01/10) */
.envoi__intro { font-size: 15px; color: var(--u-encre-2); }
.envoi label { display: grid; gap: 6px; font: 700 14px/1.2 var(--texte); }
.envoi label small { font-weight: 500; color: var(--u-encre-2); }
.envoi input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--u-trait); background: var(--u-carte); color: var(--u-encre); font: 500 16px/1.2 var(--texte); }
.envoi input:focus-visible { outline: none; border-color: var(--u-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u-accent) 25%, transparent); }
.envoi__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi__note { font-size: 13px; line-height: 1.45; color: var(--u-encre-2); }
.envoi__etat { font-weight: 700; }
.envoi__etat:empty { display: none; }
.envoi.envoye label, .envoi.envoye .envoi__actions, .envoi.envoye .envoi__intro { display: none; }
html:not(.js) .compose__planning { display: none; }
html:not(.js) .compose { grid-template-columns: 1fr; }

.faq { margin-top: 24px; border-top: 1px solid var(--u-trait); }
.faq details { border-bottom: 1px solid var(--u-trait); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font: 700 clamp(17px, 1.3vw, 20px)/1.3 var(--texte); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--u-accent); border-bottom: 2.5px solid var(--u-accent); transform: rotate(45deg); transition: transform .3s var(--aise), margin .3s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { padding: 0 44px 22px 0; color: var(--u-encre-2); max-width: 78ch; }

.parcours { margin-top: 12px; color: var(--u-encre-2); max-width: 72ch; }
.suivi { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--u-accent-vif); border-radius: 0 12px 12px 0; background: var(--u-carte); max-width: 72ch; }


/* ---------- Scènes filmées entre les blocs (30/09) ----------
   Une respiration = un espace libre où le voile s'efface et où le plan se joue en grand.
   Les calques des plans vivent dans le décor : même zoom, même parallaxe que la boucle de l'univers. */
.respiration { position: relative; z-index: 1; height: 75vh; pointer-events: none; }
.fond__plans { position: absolute; inset: 0; }
.fond__plans img, .fond__plans video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transition: opacity .45s linear; }
.fond__plans .visible { opacity: 1; }
.fond__plans video { transition: none; }
/* 05/10 : film continu (commun/lecteur.js) : la vidéo qui arrive par une coupe passe au-dessus de l'autre */
.fond__plans video.dessus { z-index: 1; }
.fond__plans video.fondu { transition: opacity .12s linear; } /* saut lointain : coupe adoucie de 120 ms (05/10) */
@keyframes pousse { from { transform: scale(1); } to { transform: scale(1.03); } }
/* Panneaux étroits et alternés : le sujet du plan reste visible à côté du texte */
@media (min-width: 981px) {
  .bloc--g .panneau, .bloc--d .panneau, .respiration + .bloc--fin .panneau { max-width: 760px; }
  .bloc--g .panneau, .respiration + .bloc--fin .panneau { margin-left: 0; } /* collés à gauche : l'ambassadrice se voit à droite (Julien, 30/09) */
  .bloc--d .panneau { margin-right: max(0px, calc((100% - 1180px) / 2)); }
  /* Film des formations sur la plage : l'image est décalée vers la droite pour que l'ambassadrice ne passe jamais sous les panneaux.
     Même décalage pour la boucle d'ouverture et les plans, sinon le raccord entre eux sauterait. */
  html[data-univers="plage"] body[data-service="former"] .fond__plan { inset: -2% -8% -2% -2%; } /* 01/10 : décalage réduit (agrandissement 1,29 ramené à 1,10, image plus nette) ; la parallaxe garde 2 % de marge à gauche */
  .bloc--g .etapes, .bloc--d .etapes { grid-template-columns: repeat(2, 1fr); }
  .bloc--g .etapes--3, .bloc--d .etapes--3 { grid-template-columns: 1fr; }
  .bloc--g .avant-apres, .bloc--d .avant-apres { grid-template-columns: 1fr; }
  .bloc--g .cartes--3, .bloc--d .cartes--3 { grid-template-columns: 1fr; }
  .bloc--g .chiffres, .bloc--d .chiffres { grid-template-columns: repeat(2, 1fr); }
  .bloc--g .chiffres.cartes--3, .bloc--d .chiffres.cartes--3 { grid-template-columns: repeat(3, 1fr); } /* 08/10 : trois chiffres sur une ligne */
  .bloc--g .chiffres.cartes--3 .carte { padding: 20px; }
  .bloc--g .chiffres.cartes--3 .carte strong { font-size: clamp(24px, 1.6vw, 30px); }
  /* Modules et questions resserrés à gauche eux aussi (Julien, 01/10 : aucun bloc ne cache l'ambassadrice) : modules sur une colonne, planning à côté */
  .bloc--g .compose { grid-template-columns: 1.15fr 1fr; }
  .bloc--g .famille ul { grid-template-columns: 1fr; }
  .bloc--g .creneau, .bloc--g .creneaux li { grid-template-columns: 1fr auto; }
}

/* Prix */
.prix { margin-top: 28px; border-top: 1px solid var(--u-trait); }
.prix__ligne { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--u-trait); }
.prix__ligne span { font-size: 17px; max-width: 58ch; }
.prix__ligne strong { font: 800 clamp(19px, 1.7vw, 26px)/1.1 var(--titre); letter-spacing: -.01em; color: var(--u-accent); text-align: right; }
/* Financement OPCO mis en avant (08/10, demande de Julien) */
.opco { margin-top: 30px; padding: 26px 28px; border: 1.5px solid var(--u-accent); border-left-width: 6px; }
.opco h3 { font: 800 clamp(20px, 1.8vw, 26px)/1.2 var(--titre); letter-spacing: -.01em; max-width: 34ch; }
.opco p:not(.etiquette) { margin-top: 10px; font-size: 17px; max-width: 70ch; }
.opco .opco__preuve { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--u-trait); font-weight: 600; font-size: 15.5px; color: var(--u-accent); }

/* Former : catalogue des modules (08/10, remplace le planning à composer) */
.catalogue ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.catalogue li b { display: block; font-size: 16.5px; }
.catalogue li span { display: block; margin-top: 3px; font-size: 15px; color: var(--u-encre-2); }
.duree { margin-top: 22px; font-size: 15px; color: var(--u-encre-2); }
.duree b { color: var(--u-encre); }

/* Automatiser : exemples « quand / alors » (08/10, remplace la chaîne Réception > Envoi) */
.exemples .carte p:not(.etiquette) { margin-top: 0; }
.exemples .etiquette + p { margin-bottom: 16px; }
.exemples .carte > p:last-child { margin-bottom: 0; }
.exemples .exemples__declic { font: 700 18px/1.3 var(--titre); color: var(--u-encre); }

/* Créer : deux offres côte à côte (08/10) */
.cartes--2 { grid-template-columns: repeat(2, 1fr); }
.offres .carte { padding: 26px 28px; }
.offres h3 { font: 800 clamp(21px, 1.8vw, 27px)/1.15 var(--titre); letter-spacing: -.01em; }
.offres ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.offres li { position: relative; padding-left: 22px; font-size: 16px; color: var(--u-encre-2); }
.offres li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--u-accent); }
@media (max-width: 860px) { .cartes--2 { grid-template-columns: 1fr; } }

/* Former : les trois mots d'ordre de la pédagogie (08/10) */
.mots-ordre { margin-top: 14px; font: 800 clamp(20px, 1.6vw, 28px)/1.15 var(--titre); letter-spacing: -.01em; color: var(--u-accent); }

/* Fin : Julien et le rendez-vous */
.bloc--fin { padding-bottom: clamp(60px, 12vh, 140px); }
.panneau--fin { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.panneau--fin img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.qui { font-size: clamp(18px, 1.5vw, 22px); }
.panneau--fin .actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.panneau--fin .note { font-size: 14px; color: var(--u-encre-2); }
.autre { margin-top: 16px; font-size: 15px; }
.retour { margin-top: 18px; }
.bouton--contour { background: transparent; color: var(--u-encre); box-shadow: inset 0 0 0 1.5px currentColor; font-size: 15.5px; padding: 13px 22px; }
.bouton--contour:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 10px 24px rgba(0, 0, 0, .12); }
.page .pied { position: relative; z-index: 2; }

@media (max-width: 980px) {
  .cartes--4, .notes { grid-template-columns: repeat(2, 1fr); }
  .cartes--3 { grid-template-columns: 1fr; }
  .socle { columns: 1; }
  .chaine { grid-template-columns: repeat(2, 1fr); }
  .chaine li:nth-child(3)::before { display: none; }
  .deux, .assistant, .avant-apres, .compose { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .compose__planning { position: relative; top: auto; }
  .hero__texte { max-width: none; }
}
@media (max-width: 860px) {
  .fond__plan img, .fond__plan video { object-position: 72% 50%; }
  .fond__voile { background: var(--u-voile-m); }
  .fond__plan img, .fond__plan video { object-position: 72% 0%; }
  .hero { padding-bottom: 190px; align-content: end; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .bandes.actif::before, .bandes.actif::after { height: 9vh; min-height: 0; }
  .hero__bas { flex-direction: column; align-items: start; bottom: 22px; }
  .selecteur { position: static; flex-wrap: wrap; border-radius: 20px; }
  .selecteur button { padding: 9px 12px; font-size: 13px; }
  .defile { display: none; }
  .prix__ligne { grid-template-columns: 1fr; gap: 6px; }
  .prix__ligne strong { text-align: left; }
  .panneau--fin { grid-template-columns: 1fr; }
  .fenetre[data-fenetre='appli'] { grid-template-columns: 1fr; }
  .fenetre[data-fenetre='appli'] .fenetre__onglets { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--u-trait); }
  .fenetre__page { grid-template-columns: 1fr; }
  .fond__lecture { backdrop-filter: none; }
  .respiration { height: 55vh; }
  .fond__plans img { object-position: var(--x-plan, 72%) 0%; }
  .fond__plans video { object-position: var(--x-film, var(--x-plan, 72%)) 0%; } /* film du téléphone recadré : cadrage recalculé dans la bande (05/10) */
}
@media (max-width: 560px) {
  .cartes--4, .notes, .chaine, .etapes, .etapes--3, .famille ul { grid-template-columns: 1fr; }
  .creneau, .creneaux li { grid-template-columns: 1fr auto; }
  .creneau__quand { grid-column: 1 / -1; }
  .chaine li + li::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .panneau:not(.vu) { opacity: 1; transform: none; }
  .fond__plans img.visible { animation: none; }
  .js .avant-apres__cadree .brouillon { opacity: 1; transform: none; }
  .defile::after { animation: none; }
}

/* Scène 3D calculée en direct (08/10) : un cadre collant aux couleurs EAZIA, quel que soit l'univers (décision de Julien),
   et des chapitres qui défilent par-dessus ; un seul panneau visible à la fois (classe « actif » posée par commun/3d/socle.js) */
.scene3d { position: relative; z-index: 2; padding: 0 clamp(16px, 6vw, 110px); }
.scene3d__cadre { display: none; }
.js .scene3d:not(.sans3d) .scene3d__cadre { display: block; position: sticky; top: calc(var(--entete) + 12px); height: calc(100vh - var(--entete) - 24px); height: calc(100svh - var(--entete) - 24px);
  margin-bottom: calc(-100vh + var(--entete) + 24px); margin-bottom: calc(-100svh + var(--entete) + 24px);
  border-radius: 30px; overflow: hidden; background: #F3F7FC; box-shadow: 0 30px 80px rgba(8, 20, 40, .28); }
.scene3d__toile { display: block; width: 100%; height: 100%; }
.scene3d__chapitre { position: relative; padding: clamp(28px, 6vh, 70px) 0; }
.panneau-3d { max-width: 440px; padding: 28px 30px; border-radius: 22px; color: #0F1B33; background: rgba(255, 253, 248, .93); box-shadow: 0 18px 40px rgba(14, 42, 54, .12); }
.panneau-3d .num { display: flex; justify-content: space-between; font: 800 13px/1 var(--titre); letter-spacing: .1em; color: #1668E3; }
.panneau-3d .num span { color: #44526B; font-weight: 700; letter-spacing: .04em; }
.panneau-3d h2 { margin-top: 12px; font-weight: 800; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.06; }
.panneau-3d p:not(.num) { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #44526B; }
.degrade { background: linear-gradient(95deg, #11C06F 0%, #0BB6C2 45%, #1E72E6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* scène active : chaque chapitre dure un écran et demi, son panneau reste posé dans le cadre, à gauche (en bas au téléphone) */
.scene3d.anime .scene3d__chapitre { min-height: 150vh; padding: 0 clamp(20px, 3vw, 44px); }
.scene3d.anime .panneau-3d { position: sticky; top: calc(50vh - 120px); }
.scene3d.anime .scene3d__chapitre:first-of-type { padding-top: 30vh; }
/* mouvement réduit : l'image finale, fixe, en tête de bloc ; les quatre panneaux se lisent dessous, sans rien superposer */
.js .scene3d.pret:not(.anime) .scene3d__cadre { position: relative; top: 0; height: 70vh; margin-bottom: 24px; }
.scene3d.pret:not(.anime) .scene3d__chapitre { padding: 0 0 18px; }
.scene3d.anime .panneau-3d { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.scene3d.anime .scene3d__chapitre.actif .panneau-3d { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .scene3d { padding: 0 10px; }
  .scene3d.pret .scene3d__chapitre { padding-left: 10px; padding-right: 10px; }
  .scene3d.anime .panneau-3d { top: auto; top: calc(100svh - 250px); }
  .panneau-3d { max-width: none; padding: 20px 22px; }
  .panneau-3d p:not(.num) { font-size: 16px; }
}
.scene3d-visible .grain { opacity: 0; animation-play-state: paused; } /* opacité et non display : pas de recalcul de la page à la sortie de la scène (expert, 08/10) */
