/* ========================================
   MSCN-IA — Management Supply Chain Numérique & IA
   Design sobre et professionnel
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --navy:         #1A2744;
  --navy-light:   #243460;
  --creme:        #FFFFFF;
  --creme-sombre: #F1F5FA;
  --vert:         #2D6A4F;
  --vert-pale:    rgba(45,106,79,.1);
  --or:           #C2410C;
  --cta:          #FF8A3D;
  --cta-hover:    #FF7A1F;
  --menthe:       #5FE3A8;
  --texte:        #2D2D2D;
  --texte-light:  #5A5A5A;
  --blanc:        #FFFFFF;
  --bordure:      #DAE3DE;
  --max-w:        1200px;
  --r:            4px;
  --transition:   .22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typographie ── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
p  { max-width: 68ch; color: var(--texte-light); font-size: 1.02rem; }
p.large { font-size: 1.15rem; color: var(--texte); }

/* ── Utilitaires ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.vert { color: var(--vert); }
.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  border-radius: var(--r);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .93rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--cta);
  color: var(--navy);
}
.btn-primary:hover { background: var(--cta-hover); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--blanc); }
.btn-vert {
  background: var(--vert);
  color: var(--blanc);
}
.btn-vert:hover { background: #245c43; }
/* Bouton contour blanc — pour fonds sombres (navy) */
.btn-outline-blanc {
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline-blanc:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--blanc);
}
.tag {
  display: inline-block;
  padding: .22rem .75rem;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  background: var(--vert-pale);
  color: var(--vert);
  border: 1px solid rgba(45,106,79,.25);
  text-transform: uppercase;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--bordure);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(26,39,68,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav__logo span { color: var(--vert); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--texte-light);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--navy); }
.nav__cta { margin-left: 1rem; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero (page d'accueil) ── */
/* Côté gauche : fond crème → texte navy. Côté droit : paneau navy → texte blanc via .hero__stats */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 4rem;
  background: var(--creme);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: var(--navy);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero__eyebrow-line {
  width: 2rem;
  height: 2px;
  background: var(--vert);
}
.hero__eyebrow-text {
  font-size: .82rem;
  font-weight: 600;
  color: var(--vert);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p { margin-bottom: 2rem; font-size: 1.1rem; color: var(--texte-light); max-width: 50ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  padding: 1.5rem;
}
.stat-card__value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-card__value .counter { color: var(--vert); }
.stat-card__label {
  font-size: .84rem;
  color: var(--texte-light);
  margin-top: .5rem;
  line-height: 1.4;
}
/* Cartes du hero d'accueil : sur fond navy */
.hero__stats .stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.hero__stats .stat-card__value { color: var(--blanc); }
.hero__stats .stat-card__value .counter,
.hero__stats .stat-card__value span { color: var(--menthe); }
.hero__stats .stat-card__label { color: rgba(255,255,255,.7); }
/* Sur mobile : le panneau navy disparaît → les cartes sur fond crème */
@media (max-width: 768px) {
  .hero__stats {
    background: var(--navy);
    border-radius: var(--r);
    padding: 1.5rem;
  }
}

/* ── Sections communes ── */
.section {
  padding: 5rem 0;
  background: var(--creme);
}
.section--alt {
  background: var(--blanc);
}
.section--navy {
  background: var(--navy);
}
/* Texte blanc sur tout fond navy/sombre */
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--blanc); }
.section--navy p { color: rgba(255,255,255,.65); }
.section--navy li { color: rgba(255,255,255,.65); }

/* Règle globale : sur tout élément à fond navy, texte forcé blanc */
[style*="background:var(--navy)"] h1,
[style*="background:var(--navy)"] h2,
[style*="background:var(--navy)"] h3,
[style*="background:var(--navy)"] h4 { color: var(--blanc) !important; }
[style*="background:var(--navy)"] p { color: rgba(255,255,255,.65) !important; }
.section__header {
  margin-bottom: 3rem;
}
.section__header p {
  margin-top: 1rem;
}

/* ── Parcours ── */
.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.parcours-card {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.parcours-card:hover {
  box-shadow: 0 8px 32px rgba(26,39,68,.1);
  transform: translateY(-2px);
}
.parcours-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--vert);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.parcours-card:hover::after { transform: scaleX(1); }
.parcours-card__level {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--vert);
  letter-spacing: .07em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.parcours-card h3 { margin-bottom: .75rem; color: var(--navy); }
.parcours-card p { font-size: .95rem; margin-bottom: 1.5rem; }
.parcours-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.parcours-card__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 2rem;
}
.parcours-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--texte-light);
}
.parcours-card__list li::before {
  content: '→';
  color: var(--vert);
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ── Avantages ── */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.avantage-item {
  padding: 2rem;
  border-left: 2px solid var(--bordure);
  transition: border-color var(--transition);
  background: var(--blanc);
  border-radius: 0 var(--r) var(--r) 0;
}
.avantage-item:hover { border-color: var(--vert); }
.avantage-item__icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.avantage-item h3 { margin-bottom: .5rem; font-size: 1.05rem; color: var(--navy); }
.avantage-item p { font-size: .88rem; }

/* ── Métiers ── */
.metiers-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.metier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  font-size: .93rem;
  color: var(--texte);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.metier-item:hover { border-color: var(--vert); box-shadow: 0 2px 8px rgba(45,106,79,.08); }
.metier-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vert);
  flex-shrink: 0;
}

/* ── Rythme (index) ── */
#rythme { background: var(--navy); }
#rythme h2, #rythme h3 { color: var(--blanc); }
#rythme p { color: rgba(255,255,255,.6); }
.rythme-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.rythme-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r);
  padding: 2rem;
}
.rythme-card--matin { border-left: 3px solid var(--menthe); }
.rythme-card--aprem { border-left: 3px solid var(--or); }
.rythme-card__heure {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: .5rem;
}
.rythme-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--blanc); }
.rythme-card p { font-size: .88rem; }
.rythme-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.rythme-stat { text-align: center; }
.rythme-stat__val {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--menthe);
}
.rythme-stat__label { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .3rem; }

/* ── Entreprises ── */
.entreprises-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.entreprises-avantages {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.avantage-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.avantage-row__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--vert-pale);
  border: 1px solid rgba(45,106,79,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}
.avantage-row__text h4 { font-size: .97rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; }
.avantage-row__text p { font-size: .87rem; }
.entreprises-cta-box {
  background: var(--navy);
  border-radius: var(--r);
  padding: 2.5rem;
}
.entreprises-cta-box h3 { margin-bottom: 1rem; color: var(--blanc); }
.entreprises-cta-box p { margin-bottom: 1.5rem; font-size: .95rem; color: rgba(255,255,255,.65); }

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,39,68,.09); }
.blog-card__img {
  height: 160px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__date { font-size: .78rem; color: var(--or); margin-bottom: .5rem; font-weight: 500; }
.blog-card__body h3 { font-size: 1rem; color: var(--navy); margin-bottom: .5rem; line-height: 1.35; }
.blog-card__body p { font-size: .87rem; margin-bottom: 1rem; }
.blog-card__link { font-size: .87rem; color: var(--vert); font-weight: 600; }

/* ── CTA bannière ── */
.cta-banner {
  background: var(--navy);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; color: var(--blanc); }
.cta-banner p { margin: 0 auto 2rem; font-size: 1.05rem; color: rgba(255,255,255,.65); }
.cta-banner__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact form ── */
.contact-section {
  padding: 5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .93rem;
  color: var(--texte-light);
}
.contact-detail strong { color: var(--navy); }
.form {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  padding: 2.5rem;
}
.form__row { margin-bottom: 1.5rem; }
.form__label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: .4rem;
}
.form__input, .form__select, .form__textarea {
  width: 100%;
  background: var(--creme);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  padding: .75rem 1rem;
  color: var(--texte);
  font-family: 'Inter', sans-serif;
  font-size: .93rem;
  transition: border-color var(--transition);
  appearance: none;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--vert);
}
.form__textarea { min-height: 130px; resize: vertical; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__submit { width: 100%; padding: 1rem; font-size: .97rem; }
.form__note { font-size: .77rem; color: var(--texte-light); margin-top: .75rem; text-align: center; }

/* ── Footer ── */
.footer {
  background: #0F1A30;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand p { font-size: .86rem; margin-top: .75rem; max-width: 32ch; color: rgba(255,255,255,.45); }
.footer__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blanc);
}
.footer__logo span { color: #A8D5C2; }
.footer__col h4 {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer__col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__col ul a { font-size: .84rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer__col ul a:hover { color: rgba(255,255,255,.85); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom p, .footer__bottom a { font-size: .81rem; color: rgba(255,255,255,.35); }
.footer__bottom a:hover { color: rgba(255,255,255,.7); }
.footer__bottom-links { display: flex; gap: 1.5rem; }


/* ── Boutons et accents sur fonds navy ── */
.cta-banner .btn-primary,
.rythme-hero .btn-primary,
.entreprises-cta-box .btn-primary {
  background: var(--cta);
  color: var(--navy);
}
.cta-banner .btn-primary:hover,
.rythme-hero .btn-primary:hover,
.entreprises-cta-box .btn-primary:hover { background: var(--cta-hover); }
.cta-banner .btn-outline,
.entreprises-cta-box .btn-outline {
  color: var(--blanc);
  border-color: rgba(255,255,255,.55);
}
.cta-banner .btn-outline:hover,
.entreprises-cta-box .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--blanc);
  color: var(--blanc);
}
.cta-banner .vert,
.rythme-hero .vert,
.section--navy .vert,
#rythme .vert { color: var(--menthe); }
.cta-banner p { margin-inline: auto; }

/* ── Hero alternance et toute section à fond navy ── */
/* Garantit que h1/h2/h3 sont blancs sur fond navy, quelle que soit la classe */
.rythme-hero h1,
.rythme-hero h2,
.rythme-hero h3,
.rythme-hero p,
.rythme-hero .hero__eyebrow-text { color: var(--blanc) !important; }
.rythme-hero p { color: rgba(255,255,255,.75) !important; }

/* ── Page intérieure ── */
.page-hero {
  padding: 8rem 0 4rem;
  border-bottom: 1px solid var(--bordure);
  background: var(--blanc);
}
.page-hero .tag { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p.large { max-width: 60ch; }
.page-content { padding: 4rem 0; }
.programme {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.programme-annee {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  overflow: hidden;
}
.programme-annee__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--navy);
  cursor: pointer;
  user-select: none;
}
.programme-annee__num {
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  color: var(--menthe);
  font-size: 1.1rem;
  min-width: 2.5rem;
}
.programme-annee__title { font-weight: 600; color: var(--blanc); font-size: 1rem; }
.programme-annee__body { padding: 1.5rem; }
.module-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.module-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--texte-light);
  padding: .5rem;
  border-radius: 3px;
  transition: color var(--transition);
}
.module-item:hover { color: var(--navy); }
.module-item::before {
  content: '→';
  color: var(--vert);
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── Mentions légales ── */
.legal-content {
  padding: 7rem 0 4rem;
  max-width: 800px;
  margin-inline: auto;
}
.legal-content h1 { margin-bottom: 2rem; }
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 { font-size: 1.3rem; margin-bottom: .75rem; color: var(--navy); }
.legal-section p, .legal-section li { font-size: .95rem; color: var(--texte-light); line-height: 1.7; }
.legal-section ul { padding-left: 1.5rem; list-style: disc; }
.legal-section ul li { margin-bottom: .4rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Menu mobile : tiroir plein écran.
     backdrop-filter retiré : il piégeait l'élément fixed dans la barre de 70 px. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--creme); }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; position: relative; z-index: 100; padding: .6rem; }
  .nav__logo { position: relative; z-index: 100; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 5.5rem 1.5rem 7rem;
    background: var(--creme);
    overflow-y: auto;
    z-index: 90;
  }
  .nav.open .nav__links a {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--navy);
    padding: 1rem 0;
    border-bottom: 1px solid var(--bordure);
  }
  .nav.open .nav__cta {
    display: block;
    position: fixed;
    left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
    margin: 0;
    text-align: center;
    padding: 1rem;
    z-index: 95;
  }
  .nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero::before { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .parcours-grid { grid-template-columns: 1fr; }
  .avantages-grid { grid-template-columns: 1fr; }
  .metiers-list { grid-template-columns: 1fr; }
  .entreprises-intro { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .module-list { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .rythme-cards { grid-template-columns: 1fr; }
  .rythme-stats { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}


/* ── Mobile : grilles définies en ligne ── */
@media (max-width: 768px) {
  div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 1rem !important; }
  div[style*="repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  .stat-card { padding: 1rem; }
  .stat-card__label { overflow-wrap: anywhere; }
}

/* ── Motion réduit ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* =====================================================
   AMBIANCE & ANIMATIONS (couche dynamique)
   ===================================================== */
body { background: #FFFFFF; }

/* Fonds vivants : plus de crème plat */
.section { background: #FFFFFF; }
.section--alt { background: #F6F8FB; }
.page-hero {
  background: radial-gradient(circle at 88% 10%, rgba(168,213,194,.22), transparent 42%), #FFFFFF;
  position: relative; overflow: hidden;
}
.hero {
  background: linear-gradient(120deg, #FFFFFF 0%, #F1F5FA 55%, #FFFFFF 100%);
  background-size: 220% 220%;
  animation: gradShift 16s ease-in-out infinite;
  overflow: hidden;
}
.hero::before {
  background: linear-gradient(135deg, #1A2744 0%, #26386A 50%, #1A2744 100%);
  background-size: 220% 220%;
  animation: gradShift 12s ease-in-out infinite;
  z-index: 0;
}
.cta-banner, .section--navy, .rythme-hero {
  background-image: radial-gradient(circle at 15% 25%, rgba(45,106,79,.22), transparent 45%);
  background-size: 140% 140%;
  animation: glowMove 18s ease-in-out infinite alternate;
}

/* Bulles flottantes + trame de points (injectées par JS) */
.bg-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .32; animation: floaty 14s ease-in-out infinite; }
.bg-blobs .b1 { width: 340px; height: 340px; left: -80px; top: 6%; background: #A8D5C2; }
.bg-blobs .b2 { width: 240px; height: 240px; left: 28%; bottom: -60px; background: #CFE6DA; animation-delay: -5s; animation-duration: 18s; }
.bg-blobs .b3 { display: none; width: 180px; height: 180px; left: 38%; top: 12%; background: #7FBF9F; opacity: .35; animation-delay: -9s; }
.page-hero .bg-blobs .b1 { left: auto; right: -60px; top: -40px; }
.page-hero .bg-blobs .b2 { left: 6%; bottom: -90px; }
.page-hero .bg-blobs .b3 { left: auto; right: 24%; top: auto; bottom: 10%; }
.bg-blobs::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(26,39,68,.07) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero > *:not(.bg-blobs):not(.hero-net), .page-hero > *:not(.bg-blobs) { position: relative; z-index: 1; }
.hero > .bg-blobs, .page-hero > .bg-blobs { position: absolute; }
/* les bulles du hero restent sur la moitié gauche */
.hero .bg-blobs { width: 55%; }

/* Entrée orchestrée du hero (une seule fois au chargement) */
.hero__eyebrow, .hero h1, .hero p, .hero__actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .12s; }
.hero p { animation-delay: .24s; }
.hero__actions { animation-delay: .36s; }
.hero__stats .stat-card { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__stats .stat-card:nth-child(1) { animation-delay: .3s; }
.hero__stats .stat-card:nth-child(2) { animation-delay: .42s; }
.hero__stats .stat-card:nth-child(3) { animation-delay: .54s; }
.hero__stats .stat-card:nth-child(4) { animation-delay: .66s; }
.page-hero .tag, .page-hero h1, .page-hero p { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero h1 { animation-delay: .1s; }
.page-hero p { animation-delay: .2s; }

/* Apparition au défilement (classes posées par le JS, contenu visible sans JS) */
.js-reveal .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Survols : cartes qui se soulèvent */
.avantage-item, .stat-card, .metier-item, .impact-card, .journee-bloc, .dual-avantage, .avantage-row, .blog-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.avantage-item:hover, .metier-item:hover, .impact-card:hover, .journee-bloc:hover, .dual-avantage:hover, .avantage-row:hover {
  transform: perspective(900px) translateY(-5px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  box-shadow: 0 16px 34px rgba(26,39,68,.13);
}
.stat-card:hover { transform: perspective(900px) translateY(-4px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); box-shadow: 0 14px 28px rgba(26,39,68,.18); }
.blog-card:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); box-shadow: 0 18px 36px rgba(26,39,68,.14); }
.journee-bloc img, .blog-card__img { transition: transform .6s ease; }
.journee-bloc:hover img { transform: scale(1.025); }

/* Boutons : reflet qui traverse + léger soulèvement */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg); transition: left .7s ease; pointer-events: none;
}
.btn:hover::after { left: 140%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26,39,68,.20); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255,138,61,.45); }
.hero__actions .btn-primary { animation: rise .9s cubic-bezier(.2,.7,.2,1) .36s both, pulseRing 3.4s ease-out 1.6s infinite; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 3000;
  background: #2D6A4F;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* Bandeau défilant */
.ticker { background: #1A2744; overflow: hidden; padding: .95rem 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.ticker__track { display: flex; width: max-content; animation: tickerMove 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { color: #F8F7F4; font-weight: 600; font-size: .92rem; letter-spacing: .03em; padding: 0 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; }
.ticker__item::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cta); }

@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes glowMove { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,24px) scale(.94); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(255,138,61,.55); } 70% { box-shadow: 0 0 0 16px rgba(255,138,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .hero .bg-blobs { width: 100%; }
  .bg-blobs span { filter: blur(40px); opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .cta-banner, .section--navy, .rythme-hero, .bg-blobs span, .ticker__track, .hero__actions .btn-primary { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Animation v2 ===== */
/* Réseau animé (canvas) sur le panneau marine du hero */
.hero-net { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 0; pointer-events: none;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%); }
/* Titres : balayage de gauche à droite à l'apparition */
.js-reveal .section__header.reveal h2 { clip-path: inset(0 100% 0 0); }
.js-reveal .section__header.reveal.is-visible h2 { clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.65,0,.2,1) .1s; }
/* Étiquettes qui glissent */
.js-reveal .section__header.reveal .tag { transform: translateX(-18px); transition: transform .6s ease; }
.js-reveal .section__header.reveal.is-visible .tag { transform: none; }
/* Icônes qui flottent doucement */
.avantage-item__icon, .dual-avantage__icon, .avantage-row__icon { display: inline-block; animation: bob 4.5s ease-in-out infinite; }
.avantage-item:nth-child(2n) .avantage-item__icon { animation-delay: -1.5s; }
.avantage-item:nth-child(3n) .avantage-item__icon { animation-delay: -3s; }
/* Ligne qui se dessine sous les étiquettes de la hero */
.hero__eyebrow-line { transform-origin: left; animation: drawLine 1s .2s cubic-bezier(.2,.7,.2,1) both; }
/* Liens du menu : soulignement animé */
.nav__links a { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: #2D6A4F; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav__links a:hover::after { transform: scaleX(1); }
/* Flèches des listes qui avancent au survol */
.metier-item, .journee-bloc li, .programme li { transition: padding-left .25s ease, transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.journee-bloc li:hover { padding-left: .35rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 768px) { .hero-net { display: none; } }
@media (prefers-reduced-motion: reduce) { .avantage-item__icon, .dual-avantage__icon, .avantage-row__icon, .hero__eyebrow-line { animation: none !important; } .js-reveal .section__header.reveal h2 { clip-path: none; } }

/* ── Fiche formation ── */
.fiche{margin-top:4rem;scroll-margin-top:90px}
.fiche__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem;margin-top:1.5rem}
.fiche__bloc{background:#fff;border:1px solid var(--bordure);border-radius:var(--r);padding:1.4rem 1.5rem}
.fiche__bloc--large{grid-column:1/-1}
.fiche__bloc h3{font-size:1.05rem;margin-bottom:.7rem;color:var(--navy)}
.fiche__bloc p,.fiche__bloc li{font-size:.93rem;line-height:1.6}
.fiche__bloc ul{list-style:none;padding:0;margin:0}
.fiche__bloc li{padding:.3rem 0 .3rem 1.2rem;position:relative}
.fiche__bloc li::before{content:"";position:absolute;left:0;top:.85em;width:.5rem;height:.5rem;border-radius:50%;background:var(--vert)}
.fiche__chiffres{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.fiche__chiffres div{border-left:3px solid var(--cta);padding-left:.8rem}
.fiche__chiffres strong{display:block;font-family:'DM Serif Display',serif;font-size:1.5rem;color:var(--navy);line-height:1.1}
.fiche__chiffres span{font-size:.85rem;color:#4a5568}
.fiche__note{margin-top:1rem;font-size:.84rem;color:#4a5568}
@media(max-width:760px){.fiche__grid{grid-template-columns:1fr}.fiche__chiffres{grid-template-columns:repeat(2,1fr)}}
.fiche__bloc a{color:var(--vert);text-decoration:underline;font-weight:600}

/* Vignettes blog : icônes lignes sur fond clair */
.blog-card__img{height:170px;background:linear-gradient(135deg,#EAF6F0 0%,#F1F5FA 100%);border-bottom:1px solid var(--bordure);position:relative;overflow:hidden}
.blog-card__img::before{content:"";position:absolute;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(95,227,168,.35),rgba(95,227,168,0) 70%);right:-30px;top:-40px}
.blog-card__img svg{position:relative;width:96px;height:96px;transition:transform .5s ease}
.blog-card:hover .blog-card__img svg{transform:scale(1.08) rotate(-3deg)}
