/* =================================================================
   ALTA ASSURANCES — Feuille de style globale
   Direction artistique épurée et moderne (inspiration hector.legal),
   version bleue. Sobre, anguleux, beaucoup d'espace blanc.
   Titres : Clash Display · Corps : Satoshi (Fontshare)
   ================================================================= */

/* -----------------------------------------------------------------
   1. Variables de design
   ----------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --bleu-principal: #12223A;   /* bleu marine principal */
  --bleu-moyen:     #314D7A;   /* bleu secondaire */
  --bleu-clair:     #4E72AC;   /* bleu accent clair */

  /* Fonds clairs dominants */
  --fond:           #FFFFFF;
  --fond-doux:      #F5F7FA;   /* gris-bleu très clair */
  --fond-carte:     #FFFFFF;

  /* Texte */
  --texte:          #12223A;
  --texte-doux:     #56627A;
  --texte-inverse:  #FFFFFF;

  /* Bordures & ombres (discrètes) */
  --bordure:        #E6EAF0;
  --bordure-forte:  #D4DAE4;
  --ombre-douce:    0 2px 20px rgba(18, 34, 58, .05);

  /* Typographie */
  --titre: "Clash Display", "Satoshi", system-ui, sans-serif;
  --corps: "Satoshi", system-ui, -apple-system, sans-serif;

  /* Rythme & largeurs */
  --largeur-max: 1200px;
  --rayon:       2px;   /* coins quasi nets, look sobre */

  /* Transitions douces */
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* -----------------------------------------------------------------
   2. Réinitialisation & base
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 400;            /* Clash Display régulier, pas en gras */
  line-height: 1.12;
  color: var(--bleu-principal);
  margin: 0 0 .4em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; color: var(--texte-doux); }

/* Accessibilité : focus visible homogène */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--bleu-clair);
  outline-offset: 2px;
}

/* Lien d'évitement */
.lien-evitement {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--bleu-principal);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
}
.lien-evitement:focus { left: 0; }

/* -----------------------------------------------------------------
   3. Conteneurs & utilitaires
   ----------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 110px 0; }
.section--doux { background: var(--fond-doux); }

.section-titre { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-titre h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* Sur-titre discret */
.surtitre {
  display: inline-block;
  font-family: var(--corps);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bleu-clair);
  margin-bottom: 18px;
}

/* -----------------------------------------------------------------
   4. Boutons — RECTANGULAIRES (sobres)
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--corps);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 15px 32px;
  border-radius: 8px;          /* rectangulaire à coins arrondis */
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

/* Bouton principal (bleu plein) */
.btn--principal { background: var(--bleu-principal); color: var(--texte-inverse); }
.btn--principal:hover { background: var(--bleu-moyen); }

/* Bouton secondaire (contour) */
.btn--contour { background: transparent; color: var(--bleu-principal); border-color: var(--bordure-forte); }
.btn--contour:hover { border-color: var(--bleu-principal); }

/* Bouton clair (sur fond foncé / photo) */
.btn--clair { background: #fff; color: var(--bleu-principal); }
.btn--clair:hover { background: rgba(255, 255, 255, .85); }

/* Bouton compact (en-tête) */
.btn--sm { padding: 9px 20px; font-size: .9rem; }

/* Lien fléché sobre */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--bleu-moyen);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.lien-fleche:hover { color: var(--bleu-principal); }

/* -----------------------------------------------------------------
   5. En-tête / bandeau de navigation (fin)
   ----------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--bordure);
}
.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo (assets/img/logo.png) */
.logo { display: inline-flex; align-items: center; }
.logo__img {
  height: 42px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Navigation principale */
.nav { display: flex; align-items: center; gap: 36px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__liens { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__liens a {
  font-weight: 500;
  font-size: .96rem;
  color: var(--texte);
  position: relative;
  padding-bottom: 4px;
}
.nav__liens a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--bleu-principal);
  transition: width var(--transition);
}
.nav__liens a:hover::after,
.nav__liens a.actif::after { width: 100%; }

/* Bouton hamburger (mobile) */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--bleu-principal); transition: var(--transition); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------
   6. Hero (accueil) — logo + slogan SUR la photo
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62vh;
  overflow: hidden;
  background: var(--bleu-principal);
}
/* Photo de fond, légèrement floutée et assombrie pour la lisibilité */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero_photo.jpg") center 35% / cover no-repeat;
  filter: blur(6px) brightness(.62) saturate(.9);
  transform: scale(1.1);   /* masque les bords flous */
}
/* Voile bleu pour renforcer le contraste */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,34,58,.55) 0%, rgba(18,34,58,.4) 45%, rgba(18,34,58,.6) 100%);
}
.hero__contenu {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
}
/* Logo en TRÈS GRAND, en blanc */
.hero__logo {
  width: min(780px, 92vw);
  margin: 0 auto 24px;
  filter: brightness(0) invert(1);   /* logo navy -> blanc */
}
/* Slogan plus PETIT, en blanc, léger */
.hero__slogan {
  font-family: var(--titre);
  font-weight: 400;
  color: #fff;
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 auto 38px;
  max-width: 30ch;
  opacity: .95;
}

/* -----------------------------------------------------------------
   7. Section « présentation » (titre + paragraphe plus petit)
   ----------------------------------------------------------------- */
.presentation { text-align: center; }
.presentation h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 20ch; margin-inline: auto; }
.presentation p { max-width: 700px; margin: 24px auto 0; font-size: 1rem; }

/* -----------------------------------------------------------------
   8. Bloc « 4 atouts » — cartes plus PETITES, numéros éditoriaux
   ----------------------------------------------------------------- */
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--bordure); }
.atout {
  position: relative;
  min-height: 200px;
  padding: 28px 26px;
  border-right: 1px solid var(--bordure);
  background: var(--fond-carte);
  overflow: hidden;
  transition: background var(--transition);
}
.atout:last-child { border-right: none; }

/* Numéro éditorial (remplace les icônes) */
.atout__num {
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1rem;
  color: var(--bleu-clair);
  letter-spacing: .05em;
  margin-bottom: 36px;
  transition: color var(--transition);
}

.atout__faces { position: relative; }
.atout__face { transition: opacity var(--transition), transform var(--transition); }
.atout__face--avant h3 { font-size: 1.05rem; font-weight: 600; color: var(--bleu-principal); margin: 0; line-height: 1.3; }
.atout__face--apres {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start;
  opacity: 0; transform: translateY(8px); pointer-events: none;
}
.atout__face--apres p { color: rgba(255, 255, 255, .9); font-size: .98rem; margin: 0; line-height: 1.45; }

/* État survol / focus / actif (tactile) */
.atout:hover,
.atout:focus-within,
.atout.est-actif { background: var(--bleu-principal); }
.atout:hover .atout__num,
.atout:focus-within .atout__num,
.atout.est-actif .atout__num { color: rgba(255, 255, 255, .55); }
.atout:hover .atout__face--avant,
.atout:focus-within .atout__face--avant,
.atout.est-actif .atout__face--avant { opacity: 0; transform: translateY(-8px); }
.atout:hover .atout__face--apres,
.atout:focus-within .atout__face--apres,
.atout.est-actif .atout__face--apres { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* -----------------------------------------------------------------
   9. Bloc catalogue
   ----------------------------------------------------------------- */
.catalogue { text-align: center; max-width: 640px; margin: 0 auto; }
.catalogue h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.catalogue p { margin: 0 auto 30px; }

/* -----------------------------------------------------------------
   10. Section fondatrices (photo + citation)
   ----------------------------------------------------------------- */
.fondatrices {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 64px;
  align-items: center;
}
.fondatrices__photo img { width: 100%; }
.fondatrices__citation blockquote {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--bleu-principal);
  margin: 0 0 24px;
}
.fondatrices__citation cite { font-style: normal; color: var(--texte-doux); font-size: 1rem; }
.fondatrices__citation cite strong { display: block; color: var(--bleu-principal); font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }

/* -----------------------------------------------------------------
   11. Blocs de contact (sobres, sans icône « cheap »)
   ----------------------------------------------------------------- */
.contact-blocs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--bordure); }
.contact-bloc {
  padding: 52px 48px;
  background: var(--fond);
  border-right: 1px solid var(--bordure);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-bloc:last-child { border-right: none; }
.contact-bloc h3 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-bloc p { margin-bottom: 24px; }
.contact-bloc--fonce { background: var(--bleu-principal); }
.contact-bloc--fonce h3 { color: #fff; }
.contact-bloc--fonce p { color: rgba(255, 255, 255, .78); }

/* Adresse e-mail : traitement typographique sobre */
.contact-mail {
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--bleu-principal);
  border-bottom: 1.5px solid var(--bordure-forte);
  padding-bottom: 4px;
  transition: border-color var(--transition), color var(--transition);
}
.contact-mail:hover { border-color: var(--bleu-principal); }
.contact-mail__label { display: block; font-family: var(--corps); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bleu-clair); margin-bottom: 10px; }

/* -----------------------------------------------------------------
   12. Pied de page
   ----------------------------------------------------------------- */
.footer { background: var(--bleu-principal); color: rgba(255, 255, 255, .8); padding: 88px 0 32px; }
.footer a { color: rgba(255, 255, 255, .75); }
.footer a:hover { color: #fff; }

.footer__newsletter {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer__newsletter h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.footer__form { display: flex; gap: 10px; margin-top: 24px; }
.footer__form input {
  flex: 1;
  padding: 15px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-family: var(--corps);
  font-size: 1rem;
}
.footer__form input::placeholder { color: rgba(255, 255, 255, .5); }
.footer__petit { font-size: .82rem; color: rgba(255, 255, 255, .5); margin-top: 14px; }

.footer__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer__col h4 { color: #fff; font-size: .82rem; font-family: var(--corps); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 14px; }
.footer__col li a { font-size: .95rem; }

/* Logo complet « Alta Assurances » en blanc (largeur maîtrisée = pas de déformation) */
.footer__logo { width: 280px; max-width: 100%; height: auto; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer__marque p { color: rgba(255, 255, 255, .65); font-size: .95rem; max-width: 280px; }

/* Réseaux sociaux */
.reseaux { display: flex; gap: 10px; margin-top: 22px; }
.reseaux a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); transition: var(--transition); }
.reseaux a:hover { background: rgba(255, 255, 255, .1); }
.reseaux img { width: 17px; height: 17px; }

/* Emplacement Qualiopi (image à déposer dans assets/img/qualiopi.png) */
.qualiopi-slot {
  background: #fff;
  width: 100%;
  max-width: 200px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.qualiopi-slot img { max-height: 80px; width: auto; }

.footer__bas {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .85rem;
}
.footer__bas-liens { display: flex; flex-wrap: wrap; gap: 24px; }

/* -----------------------------------------------------------------
   13. Pages internes : en-tête de page
   ----------------------------------------------------------------- */
.page-hero { text-align: center; padding: 96px 0 64px; border-bottom: 1px solid var(--bordure); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { max-width: 640px; margin: 16px auto 0; font-size: 1.08rem; }

/* -----------------------------------------------------------------
   14. Page À propos
   ----------------------------------------------------------------- */
.apropos-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.apropos-intro__photo img { width: 100%; }
.apropos-bloc { max-width: 760px; margin: 0 auto; }
.apropos-bloc h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 1.6em; }
.apropos-bloc ul { color: var(--texte-doux); padding-left: 1.2em; }
.apropos-bloc li { margin-bottom: 10px; }

/* -----------------------------------------------------------------
   15. Page FAQ — accordéon SOBRE (sans encadré ni rond)
   ----------------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--bordure); margin-bottom: 14px; }
.faq__item:first-child { border-top: 1px solid var(--bordure); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 28px 4px;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--bleu-principal);
}
/* Signe + / − minimaliste */
.faq__q .plus { flex: 0 0 auto; width: 20px; height: 20px; position: relative; }
.faq__q .plus::before,
.faq__q .plus::after { content: ""; position: absolute; background: var(--bleu-principal); }
.faq__q .plus::before { top: 9px; left: 0; right: 0; height: 1.5px; }
.faq__q .plus::after { left: 9px; top: 0; bottom: 0; width: 1.5px; transition: transform var(--transition); }
.faq__item.ouvert .plus::after { transform: scaleY(0); }

.faq__r { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq__r-inner { padding: 0 4px 32px; color: var(--texte-doux); font-size: 1rem; max-width: 90%; }
.faq__r-inner p:last-child { margin-bottom: 0; }

/* Renvoi contact en bas de FAQ */
.faq-contact { text-align: center; max-width: 600px; margin: 72px auto 0; }

/* -----------------------------------------------------------------
   16. Formulaires (Contact, Connexion)
   ----------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__ligne { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ label { font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu-moyen); }
.champ input,
.champ textarea,
.champ select {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--bordure-forte);
  border-radius: 6px;
  font-family: var(--corps);
  font-size: 1rem;
  color: var(--texte);
  background: var(--fond);
  transition: border-color var(--transition);
}
.champ input:focus,
.champ textarea:focus { border-color: var(--bleu-principal); outline: none; }
.champ textarea { resize: vertical; min-height: 150px; }
.champ--case { flex-direction: row; align-items: flex-start; gap: 12px; }
.champ--case input { width: auto; margin-top: 5px; }
.champ--case label { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--texte-doux); font-size: .92rem; }

.carte-form { background: #fff; border: 1px solid var(--bordure); padding: clamp(28px, 4vw, 48px); }

.auth-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 920px; margin: 0 auto; border: 1px solid var(--bordure); }
.auth-grille .carte-form { border: none; border-right: 1px solid var(--bordure); }
.auth-grille .carte-form:last-child { border-right: none; }
.auth-grille .carte-form h2 { font-size: 1.5rem; }
.auth-note { text-align: center; font-size: .9rem; color: var(--texte-doux); max-width: 720px; margin: 36px auto 0; }

/* Carte d'authentification seule, centrée (connexion OU inscription) */
.auth-simple { max-width: 460px; margin: 0 auto; }
.auth-bascule { text-align: center; font-size: .95rem; color: var(--texte-doux); margin: 22px auto 0; }
.auth-bascule a { color: var(--bleu-moyen); font-weight: 600; border-bottom: 1px solid currentColor; }

.contact-grille { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-infos h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* -----------------------------------------------------------------
   17. Page « Nos formations » (placeholder)
   ----------------------------------------------------------------- */
.placeholder { text-align: center; border: 1px solid var(--bordure); padding: clamp(48px, 8vw, 100px) 32px; background: var(--fond-doux); max-width: 860px; margin: 0 auto; }
.placeholder h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.placeholder p { max-width: 520px; margin-inline: auto; }

/* -----------------------------------------------------------------
   17b. Page « Nos formations » — choix + axes
   ----------------------------------------------------------------- */
/* Bandeau d'annonce (type alerte) */
.bandeau-annonce {
  background: var(--bleu-clair);
  color: #fff;
  text-align: center;
  padding: 13px 24px;
  font-size: .96rem;
  font-weight: 500;
}
.bandeau-annonce strong { font-weight: 700; }

/* Petit badge « Bientôt disponible » */
.badge {
  display: inline-block;
  font-family: var(--corps);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bleu-moyen);
  background: rgba(78, 114, 172, .12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Choix des deux types de formation (en tête de page) */
.choix-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.choix-carte {
  border: 1px solid var(--bordure);
  background: var(--fond);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.choix-carte:hover { box-shadow: var(--ombre-douce); transform: translateY(-3px); }
.choix-carte h3 { font-size: 1.5rem; margin-bottom: 12px; }
.choix-carte p { flex: 1; font-size: 1rem; }
.choix-carte .btn { margin-top: 8px; }

/* En-tête d'axe */
.axe-titre { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.axe-titre h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.axe-titre p { font-size: 1.05rem; margin-top: 18px; }

/* Une partie « sur mesure » = bannière bleutée + corps de texte */
.partie { margin-bottom: 72px; }
.partie:last-child { margin-bottom: 0; }
.partie__corps { max-width: 820px; margin: 36px auto 0; }
.partie__corps ul { color: var(--texte-doux); padding-left: 1.2em; }
.partie__corps li { margin-bottom: 8px; }

/* Photo bleutée (même esprit que le hero de l'index) */
.media-bleu {
  position: relative;
  overflow: hidden;
  background: var(--bleu-principal);
  min-height: 280px;
  display: flex;
  align-items: center;
}
.media-bleu img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(.9);   /* photo légèrement assombrie */
}
/* Voile bleu par-dessus la photo (lisibilité du texte + teinte bleutée) */
.media-bleu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 34, 58, .8) 0%, rgba(18, 34, 58, .45) 100%);
}
.media-bleu__entete {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
}
.media-bleu__num {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: rgba(255, 255, 255, .8);
  line-height: 1;
}
.media-bleu__entete h3 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.6vw, 2rem); }

/* Thèmes e-learning (sans vidéos) */
.themes { display: grid; gap: 0; border: 1px solid var(--bordure); max-width: 980px; margin: 0 auto 40px; }
.theme {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 40px;
  border-bottom: 1px solid var(--bordure);
  transition: background var(--transition);
}
.theme:last-child { border-bottom: none; }
.theme:hover { background: var(--fond-doux); }
.theme__num { font-family: var(--titre); font-weight: 400; font-size: 1.1rem; color: var(--bleu-clair); padding-top: 4px; }
.theme__contenu h3 { font-size: 1.3rem; margin-bottom: 10px; }
.theme__contenu p { margin: 0; font-size: 1rem; }

/* -----------------------------------------------------------------
   18. Pages légales
   ----------------------------------------------------------------- */
.contenu-legal { max-width: 800px; margin: 0 auto; }
.contenu-legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.contenu-legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.contenu-legal p, .contenu-legal li { color: var(--texte-doux); font-size: 1rem; }
.contenu-legal ul { padding-left: 1.2em; }

/* -----------------------------------------------------------------
   19. Apparitions douces
   ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* -----------------------------------------------------------------
   20. Responsive
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .atouts { grid-template-columns: repeat(2, 1fr); }
  .atout:nth-child(2) { border-right: none; }
  .atout:nth-child(1), .atout:nth-child(2) { border-bottom: 1px solid var(--bordure); }
  .footer__grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }

  /* Navigation mobile */
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre-douce);
    padding: 12px 32px 28px;
    transform: translateY(-130%);
    transition: transform var(--transition);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav.ouvert { transform: translateY(0); }
  .nav__liens { flex-direction: column; gap: 0; }
  .nav__liens li { border-bottom: 1px solid var(--bordure); }
  .nav__liens a { display: block; padding: 17px 4px; }
  .nav__liens a::after { display: none; }
  .nav__actions { flex-direction: column; gap: 10px; margin-top: 18px; }
  .nav__actions .btn { justify-content: center; }

  .hero { min-height: 78vh; }
  .apropos-intro { grid-template-columns: 1fr; gap: 40px; }
  .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .auth-grille { grid-template-columns: 1fr; }
  .auth-grille .carte-form { border-right: none; border-bottom: 1px solid var(--bordure); }
  .contact-blocs { grid-template-columns: 1fr; }
  .contact-bloc { border-right: none; border-bottom: 1px solid var(--bordure); }
  .fondatrices { grid-template-columns: 1fr; gap: 36px; }
  .choix-grille { grid-template-columns: 1fr; }
  .media-bleu__entete { gap: 18px; }
  .theme { grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
}

@media (max-width: 560px) {
  .atouts { grid-template-columns: 1fr; }
  .atout { border-right: none; border-bottom: 1px solid var(--bordure); }
  .footer__grille { grid-template-columns: 1fr; gap: 36px; }
  .footer__form { flex-direction: column; gap: 12px; }
  .footer__form input { border-right: 1px solid rgba(255, 255, 255, .25); }
  .footer__form .btn { justify-content: center; }
  .form__ligne { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero::before { filter: brightness(.62); }
}
