/* Institut Qalâmi — feuille de style unique
   Noir profond, or et beige de l'ancien site, ruban d'or animé. */

@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Amiri";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/amiri-arabic.woff2") format("woff2");
}
@font-face {
  font-family: "Amiri";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/amiri-bold-arabic.woff2") format("woff2");
}

:root {
  --noir: #000000;
  --blanc: #ffffff;
  --beige: #f3efdb;
  /* thème clair (le corps du site) */
  --fond: #f6f1e3;                         /* crème */
  --surface: #fffdf6;                      /* cartes */
  --titre: #17130a;
  --texte: rgba(23, 19, 10, 0.82);
  --texte-faible: rgba(23, 19, 10, 0.58);
  --ligne: rgba(138, 106, 28, 0.26);       /* filets bronze */
  --voile: rgba(255, 253, 246, 0.75);
  --carte: linear-gradient(180deg, rgba(255, 253, 246, 0.9), rgba(255, 253, 246, 0.6));
  --or: #e5bf27;                           /* or des fonds et filets (ancien site) */
  --or-texte: #8a6a1c;                     /* or lisible en texte et icônes sur fond clair */
  --or-clair: #eed973;
  --or-sombre: #b8912e;
  --bronze: #8a6a1c;
  --encre: #0c0a04;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --arabe: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  --largeur: 80rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --rayon: 1.25rem;
}
/* thème sombre : héros, pied de page, citation, menu mobile, bloc contact, bandeau, cartes mises en avant */
.nav, .heros, .pied, .citation, .menu-mobile, .contact-bloc, .bande, .editeur,
.tarif--phare, .offre--phare, .prix__carte--phare, .formule--phare {
  --fond: #000000;
  --surface: #0c0a04;
  --titre: #f6f1df;
  --texte: rgba(243, 239, 219, 0.82);
  --texte-faible: rgba(243, 239, 219, 0.55);
  --ligne: rgba(229, 191, 39, 0.2);
  --voile: rgba(243, 239, 219, 0.04);
  --carte: linear-gradient(180deg, rgba(243, 239, 219, 0.05), rgba(243, 239, 219, 0.015)), rgba(0, 0, 0, 0.55);
  --or-texte: #e5bf27;
  color: var(--texte); /* la couleur héritée du corps est déjà calculée : on la redonne ici */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--titre); font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 30; letter-spacing: -0.01em; margin: 0; }
h3, h4 { font-variation-settings: "opsz" 36, "SOFT" 30; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; border-radius: 2px; }

.cadre { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

.arabe { font-family: var(--arabe); direction: rtl; unicode-bidi: isolate; font-weight: 400; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--noir); color: #f6f1df;
  border: 1px solid rgba(229, 191, 39, 0.45);
  font-size: 0.95rem; font-weight: 500; line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bouton:hover { background: #141104; border-color: var(--or-texte); }
.bouton svg { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
.bouton:hover svg { transform: translateX(3px); }
.bouton--or { background: var(--or); color: #1a1405; border-color: var(--or-texte); }
.bouton--or:hover { background: var(--or-clair); border-color: var(--or-clair); }
.bouton--clair { background: var(--beige); color: #1a1405; border-color: var(--beige); }
.bouton--clair:hover { background: var(--or-clair); border-color: var(--or-clair); }
@media (min-width: 768px) { .bouton { padding: 1rem 2rem; font-size: 1rem; } }

.lien { color: var(--titre); border-bottom: 1px solid var(--or-texte); padding-bottom: 1px; transition: border-color 0.2s; }
.lien:hover { border-color: var(--or-texte); }

/* ---------- Barre de navigation ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  padding-top: 1.1rem;
}
.nav__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--titre); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo img { width: 44px; height: 44px; }
.nav__liens {
  display: none; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.5rem 0.35rem 1.1rem;
  border: 1px solid rgba(229, 191, 39, 0.3); border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav__liens a { font-size: 0.875rem; color: var(--texte); padding: 0.45rem 0.7rem; border-radius: 999px; transition: color 0.2s; white-space: nowrap; }
.nav__liens a:hover, .nav__liens a[aria-current="page"] { color: var(--or-clair); }
.nav__liens a.nav__contact { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--titre); }
.nav__liens a.nav__contact svg { width: 0.95rem; height: 0.95rem; transition: transform 0.25s ease; }
.nav__liens a.nav__contact:hover svg { transform: translateX(3px); }
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(229, 191, 39, 0.3); background: rgba(0, 0, 0, 0.45);
  color: var(--titre); cursor: pointer;
}
.nav__burger svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .nav__liens { display: inline-flex; } .nav .nav__burger { display: none; } }

.menu-mobile {
  position: fixed; inset: 0; z-index: 40;
  background: var(--noir);
  display: none; flex-direction: column; justify-content: center;
  padding: var(--gouttiere);
}
.menu-mobile[data-ouvert="true"] { display: flex; }
.menu-mobile a { font-size: clamp(1.75rem, 7vw, 2.5rem); color: var(--titre); font-weight: 500; letter-spacing: -0.02em; padding: 0.35em 0; line-height: 1.1; border-bottom: 1px solid var(--ligne); }
.menu-mobile a:last-of-type { border-bottom: 0; }
.menu-mobile__fermer { position: absolute; top: 1.1rem; right: var(--gouttiere); }

/* ---------- Héros ---------- */
.heros {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 6.5rem; padding-bottom: 3rem;
  background: var(--noir);
}
.heros--court { min-height: 70svh; padding-bottom: 2rem; }
.ruban { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ruban canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ruban__glow { filter: blur(40px); opacity: 0.85; transform: scale(1.08); }
.ruban__voile {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55)),
    radial-gradient(ellipse 70% 70% at 55% 55%, transparent 35%, rgba(0, 0, 0, 0.6) 100%);
}
/* La plume : le filet d'or trace le calame puis le tour de la vane, l'or remplit la forme,
   puis la plume flotte doucement. Sur l'accueil, son bec se pose au bout du titre. */
.heros__titre-bloc { position: relative; display: inline-block; align-self: flex-start; max-width: 100%; }
.heros__plume {
  position: absolute; z-index: -1; pointer-events: none; width: auto;
  transform-origin: 24% 94%;
}
.heros__titre-bloc .heros__plume { left: calc(100% - 0.55em); bottom: -0.18em; height: 2.6em; font-size: clamp(2.6rem, 12vw, 9.25rem); }
.heros--court .heros__plume { right: clamp(0.5rem, 4vw, 5rem); top: 9vh; height: 58vh; }
@media (max-width: 1100px) { .heros--court .heros__plume { height: 42vh; top: 8vh; right: 1rem; } }
.heros__plume-trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 0.2s; }
.heros__plume-corps { opacity: 0; animation: apparaitre 0.9s ease-out forwards; animation-delay: 1.5s; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }
@media (max-width: 720px) {
  .heros__titre-bloc .heros__plume { left: auto; right: 0; bottom: auto; top: -3.6em; height: 3em; }
  .heros .heros__annonce { max-width: 66%; } /* la citation passe à gauche de la plume */
  .heros--court .heros__plume { top: 9vh; height: 30vh; right: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .heros__plume-trace { animation: none; stroke-dashoffset: 0; }
  .heros__plume-corps { animation: none; opacity: 1; }
}

.heros__haut { display: grid; gap: 1rem; font-size: 0.9375rem; max-width: 34rem; }
.heros__haut p { margin: 0; }
@media (min-width: 1024px) {
  .heros__haut { grid-template-columns: 1fr 1fr; max-width: none; font-size: 1rem; }
  .heros__haut p:last-child { text-align: right; }
  .heros__haut p:first-child { max-width: 34rem; }
}
.heros__centre { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 3rem; padding-bottom: 2rem; }
.heros__annonce { font-size: 0.8125rem; letter-spacing: 0.01em; margin: 0 0 1.25rem; max-width: 40rem; color: var(--texte); }
.heros__annonce cite { font-style: normal; color: var(--texte-faible); }
.heros__titre {
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  line-height: 0.92; letter-spacing: -0.02em; font-weight: 400;
  color: var(--titre);
  margin: 0 0 2rem;
  max-width: 14ch;
}
.heros__titre span { display: block; }
.brille {
  color: transparent;
  background-image: linear-gradient(100deg, var(--or) 0%, var(--or) 38%, var(--beige) 50%, var(--or) 62%, var(--or) 100%);
  background-image: linear-gradient(100deg, var(--or-clair), var(--or) 60%, var(--or-sombre));
  -webkit-background-clip: text; background-clip: text;
  padding-bottom: 0.08em; /* évite que les descendantes soient rognées */
  margin-bottom: -0.08em;
}
.heros__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.heros__actions .lien { font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) {
  .bouton svg, .nav__contact svg { transition: none; }
}

/* En-tête des pages intérieures */
.heros--court .heros__titre { font-size: clamp(2.6rem, 8.5vw, 6.5rem); max-width: 16ch; }
.heros__sous { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38rem; color: var(--texte); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--ligne); }
.section--sans-ligne { border-top: 0; }
.section__tete { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .section__tete { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 3rem; } }
.section__titre { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.015em; max-width: 16ch; }
.section__intro { font-size: 1.0625rem; color: var(--texte); max-width: 34rem; margin: 0; }
@media (min-width: 900px) { .section__intro { font-size: 1.125rem; } }

/* Trio famille : mots arabes en grand */
.famille { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 720px) { .famille { grid-template-columns: repeat(3, 1fr); } }
.famille__item { background: var(--surface); padding: 2.25rem 1.75rem 2rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 16rem; }
.famille__item .arabe { font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; color: var(--or-texte); text-shadow: 0 0 40px rgba(229, 191, 39, 0.25); margin: 0 0 auto; text-align: right; }
.famille__item h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.famille__item p { margin: 0; color: var(--texte-faible); font-size: 0.95rem; }

/* Programmes : rangée de manuels */
.programmes { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 640px) { .programmes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .programmes { grid-template-columns: repeat(5, 1fr); gap: 2rem 1.25rem; } }
.programme { display: flex; flex-direction: column; gap: 1rem; }
.programme__visuel {
  aspect-ratio: 1 / 1; border-radius: var(--rayon);
  background: radial-gradient(circle at 50% 40%, rgba(229, 191, 39, 0.22), var(--surface) 70%);
  border: 1px solid var(--ligne);
  display: grid; place-items: center; padding: 12%;
}
.programme__visuel img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28)); }
.programme h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.25; }
.programme p { margin: 0; font-size: 0.925rem; color: var(--texte-faible); }

.autres { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1024px) { .autres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.autres__item { background: var(--surface); padding: 1.75rem; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.autres__item img { width: 64px; height: 64px; object-fit: contain; }
.autres__item h3 { font-size: 1.15rem; margin-bottom: 0.35rem; letter-spacing: -0.015em; }
.autres__item p { margin: 0; font-size: 0.95rem; color: var(--texte-faible); }

/* Citation */
.citation { position: relative; text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; background: var(--noir); color: var(--texte); }
.citation__plume { width: 3.5rem; height: 3.5rem; margin: 0 auto 1.5rem; }
.citation .arabe { font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1.5; color: var(--or); margin: 0 auto 1.5rem; max-width: 20ch; }
.citation p { max-width: 40rem; margin: 0 auto; font-size: 1.125rem; color: var(--texte); }
.citation cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.9rem; color: var(--texte-faible); }
.citation + .section { border-top: 0; }

/* Tarifs */
.tarifs { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 720px) { .tarifs { grid-template-columns: repeat(3, 1fr); } }
.tarif { background: var(--surface); padding: 2.25rem 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tarif h3 { font-size: 1.05rem; color: var(--texte); font-weight: 500; }
.tarif p { margin: 0.5rem 0 0; color: var(--texte-faible); font-size: 0.95rem; }
.tarif .tarif__prix { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--titre); font-weight: 500; margin: 0.25rem 0 0; }
.tarif__prix small { font-size: 0.35em; letter-spacing: 0; color: var(--texte-faible); margin-left: 0.25em; font-weight: 400; }
.tarif--phare { background: linear-gradient(160deg, rgba(229, 191, 39, 0.18), rgba(243, 239, 219, 0.05)), var(--encre); }
.tarifs__note { margin: 1.5rem 0 0; color: var(--texte-faible); font-size: 0.95rem; max-width: 48rem; }

/* Deux blocs côte à côte (accompagnement / informatique) */
.duo { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.carte {
  border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1.25rem; background: var(--carte);
}
.carte--encre { background: radial-gradient(circle at 15% 0%, rgba(184, 145, 46, 0.22), transparent 60%), var(--surface); }
.carte--or { background: radial-gradient(circle at 85% 0%, rgba(229, 191, 39, 0.22), transparent 60%), var(--surface); }
.carte h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; }
.carte p { margin: 0; }
.carte ul { display: grid; gap: 0.5rem; color: var(--texte); }
.carte li { padding-left: 1.4rem; position: relative; }
.carte li::before { content: ""; position: absolute; left: -0.1rem; top: 0.3em; width: 1rem; height: 1rem; background: url("../img/plume-pleine.svg") no-repeat center / contain; }
.carte .bouton { align-self: flex-start; margin-top: auto; }
.carte__ar { font-size: 4rem; line-height: 1; color: var(--or-texte); opacity: 0.9; }

/* Contact */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.coordonnees { display: grid; gap: 1.25rem; align-content: start; }
.coordonnees > a, .coordonnees > div { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 1px solid var(--ligne); border-radius: var(--rayon); transition: border-color 0.2s, background 0.2s; }
.coordonnees > a:hover { border-color: rgba(229, 191, 39, 0.55); background: var(--voile); }
.coordonnees svg { width: 26px; height: 26px; justify-self: center; }
.coordonnees strong { display: block; color: var(--titre); font-weight: 500; }
.coordonnees span { color: var(--texte-faible); font-size: 0.95rem; }

.formulaire { display: grid; gap: 1rem; }
.formulaire label { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--texte); }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%; font: inherit; color: var(--titre);
  background: var(--voile); border: 1px solid var(--ligne); border-radius: 0.9rem;
  padding: 0.85rem 1rem; transition: border-color 0.2s;
}
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { outline: none; border-color: var(--or-texte); }
.formulaire textarea { min-height: 8rem; resize: vertical; }
.formulaire__deux { display: grid; gap: 1rem; }
@media (min-width: 600px) { .formulaire__deux { grid-template-columns: 1fr 1fr; } }
.formulaire__note { font-size: 0.85rem; color: var(--texte-faible); margin: 0; }
.formulaire__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Pages intérieures : texte long */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.08; margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; letter-spacing: -0.015em; }
.prose ul { display: grid; gap: 0.4rem; margin: 0 0 1.25rem; }
.prose li { padding-left: 1.4rem; position: relative; }
.prose li::before { content: ""; position: absolute; left: -0.1rem; top: 0.3em; width: 1rem; height: 1rem; background: url("../img/plume-pleine.svg") no-repeat center / contain; }
.prose strong { color: var(--titre); font-weight: 500; }
.prose p { color: var(--texte); }

.deux-colonnes { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .deux-colonnes { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.encart { display: grid; gap: 1rem; }
.encart--colle { position: sticky; top: 2rem; }

.points { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--rayon); overflow: hidden; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .points { grid-template-columns: repeat(4, 1fr); } }
.point { background: var(--surface); padding: 1.75rem 1.5rem; }
.point h3 { font-size: 1.1rem; margin-bottom: 0.4rem; letter-spacing: -0.015em; }
.point p { margin: 0; color: var(--texte-faible); font-size: 0.95rem; }

.offres { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .offres { grid-template-columns: 1fr 1fr; } }
.offre { border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(1.75rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; background: var(--carte); }
.offre--phare { background: linear-gradient(160deg, rgba(229, 191, 39, 0.18), rgba(243, 239, 219, 0.05)), var(--encre); }
.offre h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.offre__prix { font-size: clamp(2.75rem, 5vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; color: var(--titre); font-weight: 500; }
.offre__detail { color: var(--texte); margin: 0; }
.offre ul { display: grid; gap: 0.5rem; color: var(--texte); }
.offre li { padding-left: 1.4rem; position: relative; font-size: 0.975rem; }
.offre li::before { content: ""; position: absolute; left: -0.1rem; top: 0.3em; width: 1rem; height: 1rem; background: url("../img/plume-pleine.svg") no-repeat center / contain; }
.offre .bouton { align-self: flex-start; margin-top: auto; }

.code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem; line-height: 1.7; color: var(--texte);
  background: rgba(229, 191, 39, 0.06); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 1.5rem 1.75rem; margin: 0; white-space: pre; overflow-x: auto;
}
.code b { color: var(--or-texte); font-weight: 500; }
.code i { color: var(--texte-faible); font-style: normal; }

/* Pied de page */
.pied { position: relative; overflow: hidden; border-top: 1px solid var(--ligne); background: var(--noir); padding: 3.5rem 0 2.5rem; font-size: 0.925rem; color: var(--texte-faible); }
.pied__plume { position: absolute; right: -1rem; bottom: -2rem; height: 115%; width: auto; opacity: 0.28; pointer-events: none; }
.pied .cadre { position: relative; }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 720px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h4 { font-size: 0.925rem; margin-bottom: 0.75rem; }
.pied ul { display: grid; gap: 0.4rem; }
.pied a:hover { color: var(--or-clair); }
.pied__bas { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.pied .logo { margin-bottom: 1rem; }
.pied .arabe { color: var(--or-texte); font-size: 1.6rem; line-height: 1; }

/* ==================== Pages de vente : icônes, tarifs, grilles, étapes, bandeau ==================== */

/* Icônes en filet d'or */
.ico { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--petit { width: 1rem; height: 1rem; }
.icone-ronde {
  width: 4.25rem; height: 4.25rem; border-radius: 50%; display: grid; place-items: center; color: var(--or-texte);
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(229, 191, 39, 0.8), rgba(229, 191, 39, 0.15)) border-box;
}
.icone-ronde .ico { width: 2.1rem; height: 2.1rem; }

/* Bordure dégradée (carte mise en avant) */
.bord-or {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(160deg, rgba(229, 191, 39, 0.85), rgba(243, 239, 219, 0.45) 60%, rgba(229, 191, 39, 0.35)) border-box;
}

/* Tarifs : trois formules */
.prix { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .prix { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.prix__carte {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 2rem 1.75rem 1.75rem; border-radius: 1.5rem;
  border: 1px solid var(--ligne);
  background: var(--carte);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.prix__carte::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(circle at 50% -10%, rgba(229, 191, 39, 0.24), transparent 55%);
}
.prix__carte:hover { transform: translateY(-4px); border-color: rgba(229, 191, 39, 0.55); }
.prix__carte:hover::before { opacity: 1; }
.prix__carte--phare {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(22, 18, 8, 1), rgba(0, 0, 0, 1)) padding-box, linear-gradient(160deg, rgba(229, 191, 39, 0.9), rgba(243, 239, 219, 0.5) 60%, rgba(229, 191, 39, 0.4)) border-box;
}
.prix__carte--phare::before { opacity: 0.7; }
.prix__icone {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--or-texte);
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(229, 191, 39, 0.85), rgba(229, 191, 39, 0.12)) border-box;
  box-shadow: 0 0 0 6px rgba(229, 191, 39, 0.07);
}
.prix__icone .ico { width: 2.3rem; height: 2.3rem; }
.prix__carte h3 { font-size: 1.05rem; color: var(--texte); font-weight: 500; letter-spacing: 0.01em; margin-top: 0.25rem; }
.prix__carte .prix__montant { font-size: clamp(2.9rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--titre); font-weight: 500; margin: 0; }
.prix__montant small { font-size: 0.34em; letter-spacing: 0; color: var(--texte-faible); margin-left: 0.3em; font-weight: 400; }
.prix__carte .prix__texte { margin: 0; color: var(--texte-faible); font-size: 0.95rem; min-height: 3em; }
.prix__points { display: grid; gap: 0.5rem; margin: 0.25rem 0 0.75rem; }
.prix__points li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; color: var(--texte); }
.prix__points li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--or-texte); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3 3 7-7'/%3E%3C/svg%3E") no-repeat center / 62%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3 3 7-7'/%3E%3C/svg%3E") no-repeat center / 62%; }
.prix__carte .bouton { margin-top: auto; align-self: flex-start; }
.prix__note { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1.5rem 0 0; color: var(--texte-faible); font-size: 0.95rem; max-width: 52rem; }
.prix__note .ico { color: var(--or-texte); margin-top: 0.2em; }

/* Grilles de cartes avec icône (comprendre, effets, volets, programme) */
.grille { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } .grille--4 { grid-template-columns: repeat(4, 1fr); } }
.bloc {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.75rem; border-radius: 1.5rem; border: 1px solid var(--ligne);
  background: var(--carte);
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.bloc:hover { border-color: rgba(229, 191, 39, 0.5); }
.bloc h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
.bloc p { margin: 0; color: var(--texte-faible); font-size: 0.95rem; }
.bloc ul { display: grid; gap: 0.45rem; }
.bloc li { position: relative; padding-left: 1.3rem; font-size: 0.95rem; color: var(--texte); }
.bloc li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 0.9rem; height: 0.9rem; background: url("../img/plume-pleine.svg") no-repeat center / contain; }
.bloc strong { color: var(--titre); font-weight: 500; }
.bloc--chiffre .bloc__chiffre { font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--or-texte); font-weight: 500; }
.bloc details { margin-top: 0.25rem; }
.bloc summary { cursor: pointer; color: var(--or-texte); font-size: 0.92rem; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.bloc summary::-webkit-details-marker { display: none; }
.bloc summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s ease; }
.bloc details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.bloc details > *:not(summary) { margin-top: 0.75rem; }

/* Étapes : une vraie séquence, numérotée */
.etapes { display: grid; gap: 1.25rem; counter-reset: etape; position: relative; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); } .etapes--3 { grid-template-columns: repeat(3, 1fr); } }
.etape { position: relative; padding: 1.5rem 0 0; counter-increment: etape; }
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  color: var(--or-texte); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid rgba(229, 191, 39, 0.6); background: rgba(229, 191, 39, 0.1);
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .etape::after { content: ""; position: absolute; left: 3.2rem; right: -1.25rem; top: calc(1.5rem + 1.3rem); height: 1px; background: linear-gradient(90deg, rgba(229, 191, 39, 0.6), rgba(229, 191, 39, 0.08)); }
  .etape:last-child::after { display: none; }
}
.etape h3 { font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.etape p { margin: 0; color: var(--texte-faible); font-size: 0.95rem; }

/* Deux formules (accompagnement) */
.formules { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .formules { grid-template-columns: 1fr 1fr; } }
.formule {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem); border-radius: 1.75rem; border: 1px solid var(--ligne);
  background: var(--carte);
}
.formule--phare {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(22, 18, 8, 1), rgba(0, 0, 0, 1)) padding-box, linear-gradient(160deg, rgba(229, 191, 39, 0.9), rgba(243, 239, 219, 0.5) 60%, rgba(229, 191, 39, 0.4)) border-box;
}
.formule--phare::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% -10%, rgba(229, 191, 39, 0.22), transparent 50%); }
.formule__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.formule h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.formule__duree { color: var(--texte-faible); font-size: 0.9rem; margin: 0.2rem 0 0; }
.formule__prix { font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; color: var(--titre); font-weight: 500; margin: 0; }
.formule__prix small { display: block; font-size: 0.85rem; letter-spacing: 0; color: var(--texte-faible); font-weight: 400; margin-top: 0.5rem; }
.formule ul { display: grid; gap: 0.55rem; margin: 0.5rem 0; }
.formule li { position: relative; padding-left: 1.7rem; font-size: 0.975rem; color: var(--texte); }
.formule li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--or-texte); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3 3 7-7'/%3E%3C/svg%3E") no-repeat center / 62%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3 3 7-7'/%3E%3C/svg%3E") no-repeat center / 62%; }
.formule .bouton { margin-top: auto; align-self: flex-start; }
.formule__badge { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--or-texte); border: 1px solid rgba(229, 191, 39, 0.5); border-radius: 999px; padding: 0.3rem 0.7rem; white-space: nowrap; }

/* Bandeau d'appel final */
.bande {
  position: relative; overflow: hidden; border-radius: 1.75rem; padding: clamp(2.25rem, 5vw, 4rem);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(22, 18, 8, 1), rgba(8, 6, 2, 1)) padding-box, linear-gradient(135deg, rgba(229, 191, 39, 0.75), rgba(243, 239, 219, 0.45)) border-box;
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 900px) { .bande { grid-template-columns: minmax(0, 1fr) auto; } }
.bande::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 0%, rgba(229, 191, 39, 0.2), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(184, 145, 46, 0.3), transparent 55%); }
.bande > * { position: relative; }
.bande h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 0.5rem; }
.bande p { margin: 0; color: var(--texte); max-width: 36rem; }
.bande .bouton { justify-self: start; }

/* Chapeau de section : numéro discret + titre */
.section__tete--centre { text-align: center; justify-items: center; grid-template-columns: 1fr; }
.section__tete--centre .section__titre, .section__tete--centre .section__intro { margin-left: auto; margin-right: auto; }

/* Apparition au défilement (grilles seulement) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .prix__carte, .bloc { transition: none; } .prix__carte:hover { transform: none; } }

/* ==================== Bloc contact : bordure lumineuse qui tourne, aurore, halo, projecteur ==================== */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.contact-bloc {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 2rem; padding: clamp(2rem, 5vw, 4rem);
  background: #080602;
  display: grid; gap: 2.5rem; align-items: center;
  --mx: 50%; --my: 50%;
}
@media (min-width: 960px) { .contact-bloc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
/* bordure : un arc de lumière or → bleu qui fait le tour */
.contact-bloc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: linear-gradient(160deg, rgba(229, 191, 39, 0.75), rgba(229, 191, 39, 0.2) 50%, rgba(229, 191, 39, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* projecteur qui suit la souris */
.contact-bloc::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(229, 191, 39, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.5s ease;
}
.contact-bloc:hover::after { opacity: 0; }
/* aurore : trois nappes floues qui dérivent */
.contact-bloc__aurore { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: 0.85; }
.contact-bloc__aurore span { position: absolute; border-radius: 50%; }
.contact-bloc__aurore span:nth-child(1) { width: 55%; height: 70%; left: -10%; top: -10%; background: radial-gradient(circle, rgba(229, 191, 39, 0.3), transparent 65%); }
.contact-bloc__aurore span:nth-child(2) { width: 60%; height: 80%; right: -15%; bottom: -25%; background: radial-gradient(circle, rgba(184, 145, 46, 0.35), transparent 65%); }

.contact-bloc__contenu { position: relative; z-index: 2; display: grid; gap: 1.25rem; justify-items: start; }
.contact-bloc__sur { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 0.85rem; color: var(--texte); padding: 0.4rem 0.9rem 0.4rem 0.6rem; border-radius: 999px; border: 1px solid rgba(229, 191, 39, 0.3); background: rgba(0, 0, 0, 0.35); }
.contact-bloc__point { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #4ade80; }
.contact-bloc__titre { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0; }
.contact-bloc__texte { margin: 0; color: var(--texte); max-width: 30rem; }

/* le grand bouton WhatsApp, avec son halo qui respire */
.contact-bloc__wa {
  position: relative; display: inline-flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem 1rem 1.25rem; border-radius: 999px; margin-top: 0.5rem;
  color: #1a1405; background: linear-gradient(135deg, #f7ea9c, #e5bf27 55%, #c9a21c);
  box-shadow: 0 10px 40px rgba(229, 191, 39, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-bloc__wa:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(229, 191, 39, 0.42); }
.contact-bloc__wa .ico { width: 2rem; height: 2rem; }
.contact-bloc__wa-texte { display: grid; line-height: 1.15; }
.contact-bloc__wa-texte strong { font-weight: 500; font-size: 1.05rem; }
.contact-bloc__wa-texte span { font-size: 0.9rem; opacity: 0.8; }
.contact-bloc__wa-fleche { margin-left: 0.25rem; transition: transform 0.3s ease; }
.contact-bloc__wa:hover .contact-bloc__wa-fleche { transform: translateX(4px); }
.contact-bloc__halo { display: none; }

/* les autres canaux */
.contact-bloc__liens { display: grid; gap: 0.6rem; width: 100%; max-width: 30rem; margin-top: 0.5rem; }
.contact-bloc__liens a {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.9rem;
  padding: 0.7rem 0.9rem; border-radius: 1rem; border: 1px solid rgba(229, 191, 39, 0.18);
  background: rgba(0, 0, 0, 0.35); transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.contact-bloc__liens a:hover { border-color: rgba(229, 191, 39, 0.6); background: rgba(229, 191, 39, 0.06); transform: translateX(4px); }
.contact-bloc__liens strong { display: block; color: var(--titre); font-weight: 500; font-size: 0.95rem; }
.contact-bloc__liens small { color: var(--texte-faible); font-size: 0.85rem; }
.contact-bloc__medaillon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; color: var(--or-texte); border: 1px solid rgba(229, 191, 39, 0.35); background: rgba(229, 191, 39, 0.06); transition: transform 0.3s ease, background 0.3s ease; }
.contact-bloc__liens a:hover .contact-bloc__medaillon { transform: scale(1.1); background: rgba(229, 191, 39, 0.14); }

/* le visuel : « écris-nous » en calligraphie, la plume en filet */
.contact-bloc__visuel { position: relative; z-index: 2; min-height: 16rem; display: grid; place-items: center; }
.contact-bloc__arabe { font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: var(--or-texte); margin: 0; text-shadow: 0 0 40px rgba(229, 191, 39, 0.3); }
.contact-bloc__plume { position: absolute; right: -6%; bottom: -14%; height: 120%; width: auto; opacity: 0.35; pointer-events: none; }
@media (max-width: 959px) { .contact-bloc__visuel { min-height: 11rem; } .contact-bloc__plume { height: 100%; right: -10%; bottom: -10%; } }
@media (prefers-reduced-motion: reduce) {
  .contact-bloc::before, .contact-bloc__aurore span, .contact-bloc__point, .contact-bloc__halo, .contact-bloc__arabe, .contact-bloc__plume { animation: none; }
  .contact-bloc__halo { display: none; }
}

/* ==================== Formation Architecture & Design : le plan d'architecte ====================
   Le héros a une trame de papier millimétré ; à droite, un plan d'appartement se trace en filet
   d'or (murs, cloisons, portes, meubles, cotations), les pièces se teintent, puis un niveau laser
   balaie le plan. Dans les cours pratiques : un cube en fil de fer qui tourne (3D) et un reflet
   qui passe sur l'icône de rendu. */
.heros--plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(229, 191, 39, 0.09) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(229, 191, 39, 0.09) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: radial-gradient(ellipse 60% 75% at 72% 50%, #000 20%, transparent 72%);
  mask: radial-gradient(ellipse 60% 75% at 72% 50%, #000 20%, transparent 72%);
}
.heros__plan-zone { position: absolute; z-index: -1; pointer-events: none; right: clamp(0.5rem, 5vw, 6rem); top: 13vh; width: min(44vw, 79vh); aspect-ratio: 580 / 440; overflow: hidden; }
.heros__plan { width: 100%; height: 100%; display: block; overflow: visible; }
.heros__plan * { fill: none; stroke: var(--or); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.heros__plan .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: calc(0.3s + var(--d, 0) * 1s); }
.heros__plan .mur { stroke-width: 4; }
.heros__plan .cloison { stroke-width: 2.5; }
.heros__plan .porte { stroke-width: 1.2; opacity: 0.85; }
.heros__plan .fenetre { stroke-width: 1; opacity: 0.7; }
.heros__plan .meuble { stroke-width: 1.1; opacity: 0.8; }
.heros__plan .cote { stroke-width: 0.9; opacity: 0.55; }
.heros__plan text { fill: var(--or-texte); stroke: none; font: 500 11px var(--sans); letter-spacing: 0.06em; opacity: 0; animation: apparaitre 0.9s ease forwards; animation-delay: 3.2s; }
.heros__plan text.piece { font-size: 10px; opacity: 0; fill: rgba(238, 217, 115, 0.7); animation-delay: 3.5s; }
.heros__plan .nappe { fill: rgba(229, 191, 39, 0.05); stroke: none; opacity: 0; animation: apparaitre 1.2s ease forwards; animation-delay: 3s; }
.heros__laser {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(238, 217, 115, 0.9) 30%, rgba(238, 217, 115, 0.9) 70%, transparent);
  box-shadow: 0 0 10px 1px rgba(229, 191, 39, 0.55);
  animation: niveau 8s ease-in-out infinite; animation-delay: 4s;
}
@keyframes niveau { 0% { top: 0; opacity: 0; } 8% { opacity: 0.9; } 46% { top: 100%; opacity: 0.9; } 50% { opacity: 0; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 1100px) { .heros__plan-zone { width: min(40vw, 60vh); top: 9vh; right: 1rem; } }
/* Mobile : le plan est posé sous la barre, en haut à droite, et le texte commence en dessous */
@media (max-width: 720px) {
  .heros__plan-zone { width: 62vw; top: 5.25rem; right: 0.75rem; opacity: 0.9; }
  .heros--plan .heros__centre { padding-top: calc(5.25rem + 62vw * 440 / 580 - 2rem); }
  .heros--plan::before { -webkit-mask: radial-gradient(ellipse 70% 40% at 70% 22%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 70% 40% at 70% 22%, #000 20%, transparent 75%); }
}
@media (prefers-reduced-motion: reduce) {
  .heros__plan .trace { animation: none; stroke-dashoffset: 0; }
  .heros__plan text, .heros__plan .nappe { animation: none; opacity: 1; }
  .heros__plan text.piece { opacity: 0.7; }
  .heros__laser { display: none; }
}

/* Numéro ou étiquette en tête d'un bloc */
.bloc__num { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or-texte); }

/* Cube en fil de fer (SketchUp, 3D) */
.icone-ronde--3d { perspective: 220px; }
.cube { position: relative; width: 1.9rem; height: 1.9rem; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); }
.cube i { position: absolute; inset: 0; border: 1px solid var(--or); background: rgba(229, 191, 39, 0.07); backface-visibility: visible; }
.cube i:nth-child(1) { transform: translateZ(0.95rem); }
.cube i:nth-child(2) { transform: rotateY(90deg) translateZ(0.95rem); }
.cube i:nth-child(3) { transform: rotateY(180deg) translateZ(0.95rem); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(0.95rem); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(0.95rem); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(0.95rem); }


/* Le plan 2D (AutoCAD) se redessine au survol de la carte */
.bloc--logiciel .icone-ronde--2d .ico * { transition: stroke-dashoffset 0.9s ease; }
.bloc--logiciel h3 small { font-size: 0.7em; color: var(--or-texte); font-weight: 500; letter-spacing: 0.04em; margin-left: 0.3em; }

/* ==================== Formation Python : l'éditeur qui tape ====================
   Une fenêtre d'éditeur en verre fumé, bordée d'or, où un petit jeu s'écrit tout seul
   (mots-clés en or, chaînes en beige), puis la console répond. */
.heros--code .heros__centre { position: relative; }
.editeur {
  position: absolute; right: clamp(0.5rem, 5vw, 6rem); top: 50%; transform: translateY(-52%); z-index: -1;
  width: min(30rem, 42vw); border-radius: 1rem; overflow: hidden;
  border: 1px solid rgba(229, 191, 39, 0.35);
  background: linear-gradient(180deg, rgba(20, 16, 6, 0.85), rgba(0, 0, 0, 0.8));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(243, 239, 219, 0.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.65;
  opacity: 0; animation: apparaitre 1s ease forwards 0.4s;
}
.editeur__barre { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(229, 191, 39, 0.18); background: rgba(0, 0, 0, 0.35); }
.editeur__barre span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(229, 191, 39, 0.25); border: 1px solid rgba(229, 191, 39, 0.5); }
.editeur__barre span:first-child { background: rgba(229, 191, 39, 0.75); }
.editeur__barre em { margin-left: auto; margin-right: auto; font-style: normal; font-size: 0.78rem; color: var(--texte-faible); letter-spacing: 0.02em; }
.editeur pre { margin: 0; padding: 1.1rem 1.25rem; white-space: pre; overflow: hidden; color: var(--texte); }
.editeur__code { min-height: 15.5em; }
.editeur__code b { font-weight: 500; }
.editeur__code .kw { color: var(--or-texte); }
.editeur__code .fn { color: var(--titre); }
.editeur__code .str { color: var(--or-clair); }
.editeur__code .curseur { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.2em; background: var(--or); animation: clignoter 1s steps(2) infinite; }
@keyframes clignoter { to { opacity: 0; } }
.editeur__sortie { min-height: 4.6em; border-top: 1px solid rgba(229, 191, 39, 0.18); background: rgba(0, 0, 0, 0.45); color: var(--or-clair); font-size: 0.82rem; }
.editeur__sortie:empty::before { content: "$ "; color: var(--texte-faible); }
@media (max-width: 1100px) {
  .editeur { position: static; transform: none; width: 100%; max-width: 32rem; margin-top: 2.5rem; font-size: 0.8rem; }
  .editeur__code { min-height: 0; }
}
@media (max-width: 420px) { .editeur { font-size: 0.74rem; } .editeur pre { padding: 0.9rem 1rem; } }
@media (prefers-reduced-motion: reduce) { .editeur { animation: none; opacity: 1; } .editeur__code .curseur { animation: none; } }

/* ==================== TDAH, DYS, HPI : la constellation de neurones ====================
   Le canvas couvre le héros ; on le fond vers la gauche pour laisser le texte respirer. */
.reseau {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 60%), linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 60%), linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 720px) {
  .reseau { -webkit-mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); opacity: 0.7; }
}

/* ==================== Sans cartes : fiche en une ligne, liste numérotée, « et aussi » ====================
   Pour casser la grille de quatre cartes identiques (icône, titre, phrase) qui se répétait de page en page. */
.fiche { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); font-size: 1.0625rem; color: var(--texte); }
.fiche li { display: flex; align-items: baseline; gap: 0.5rem; }
.fiche strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1; color: var(--titre); letter-spacing: -0.01em; }
.liste-num { list-style: none; counter-reset: num; margin: 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 860px) { .liste-num { grid-template-columns: 1fr 1fr; } }
.liste-num li { counter-increment: num; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; padding: 1.25rem 0; border-top: 1px solid var(--ligne); }
.liste-num li::before { content: counter(num, decimal-leading-zero); font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--or-texte); }
.liste-num h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.3rem; }
.liste-num p { margin: 0; color: var(--texte-faible); font-size: 0.95rem; grid-column: 2; }
.bloc--nu { border: 0; background: none; padding: 0; border-radius: 0; }
.bloc--nu:hover { border-color: transparent; }
.aussi { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--ligne); display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .aussi { grid-template-columns: 10rem 1fr; } }
.aussi h3 { font-size: 1.35rem; }
.aussi ul { display: grid; gap: 1rem; }
@media (min-width: 720px) { .aussi ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.aussi li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; font-size: 0.975rem; color: var(--texte); }
.aussi img { width: 44px; height: 44px; object-fit: contain; }
.aussi strong { color: var(--titre); font-weight: 500; }
.prose--large { max-width: 52rem; font-size: 1.125rem; }
.prose--large p { color: var(--texte); line-height: 1.7; }
