.nav-item { 
    position: relative; 
    margin-right: 20px; /* espace entre les titres */ 
    z-index: 1062; /* au-dessus des bulles si nécessaire */ 
} 

.my-navbar { border-bottom: 2px solid #947c3d;
 box-shadow: 0 4px 8px rgba(148,124,61,0.4); 
background: #06152b !important; 
position: relative; /* pour que z-index fonctionne */ 
z-index: 1030; /* Bootstrap fixe souvent ~1030, tu peux ajuster */ 
} 

.nav-link { position: relative; 
font-size: 1.25rem; font-family: "Poppins", sans-serif; 
color: #ffffff !important; 
z-index: 1062;
display: inline-block;
} 

.nav-link::after { content: ''; 
position: absolute; 
bottom: 2px; /* ajuster selon le texte */ 
left: 0; width: 0%; /* démarre à 0 */ 
height: 2px; background-color: #947c3d; 
transition: width 1s ease; /* animation gauche → droite */ 
z-index: 1079 !important; /* test */
} 

.nav-link:active::after, .nav-item.active > .nav-link::after { 
width: 100%; 
} 

.nav-link:hover { 
color: #ffffff !important; 
z-index: 1062; 
} 

.nav-title { 
display: flex; 
align-items: center; 
padding: 0 15px; 
font-size: 1.4rem; 
font-weight: bold; 
color: #fff; 
cursor: default; 
z-index: 1062; 
} 

/* ============================== Footer ============================== */ 

.my-footer { 
background-color: #02193C; 
color: #ffffff; 
padding: 20px; 
text-align: center; 
z-index: 50;
}

.my-footer .footer-line {
    margin-bottom: 0.35rem;
}

.my-footer .footer-links {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    justify-content: center;
    font-size: 0.85rem;
}

.my-footer .footer-link-sep {
    color: rgba(255, 255, 255, 0.45);
}

.my-footer .footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 124, 61, 0.45);
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.my-footer .footer-link:hover,
.my-footer .footer-link:focus-visible {
    color: #f8fafc;
    border-bottom-color: rgba(148, 124, 61, 0.9);
    text-decoration: none;
    outline: none;
}

/* ============================== Page layout ============================== */ 

html, body { 
height: 100%; 
margin: 0; 
background-color: #02193C !important; 
} 

main { 
min-height: calc(100vh - 200px); 
z-index: 10; 
} 

/* ============================== Header / zone bulles ============================== */ 

.header { 
position: relative; 
overflow: hidden; 
z-index: 10; 
} 

/* ============================== Bulles ============================== */ 

.bubble-container { 
position: absolute; /* limité à .header */ 
inset: 0; 
pointer-events: none; /* ne bloque pas les clics */ 
z-index: 1080; /* inchangé comme tu l’avais */ 
} 

.bubble { 
will-change: left, top; 
position: absolute; 
border-radius: 50%; 
background: rgba(255,255,255,0.05); 
border: 2px solid rgba(255,255,255,0.15); 
box-shadow: inset -15px -15px 40px rgba(255,255,255,0.15), inset 10px 10px 30px rgba(255,255,255,0.08); 
pointer-events: none; 
z-index: 1080; /* inchangé */ 
} 

.bubble-trace { 
position: absolute; 
border-radius: 50% 60% 40% 50% / 50% 40% 60% 50%; /* forme irrégulière */ 
background-color: rgba(255, 215, 100, 0.8); /* couleur par défaut, sera remplacée dynamiquement */ 
pointer-events: none; 
transform-origin: center; 
animation: splash 0.3s forwards; 
z-index: 1090; 
} 

.bubble-traces { 
position: absolute; 
inset: 0; 
pointer-events: none; 
z-index: 1090; 
} 

.bubble-splash { 
position: absolute; 
border-radius: 50%; 
background: rgba(255, 215, 100, 0.2); /* couleur par défaut, sera remplacée dynamiquement */ 
transform: scale(0); 
animation: splashAnim 0.3s forwards; 
pointer-events: none; 
z-index: 1090; 
} 

.bubble-splash .splat { 
position: absolute; 
border-radius: 50%; 
background: inherit; 
transform: scale(0); 
animation: splatAnim 0.3s forwards; 
} 

/* petites gouttes autour */ 
.bubble-trace::after { 
content: ''; 
position: absolute; 
border-radius: 50%; 
width: 5px; 
height: 5px; 
background-color: inherit; /* même couleur que la trace */ 
top: -8px; 
left: 50%; 
transform: translateX(-50%) scale(0); 
animation: splash-drops 0.3s forwards; 
} 

:root {
    --black: #020617;
    --blue: #02193C;
    --gold: #947c3d;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--black);
    color: var(--text-light);
    line-height: 1.6;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
    background-color: #02193C;
    padding: 3rem 2rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 800px;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    animation: fadeSlideDown 1s ease-out forwards;
}

.hero h2 {
    font-size: 3rem;
    color: var(--gold);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1.15rem;
    opacity: 0.9;
}

.hero-period {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    color: #947c3d;
    opacity: 0.85;
}


.about {
    width: 100%;
    padding: 4rem 2rem;
    background-color: var(--black);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about {
        padding: 3rem 1.5rem;
    }
}

.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;

    font-size: 0.85rem;
    font-weight: 500;

    color: #947c3d;
    border: 1px solid #947c3d;
    border-radius: 999px;

    animation: fadeSlideDown 0.8s ease-out forwards;
}

.about-highlight {
    background-color: #020617;
    border: 1px solid rgba(148, 124, 61, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.about-highlight ul {
    list-style: none;
    padding: 0;
}

.about-highlight li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.about-highlight strong {
    color: #947c3d;
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.bts {
    padding: 4rem 2rem;
    background-color: #020617;
}

.bts-content {
    max-width: 1100px;
    margin: 0 auto;
}

.bts h2 {
    color: #947c3d;
    margin-bottom: 1.5rem;
}

.bts-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.bts-card {
    background-color: #02193C;
    padding: 2rem;
    border-radius: 14px;
}

.bts-card h3 {
    color: #947c3d;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .bts-options {
        grid-template-columns: 1fr 1fr;
    }
}

.inter {
    min-height: 5vh;
    background-color: var(--blue);
}

@media (max-width: 768px) {
    .hero-accent {
        display: none;
    }
}

.hero-image-wrapper {
    flex-shrink: 0;
}

.hero-image {
    width: 200px;
    height: 200px;

    object-fit: cover;
    border-radius: 50%;

    border: 2px solid #947c3d;
}

@media (min-width: 992px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
        transform: translateX(-310px);
    }

    .hero-content {
        text-align: left;
    }
}

/* ===================== Reset & Base ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Poppins", sans-serif; background-color: #02193C; color: #ffffff; line-height: 1.6; }
h1, h2 { color: #947c3d; margin-bottom: 1rem; font-weight: 500; }

.module { margin-bottom: 40px; background-color: var(--black); padding: 4rem 2rem;}

/* Bouton (ton style actuel) */
.accordion-btn {
  justify-content: space-between;
  align-items: center;
  background-color: #06152B;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
}

.accordion-btn:hover {
  filter: brightness(1.2);
}

.accordion-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-arrow {
  transform: rotate(180deg);
}

/* Menu déroulant */
.accordion-dropdown {
  position: absolute; /* flotte au-dessus du reste */
  top: 100%; /* juste en-dessous du bouton */
  left: 0;
  background-color: #0A1A35;
  border-radius: 0 0 10px 10px;
  min-width: 200px;
  display: none; /* caché par défaut */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
}

.accordion-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.accordion-dropdown li {
  padding: 10px 20px;
  cursor: pointer;
}

.accordion-dropdown li:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Menu visible */
.accordion-dropdown.show {
  display: block;
}

/* ===================== Panel Contenu ===================== */
.panel {
  background-color: #06152b; /* légèrement plus clair que fond principal */
  padding: 15px 20px;
  top: calc(100% + 5px);
  border-radius: 0 0 10px 10px;
  display: none;
  top: 100%;
  left: 0;
  min-width: 300px; /* ou plus selon ton contenu */
  width: max-content;
  max-width: 500px; /* évite que ça devienne trop large */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 10000;
  position: absolute;
}

.panel table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.panel td {
  padding: 6px 8px;
  vertical-align: top;
}

.panel td:first-child {
  font-weight: bold;
  width: 150px;
}

.panel img {
  max-width: 100%;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.margin3 {
  margin-top: 50px;
}

.formation-hero {
    background-color: #02193C;
    padding: 3rem 2rem;
}

.formation-hero .formation-inner {
    display: flex;
    max-width: 1100px;
}

.formation-hero .hero-image-wrapper {
    flex-shrink: 0;
}

.formation-hero .hero-image {
    width: 70%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border: 2px solid #947c3d;
    border-radius: 8px;
    transform: translateY(30px);
}

.formation-hero .hero-content {
    flex: 1;
    color: #ffffff;
}

.formation-hero .hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #947c3d;
    border: 1px solid #947c3d;
    border-radius: 999px;
}

.formation-hero .hero-content h2 {
    font-size: 3rem;
    color: #947c3d;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.formation-hero .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

.formation-hero .hero-period {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #947c3d;
    opacity: 0.85;
}

@media (max-width: 992px) {
    .formation-hero .formation-inner {
        flex-direction: column;
        align-items: center;
    }

    .formation-hero .hero-image {
        max-width: 100%;
    }

    .formation-hero .hero-content {
        text-align: center;
    }
}

.blocs {
    text-align: left;
}

/* Conteneur flottant au-dessus du contenu */
.accordion-floating {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  margin-top: 20px;
}

/* Wrapper pour chaque bouton */
.accordion-wrapper {
  min-width: 250px;
  position: relative;
  z-index: 1;
}

.accordion-wrapper.open {
  z-index: 9999;
}

.accordion-btn.active {
  background-color: #020617;
}

.accordion-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-wrapper.open .panel {
  display: block;
}

/* ============================== Accueil (moderne) ============================== */

.home-page {
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, rgba(51, 65, 85, 0.35), transparent 52%),
        #0b1220;
}

.home-page .home-hero {
    margin-bottom: 0;
    min-height: clamp(320px, 55vh, 680px);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
    background: transparent;
}

/* Le hero hérite de .hero { display:flex } en row : le ::after du séparateur devenait un 3e flex item à côté du contenu → casse image / titre */
.home-page .home-surface > .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.home-page .home-surface > .home-hero .hero-inner.home-hero-inner {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    flex: 1 1 auto;
}

.home-page section.about.home-section {
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.home-page section.home-bts.home-section {
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.home-page section.about.home-section + section.home-bts {
    margin-top: 0;
}

/* Séparations entre les blocs (index.php) — une seule ligne blanche, pas de double trait (pas de box-shadow sur la ligne) */
.home-page .home-surface > .home-hero::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 1px;
    margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
    background: rgba(255, 255, 255, 0.2);
}

.home-page .home-surface section.about.home-section {
    position: relative;
    margin-top: 0;
    padding-top: clamp(2rem, 4.5vw, 3.25rem);
    border-top: none;
    background: transparent;
}

.home-page .home-surface section.about.home-section::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.2);
}

.home-page .home-surface section.about.home-section + section.home-bts {
    margin-top: 0;
    padding-top: clamp(2rem, 4.5vw, 3.25rem);
    border-top: none;
    background: transparent;
}

/* Accueil — bloc unique avec relief (profondeur réservée à index.php) */
.home-surface {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(180deg, #131c2e 0%, #0f172a 38%, #0c1424 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0 0 14px 14px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 28px 56px -16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.home-surface::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28), transparent);
    pointer-events: none;
    z-index: 1;
}

.home-page .home-hero-bg {
    background:
        radial-gradient(ellipse 90% 55% at 75% 15%, rgba(59, 130, 246, 0.07), transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 58, 95, 0.4), transparent 55%);
}

.home-page .hero-badge {
    margin-bottom: 0.75rem;
    padding: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.home-page .hero-period {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #94a3b8;
    opacity: 1;
}

.home-page .home-hero .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #f8fafc;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.home-page .home-hero .hero-subtitle {
    color: rgba(226, 232, 240, 0.88);
}

.home-page .hero-actions {
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.home-page .hero-actions .btn-home {
    border-radius: 6px;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-page .hero-actions .btn-home-primary {
    color: #0f172a;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 4px 14px rgba(0, 0, 0, 0.25);
}

.home-page .hero-actions .btn-home-primary:hover {
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 8px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.home-page .hero-actions .btn-home-ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.home-page .hero-actions .btn-home-ghost:hover {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(148, 163, 184, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.home-page .home-hero .hero-image {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 20px 40px -8px rgba(0, 0, 0, 0.55);
}

.home-page .home-surface section.about.home-section,
.home-page .home-surface section.home-bts.home-section {
    background: transparent;
}

.home-page .home-surface section.about.home-section,
.home-page .home-surface section.bts.home-bts {
    padding-left: 0;
    padding-right: 0;
}

.home-page .about h2.section-heading,
.home-page .about h2 {
    color: #f1f5f9;
}

.home-page .about-text p {
    color: #cbd5e1;
}

.home-page .about-highlight-grid {
    padding: 1.35rem;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 32px -8px rgba(0, 0, 0, 0.4);
}

.home-page .about-stat {
    background: rgba(11, 18, 32, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-page .about-stat-label {
    color: #64748b;
}

.home-page .about-stat-value {
    color: #e2e8f0;
    font-weight: 600;
}

.home-page .home-bts .bts-lead {
    color: #94a3b8;
}

.home-page .home-bts .bts-content > .section-heading,
.home-page .home-bts h2 {
    color: #f1f5f9;
}

.home-page .home-bts .bts-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: none;
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 10px 28px -6px rgba(0, 0, 0, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-page .home-bts .bts-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.55;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.home-page .home-bts .bts-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 18px 40px -10px rgba(0, 0, 0, 0.45);
    border-color: rgba(148, 163, 184, 0.28);
}

.home-page .home-bts .bts-card h3 {
    color: #f1f5f9;
}

.home-page .home-bts .bts-card p {
    color: #cbd5e1;
}

.home-page .bts-card-tag {
    color: #64748b;
}

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(420px, 70vh, 720px);
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
    background: linear-gradient(165deg, #02193c 0%, #06152b 45%, #0a1f3d 100%);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(148, 124, 61, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(59, 130, 246, 0.08), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(148, 124, 61, 0.06), transparent 45%);
    pointer-events: none;
}

.home-hero .hero-inner,
.home-hero-inner {
    position: relative;
    z-index: 1;
    transform: none;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .home-hero .hero-inner,
    .home-hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(2rem, 5vw, 4rem);
    }

    .home-hero .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--gold);
    margin: 0 0 0.75rem;
}

.home-hero .hero-subtitle {
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-home:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn-home-primary {
    color: #06152b;
    background: linear-gradient(135deg, #c4a85a 0%, var(--gold) 100%);
    box-shadow: 0 4px 24px rgba(148, 124, 61, 0.35);
}

.btn-home-primary:hover {
    color: #06152b;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(148, 124, 61, 0.45);
    text-decoration: none;
}

.btn-home-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 124, 61, 0.45);
}

.btn-home-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
    text-decoration: none;
}

.home-hero .hero-image {
    width: clamp(180px, 28vw, 240px);
    height: clamp(180px, 28vw, 240px);
    border-radius: 28px;
    border: 2px solid rgba(148, 124, 61, 0.65);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 60px rgba(148, 124, 61, 0.12);
    object-fit: cover;
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-heading-center {
    text-align: center;
}

.home-section {
    position: relative;
}

.about-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(6, 21, 43, 0.9) 0%, rgba(2, 6, 23, 0.95) 100%);
    border: 1px solid rgba(148, 124, 61, 0.25);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.about-stat {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.about-stat-value {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--gold);
}


.home-bts .bts-lead {
    max-width: 720px;
    margin: 0 auto 0.5rem;
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.home-bts .bts-content > .section-heading {
    margin-bottom: 1rem;
}

.home-bts .bts-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 124, 61, 0.2);
    background: linear-gradient(160deg, rgba(6, 21, 43, 0.95) 0%, rgba(2, 25, 60, 0.55) 100%);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-bts .bts-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

.home-bts .bts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    border-color: rgba(148, 124, 61, 0.45);
}

.bts-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
}

.home-bts .bts-card h3 {
    margin-top: 0;
}

/* ============================== Page Formation (moderne) ============================== */

.formation-page {
    overflow-x: hidden;
    background: #0b1220;
}

/* Bloc principal Formation (sobre) */
.formation-surface {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    overflow: hidden;
}

/* Trois blocs côte à côte (grand écran), défilement interne pour les listes de TP */
.formation-blocs-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: stretch;
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.5rem, 1.5vw, 1rem) 0.25rem;
    min-height: 0;
    background: transparent;
}

.formation-blocs-layout .formation-module {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.formation-blocs-layout .formation-module-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;
    margin: 0;
    max-height: min(72vh, 820px);
    overflow: hidden;
    padding: clamp(0.85rem, 1.8vw, 1.25rem);
    border-radius: 16px;
}

.formation-blocs-layout .formation-module-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 11rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
}

.formation-blocs-layout .formation-module-title {
    font-size: clamp(0.88rem, 1vw, 1.05rem);
    line-height: 1.3;
    min-height: 2.6rem;
}

.formation-blocs-layout .formation-module-lead {
    font-size: 0.75rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.15rem;
}

.formation-blocs-layout .formation-tp-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.3rem;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    gap: 0.65rem;
}

.formation-blocs-layout .formation-tp-list::-webkit-scrollbar {
    width: 6px;
}

.formation-blocs-layout .formation-tp-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

.formation-blocs-layout .formation-tp-dl {
    gap: 0;
}

.formation-blocs-layout .formation-tp-summary {
    min-height: 4.25rem;
    padding: 0.6rem 0.65rem 0.55rem 0.7rem;
}

.formation-blocs-layout .formation-tp-heading {
    font-size: 0.8125rem;
    line-height: 1.35;
}

.formation-blocs-layout .formation-tp-num {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8125rem;
}

.formation-blocs-layout .formation-tp-body {
    padding: 0.65rem 0.65rem 0.8rem;
}

.formation-blocs-layout .formation-tp-row {
    padding: 0.55rem 0 0.6rem;
}

@media (max-width: 1100px) {
    .formation-blocs-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 1.5rem);
    }

    .formation-blocs-layout .formation-module-shell {
        max-height: none;
        overflow: visible;
        padding: clamp(1.25rem, 3vw, 1.75rem);
    }

    .formation-blocs-layout .formation-module-head {
        min-height: 0;
    }

    .formation-blocs-layout .formation-module-title {
        min-height: 0;
    }

    .formation-blocs-layout .formation-module-lead {
        min-height: 0;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
    }

    .formation-blocs-layout .formation-tp-list {
        overflow: visible;
    }

    .formation-blocs-layout .formation-tp-summary {
        min-height: 0;
    }

    .formation-blocs-layout .formation-tp-heading {
        font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    }

    .formation-blocs-layout .formation-module-title {
        font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    }

    .formation-blocs-layout .formation-module-lead {
        font-size: 0.95rem;
    }
}

.formation-hero-modern {
    position: relative;
    isolation: isolate;
    min-height: clamp(320px, 45vh, 520px);
    margin-bottom: 0;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
    background: #0f172a;
}

/* Hero intégré au bloc .formation-surface (pas de coupure visuelle) */
.formation-page .formation-hero-modern {
    min-height: clamp(280px, 40vh, 480px);
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 0;
    background: transparent;
}

.formation-page--tight-hero-gap .formation-hero-modern {
    min-height: clamp(225px, 30vh, 320px);
    padding-bottom: clamp(0.15rem, 0.5vw, 0.4rem);
}

.formation-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(30, 58, 95, 0.35), transparent 55%);
    pointer-events: none;
}

.formation-page .formation-inner.formation-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero sous-pages sans image : même rendu qu’Entreprise (badge, titres, sous-texte, période, boutons), bloc centré, largeur ~ colonne texte à côté d’une image */
.formation-page .formation-inner.formation-hero-inner--text-only {
    justify-content: center;
    align-items: center;
}

.formation-page .formation-inner.formation-hero-inner--text-only .hero-content {
    flex: 0 1 auto;
    width: 100%;
    max-width: min(680px, 100%);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 993px) {
    .formation-page .formation-inner.formation-hero-inner--text-only .hero-content {
        text-align: left;
    }
}

.formation-page .formation-hero .hero-image-wrapper {
    flex-shrink: 0;
}

.formation-page .formation-hero .hero-image {
    width: 100%;
    max-width: min(380px, 42vw);
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    transform: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.formation-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #f1f5f9;
    margin: 0 0 0.75rem;
    white-space: normal;
}

.formation-page .formation-hero .hero-subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.65;
    max-width: 640px;
    color: rgba(226, 232, 240, 0.88);
}

.formation-hero-actions {
    margin-top: 1.5rem;
}

/* Hero formation : ton institutionnel (pas badge pilule ni boutons « marketing ») */
.formation-page .hero-badge {
    margin-bottom: 0.75rem;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    padding-bottom: 0.5rem;
    animation: none;
}

.formation-page .hero-period {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #94a3b8;
    opacity: 1;
}

.formation-page .formation-hero-actions {
    gap: 0.65rem;
}

.formation-page .formation-hero-actions .btn-home {
    border-radius: 6px;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.formation-page .formation-hero-actions .btn-home-primary {
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.formation-page .formation-hero-actions .btn-home-primary:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #94a3b8;
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

.formation-page .formation-hero-actions .btn-home-ghost {
    color: #e2e8f0;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.formation-page .formation-hero-actions .btn-home-ghost:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.55);
    transform: none;
    text-decoration: none;
}

@media (max-width: 992px) {
    .formation-page .formation-inner.formation-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .formation-page .formation-hero .hero-image {
        max-width: 100%;
    }

    .formation-page .formation-hero .hero-content {
        text-align: center;
    }

    .formation-hero-actions {
        justify-content: center;
    }
}

.formation-page .formation-module {
    margin-bottom: 0;
    padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 4vw, 1.5rem);
    background: transparent;
}

.formation-module-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.35rem, 3.5vw, 1.85rem) clamp(1.15rem, 3vw, 1.65rem) clamp(1.5rem, 3.5vw, 2rem);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.formation-module-head {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(1.15rem, 3vw, 1.5rem);
    padding-bottom: clamp(0.85rem, 2vw, 1.1rem);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.formation-module-badge {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    border: none;
    border-radius: 0;
    background: none;
}

.formation-module-title {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: #f1f5f9;
    margin: 0 0 0.45rem;
}

.formation-module-lead {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
    max-width: 52ch;
}

/* Liste des TP — <details> natifs (déroulant), ouverts par défaut — ne pas utiliser la classe .panel (display:none global) */
.formation-tp-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.formation-tp-details {
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.5);
    box-shadow: none;
    transition: border-color 0.15s ease;
}

.formation-tp-details:hover {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.formation-tp-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 0.75rem;
    padding: 0.7rem 0.85rem;
    list-style: none;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.formation-tp-summary::-webkit-details-marker,
.formation-tp-summary::marker {
    display: none;
    content: "";
}

.formation-tp-heading {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #e2e8f0;
    text-align: left;
}

.formation-tp-caret {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 4px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
}

.formation-tp-caret::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.2s ease;
}

.formation-tp-details[open] .formation-tp-caret::after {
    transform: translate(-50%, -35%) rotate(225deg);
}

.formation-tp-body {
    display: block;
    padding: 0.75rem 0.85rem 0.9rem;
    background: rgba(11, 18, 32, 0.6);
}

.formation-tp-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

.formation-tp-dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.formation-tp-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0.6rem 0 0.65rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: transparent;
    box-shadow: none;
}

.formation-tp-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.formation-tp-dl dt {
    margin: 0;
    padding: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
    color: #64748b;
    background: none;
    border-radius: 0;
    border: none;
}

.formation-tp-dl dd {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

a.formation-tp-link {
    display: inline-block;
    margin-top: 0.1rem;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.15s ease;
}

a.formation-tp-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

a.formation-tp-link:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.6);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 700px) {
    .formation-tp-summary {
        padding: 0.75rem 0.85rem 0.65rem;
    }

    .formation-tp-num {
        min-width: 2.15rem;
        height: 2.15rem;
        font-size: 0.78rem;
    }

    .formation-tp-heading {
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .formation-module-shell {
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 16px;
    }
}

/* ============================== Pages intérieures (Entreprise, Certifs, CV, Veille, Contact) ============================== */

.inner-page {
    overflow-x: hidden;
    background: #0b1220;
}

.inner-surface {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 1.75rem);
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0 0 12px 12px;
    color: #e2e8f0;
}

.inner-surface > h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.inner-surface a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.inner-surface a:hover {
    color: #bfdbfe;
}

.inner-surface code {
    font-size: 0.9em;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.45);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.certifs-note {
    margin-top: 1rem;
}

/* ============================== Vitrine certifications ============================== */

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

.certifs-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(0.85rem, 2vw, 1.15rem);
}

.certif-card {
    margin: 0;
    padding: 0;
    list-style: none;
}

.certif-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(1rem, 2.2vw, 1.25rem);
    color: #e2e8f0;
    text-decoration: none;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 10px 28px -10px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.certif-card-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, transparent, rgba(148, 124, 61, 0.55), transparent);
    opacity: 0.55;
}

.certif-card-link:hover,
.certif-card-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(148, 124, 61, 0.4);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 18px 42px -12px rgba(0, 0, 0, 0.55);
    text-decoration: none;
    color: #f8fafc;
    outline: none;
}

.certif-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: rgba(148, 124, 61, 0.08);
    border: 1px solid rgba(148, 124, 61, 0.25);
}

.certif-card-thumb svg {
    width: 36px;
    height: 36px;
}

.certif-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
}

.certif-card-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.certif-card-dot {
    color: rgba(148, 163, 184, 0.6);
}

.certif-card-org {
    color: #cbd5e1;
}

.certif-card-year {
    color: #947c3d;
    font-variant-numeric: tabular-nums;
}

.certif-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f1f5f9;
}

.certif-card-cta {
    margin-top: auto;
    padding-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    transition: color 0.18s ease;
}

.certif-card-link:hover .certif-card-cta,
.certif-card-link:focus-visible .certif-card-cta {
    color: #f8fafc;
}

.certif-card-cta-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
}

.certif-card-link:hover .certif-card-cta-icon,
.certif-card-link:focus-visible .certif-card-cta-icon {
    transform: translate(2px, -2px);
}

@media (max-width: 480px) {
    .certifs-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================== Vitrine CV ============================== */

.cv-showcase-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cv-showcase {
    margin: 0;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.cv-showcase-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.414; /* format A4 portrait */
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(148, 124, 61, 0.35);
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 22px 48px -14px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.cv-showcase-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, transparent, rgba(148, 124, 61, 0.6), transparent);
    opacity: 0.7;
    z-index: 2;
}

.cv-showcase-frame:hover,
.cv-showcase-frame:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(148, 124, 61, 0.6);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 28px 60px -14px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.3);
    outline: none;
    text-decoration: none;
}

.cv-showcase-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.cv-showcase-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.65) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cv-showcase-frame:hover .cv-showcase-overlay,
.cv-showcase-frame:focus-visible .cv-showcase-overlay {
    opacity: 1;
}

.cv-showcase-overlay-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    background: rgba(241, 245, 249, 0.95);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cv-showcase-overlay-pill svg {
    width: 14px;
    height: 14px;
}

.cv-showcase-caption {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cv-showcase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.cv-showcase-actions .btn-home {
    border-radius: 6px;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.cv-showcase-actions .btn-home-primary {
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.cv-showcase-actions .btn-home-primary:hover {
    color: #0f172a;
    background: #f8fafc;
    text-decoration: none;
}

.cv-showcase-actions .btn-home-ghost {
    color: #e2e8f0;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.cv-showcase-actions .btn-home-ghost:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.1);
    text-decoration: none;
}

/* Corps des pages « secondaires » (même enveloppe que Formation, hors accueil / contact) */
.subpage-content {
    padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.5rem, 3vw, 2rem);
}

.subpage-content--compact-gap {
    padding-top: clamp(0.15rem, 0.6vw, 0.4rem);
}

.subpage-content > .formation-module-shell {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.inner-lead {
    color: #94a3b8;
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 65ch;
}

.inner-section {
    margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.inner-section:last-child {
    margin-bottom: 0;
}

.inner-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.inner-section p {
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

.inner-section p:last-child {
    margin-bottom: 0;
}

.inner-section ul {
    color: #cbd5e1;
    line-height: 1.65;
    padding-left: 1.25rem;
}

.inner-section li {
    margin-bottom: 0.35rem;
}

.inner-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.inner-card:last-child {
    margin-bottom: 0;
}

.inner-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

.inner-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.inner-table-wrap {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.inner-table th,
.inner-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.inner-table th {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inner-table td {
    color: #cbd5e1;
}

.inner-table tr:last-child td {
    border-bottom: none;
}

.inner-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.inner-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.inner-actions .btn-home {
    border-radius: 6px;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.inner-actions .btn-home-primary {
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.inner-actions .btn-home-primary:hover {
    color: #0f172a;
    background: #f8fafc;
    text-decoration: none;
}

.inner-actions .btn-home-ghost {
    color: #e2e8f0;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.inner-actions .btn-home-ghost:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.1);
    text-decoration: none;
}

.contact-flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-flash--success {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.contact-flash--error {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.contact-form .form-control {
    background: rgba(11, 18, 32, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f1f5f9;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
}

.contact-form .form-control:focus {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.15);
    outline: none;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-note {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.75rem;
}

.contact-form-actions {
    margin-top: 0.25rem;
}

.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    min-width: min(100%, 16rem);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #06152b;
    background: linear-gradient(135deg, #c4a85a 0%, var(--gold) 100%);
    box-shadow: 0 4px 22px rgba(148, 124, 61, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.contact-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(148, 124, 61, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: brightness(1.04);
}

.contact-form-submit:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.contact-form-submit:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

@media (max-width: 480px) {
    .contact-form-submit {
        width: 100%;
        min-width: 0;
    }
}

/* Page entreprise — cartes missions avec visuel */
.entreprise-missions .inner-lead {
    margin-top: 0.15rem;
    margin-bottom: clamp(1.1rem, 2.2vw, 1.35rem);
}

.entreprise-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.6vw, 1.65rem);
}

.entreprise-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    padding: clamp(0.95rem, 2.2vw, 1.2rem);
    overflow: hidden;
}

.entreprise-card:nth-child(even) {
    flex-direction: row-reverse;
}

.entreprise-card__media {
    flex: 1 1 220px;
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(11, 18, 32, 0.6);
}

.entreprise-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    vertical-align: middle;
}

.entreprise-card__body {
    flex: 2 1 280px;
    min-width: 0;
}

.entreprise-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.entreprise-card__body p {
    margin: 0;
    font-size: 0.9375rem;
    color: #cbd5e1;
    line-height: 1.65;
}

@media (max-width: 680px) {
    .entreprise-card,
    .entreprise-card:nth-child(even) {
        flex-direction: column;
    }
}