/*
Theme Name: IPLAP
Theme URI: https://www.iplap-mali.com
Author: JatigIA
Author URI: https://www.jatigia.com
Description: Institut Privé de Langues Appliquées - Performance
Version: 1.0.0
Text Domain: iplap
*/
/* ====== À PROPOS (scopé pour ne rien casser) ====== */
.about-page { --gap: 28px; }

/* HERO */
.about-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.about-hero img { width: 100%; height: clamp(260px, 40vw, 440px); object-fit: cover; display:block; }
.about-hero__overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding: clamp(16px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55) 100%);
  color:#fff;
}
.about-hero h1{ font-size: clamp(28px, 4.2vw, 52px); line-height:1.1; margin:0 0 6px 0; }
.about-hero__tagline{ font-size: clamp(16px, 1.6vw, 20px); opacity:.95; }

/* BANDEAU DEVISE */
.about-band{ background:var(--primary); color:#fff; border-radius:14px; margin:12px 0 24px; }
.about-band__inner{ padding:14px clamp(12px, 2.8vw, 22px); display:flex; flex-wrap:wrap; gap:10px; align-items:baseline; }
.about-band__desc{ opacity:.9; }

/* SECTIONS ALTERNÉES */
.about-alt{ display:grid; grid-template-columns: 1fr; gap: var(--gap); align-items:center; margin: 28px 0; }
.about-alt--reverse{ direction: rtl; }            /* astuce pour inverser sans changer le HTML */
.about-alt--reverse > *{ direction: ltr; }
.about-alt__img img{ width:100%; height: clamp(220px, 36vw, 420px); object-fit:cover; border-radius:14px; }
.about-alt__txt h2{ margin:0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.about-list{ margin: 10px 0 0 1rem; display:grid; gap:6px; }
.about-list li{ list-style: disc; }

/* desktop */
@media (min-width: 900px){
  .about-alt{ grid-template-columns: 1.1fr 1fr; }
}

/* POURQUOI NOUS REJOINDRE */
.about-why{ margin: 34px 0; }
.about-why h2{ text-align:center; margin-bottom: 16px; }
.about-cards{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: var(--gap); margin-top: 14px;
}
.about-card{
  background: var(--bg, #fff); border:1px solid #e6e6e6; border-radius:14px;
  padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.about-card h3{ margin-top:0; font-size: 18px; }

.about-stats{
  display:grid; grid-template-columns: repeat(5, minmax(120px,1fr));
  gap: var(--gap); margin-top: 20px;
}
.about-stat{
  background:#f8fafc; border:1px solid #e7eef6; border-radius:12px; padding:14px; text-align:center;
}
.about-stat strong{ display:block; font-size:22px; }
.about-stat span{ opacity:.8; font-size:14px; }

@media (max-width: 900px){
  .about-stats{ grid-template-columns: repeat(2, 1fr); }
}

/* DIRECTION */
.about-team{ margin: 38px 0; }
.about-team h2{ text-align:center; margin-bottom: 18px; }
.about-team__grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: var(--gap);
}
.about-team__card{
  text-align:center; background:#fff; border:1px solid #e6e6e6; border-radius:14px; padding:16px;
}
.about-team__card img{ width:100%; height:260px; object-fit:cover; border-radius:12px; }
.about-team__card h3{ margin:10px 0 4px; }

/* CTA */
.about-cta{ margin: 36px 0 10px; }
.about-cta__inner{ display:flex; gap:12px; justify-content:center; }
.about-cta .btn{
  background:var(--secondary); color:#fff; padding:12px 18px; border-radius:999px; text-decoration:none;
}
.about-cta .btn--ghost{
  background:transparent; color:var(--secondary); border:2px solid var(--secondary);
}

.about-band {
  text-align: center;
  padding: 60px 20px;
  background: var(--muted);
}

.about-band__inner {
  max-width: 900px;
  margin: 0 auto;
}

.devise-item {
  margin: 20px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.devise-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primaire);
  margin-bottom: 8px;
}

.devise-item p {
  font-size: 1.1rem;
  color: var(--texte);
}

/* Animation reveal (comme la home) */
.devise-item.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Devise (cartes) --- */
.about-devise { padding: 40px 0; }
.about-devise .center { text-align: center; margin-bottom: 16px; }

.about-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about-cards { grid-template-columns: repeat(3, 1fr); }
}

.info-card {
  text-align: center;
  padding: 20px;
}
.info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--secondary);
  display: grid;
  place-items: center;
}
.info-card h3 {
  margin: 6px 0 4px;
  font-size: 1.15rem;
}
.info-card p {
  margin: 0;
  opacity: .85;
}

/* --- Blocs About (Histoire / Valeurs / Vision) --- */
.about-block {
  padding: 20px;
  margin: 16px 0;
}

/* --- Effet reveal (reprend le style home) --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

/* ---- About: layout & cards ---- */
.about-hero { padding: 40px 0 10px; }
.hero-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap:28px; align-items:center; }
.hero-media img { width:100%; height:auto; border-radius:16px; object-fit:cover; }
.hero-copy h1 { margin:0 0 8px; line-height:1.2; }
.hero-copy .lead { opacity:.85; margin:0 0 14px; }
.hero-cta { display:flex; gap:10px; flex-wrap:wrap; }

.alt-section { padding: 28px 0; }
.alt-grid { display:grid; grid-template-columns: 1fr 1fr; gap:24px; align-items:center; }
.alt-grid--reverse { direction: rtl; }
.alt-grid--reverse .alt-copy,
.alt-grid--reverse .alt-media { direction: ltr; }
.alt-media img { width:100%; height:auto; border-radius:16px; object-fit:cover; }

.feature-cards { display:grid; grid-template-columns: repeat( auto-fit, minmax(220px,1fr) ); gap:14px; margin-top:10px; }
.card { background:#fff; box-shadow: 0 10px 25px rgba(0,0,0,.06); border-radius:16px; padding:16px; }
.feature-card h3 { margin:.25rem 0 .35rem; }
.feature-icon { width:38px; height:38px; border-radius:10px; background:var(--muted, #f5f5f5); display:grid; place-items:center; }
.feature-icon svg { width:22px; height:22px; color:var(--secondary); fill:currentColor; }

.device-grid, .reason-grid, .team-grid { gap:14px; }

/* Devise (style “contact”) */
.info-card { display:grid; gap:8px; align-content:start; }
.info-icon { width:44px; height:44px; border-radius:12px; background:var(--muted, #f5f5f5); display:grid; place-items:center; }
.info-icon svg { width:24px; height:24px; color:var(--secondary); fill:currentColor; }

/* Chiffres clés */
.stats-band { background: var(--muted, #f7f8f9); padding: 18px 0; }
.stats-grid { display:grid; grid-template-columns: repeat( auto-fit, minmax(160px,1fr) ); gap:10px; }
.stat-card { text-align:center; padding:10px; }
.stat-num { font-size:1.6rem; font-weight:700; color:var(--primary); line-height:1; }
.stat-label { font-size:.95rem; opacity:.85; }

/* Points forts */
.check-list { list-style:none; padding:0; margin:10px 0 0; display:grid; gap:10px; }
.check-list li { padding-left:28px; position:relative; }
.check-list li::before {
  content:""; position:absolute; left:0; top:.35em; width:18px; height:18px; border-radius:50%;
  background:var(--secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Team */
.team-photo { aspect-ratio: 4/3; overflow:hidden; border-radius:12px; }
.team-photo img { width:100%; height:100%; object-fit:cover; }
.team-card h3 { margin:.5rem 0 .25rem; }

/* CTA final */
.final-cta { display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 28px; }

/* Utilities */
.center { text-align:center; }
.nowrap { white-space:nowrap; }

/* Responsive */
@media (max-width: 990px){
  .hero-grid, .alt-grid { grid-template-columns: 1fr; }
  .alt-grid--reverse { direction:ltr; }
}


/* (Header styles moved to custom.css for maintainability) */

/* Décale le contenu en fonction de la hauteur réelle du header (mise à jour via JS) */
body { padding-top: var(--header-h, 100px); }

/* Grille responsive douce */
.grid-3 {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 16px;
}

/* Carte formation/activité modernisée */
.prog-card img { width:100%; height:180px; object-fit:cover; border-radius:12px; margin-bottom:10px; }
.prog-card h3 { margin:.25rem 0 .35rem; font-size:1.1rem; }
.prog-card ul { margin:.4rem 0 .6rem 1.1rem; display:grid; gap:4px; }
.prog-card .btn.btn-cta { margin-top: 6px; }

/* Reveal (si pas déjà présent) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

/* Grille des cartes Formations/activités */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px,1fr));
  gap: 16px;
}

/* Carte formation */
.prog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow: hidden;
}
.prog-media .prog-img {
  width: 100%;
  height: clamp(180px, 28vw, 260px);
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.prog-body { display: grid; gap: 10px; align-content: start; }
.prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prog-title { margin: 0; }

/* Liste points forts */
.prog-points { margin: 6px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; }

/* CTA aligné à droite */
.prog-cta {
  display: flex;
  justify-content: flex-end;  /* -> bouton à droite */
  margin-top: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center; /* centre si peu d’éléments */
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

/* === Page Formations : grille avec colonnes fixes centrées === */
.page-Formations .grid-3,
.page-Formations .prog-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); /* colonnes 280–340px */
  gap: 2rem;
  justify-content: center;   /* centre les colonnes si peu d’items */
}


/* Carte formation : structure verticale + CTA à droite */
.page-Formations .card.prog-card{
  display: grid;
  grid-template-rows: auto 1fr auto; /* image | contenu | footer */
  gap: 10px;
}
.page-Formations .card.prog-card .card-footer{
  display: flex;
  justify-content: flex-end; /* bouton à droite */
}

/* ===== Formations (listing) ===== */
.prog-section { padding: 18px 0 10px; }
.prog-head { text-align: center; margin: 0 0 14px; }
.prog-title { margin: 0 0 6px; }
.prog-intro { opacity: .85; margin: 0; }

.prog-list { display: grid; gap: 16px; }

/* Carte alternée image/texte */
.prog-card{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.prog-card--reverse{ direction: rtl; }
.prog-card--reverse > *{ direction: ltr; }

/* Media */
.prog-media img{ width: 100%; height: clamp(220px, 32vw, 360px); object-fit: cover; border-radius: 12px; display:block; }
.prog-media__ph{
  height: clamp(220px, 32vw, 360px);
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--muted, #f7f8f9);
  color: #8c8c8c;
  font-weight: 600;
}

/* Corps */
.prog-h{ margin:.25rem 0 .35rem; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }
.prog-desc{ margin: 0 0 8px; opacity: .9; }
.prog-bullets{ margin: 0 0 6px 1rem; display: grid; gap: 6px; }
.prog-bullets li{ list-style: disc; }

/* CTA : “En savoir plus” + “S’inscrire” à droite */
.prog-cta{ display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 8px; }
.prog-cta .align-right{ justify-self: end; }
.prog-cta .btn{ text-decoration: none; border-radius: 999px; padding: 10px 14px; }
.prog-cta .btn-cta{ background: var(--secondary); color: #fff; }
.prog-cta .btn-cta:hover{ filter: brightness(.95); }
.prog-cta .btn--ghost{ border: 2px solid var(--secondary); color: var(--secondary); background: transparent; }

/* Reveal (réutilise ta logique globale) */
.prog-card.reveal{ opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.prog-card.reveal.reveal-in{ opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px){
  .prog-card{ grid-template-columns: 1fr; }
  .prog-card--reverse{ direction: ltr; }
  .prog-cta{ grid-template-columns: 1fr; }
  .prog-cta .align-right{ justify-self: stretch; }
}

/* ===== Activités ===== */
.acts-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  margin-top: 10px;
}
.act-card{
  background:#fff; border:1px solid #eaeaea; border-radius: 14px; padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.act-card h3{ margin: 2px 0 6px; }
.act-desc{ margin: 0 0 10px; opacity: .9; }
.act-cta .btn-cta{ background: var(--secondary); color: #fff; border-radius: 999px; padding: 10px 14px; text-decoration: none; }
.act-cta .btn-cta:hover{ filter: brightness(.95); }

/* ===== Page Formations : forcer 2 colonnes ===== */
body.page-template-page-Formations .prog-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px;              /* ajuste si besoin */
  justify-content: center;
}

@media (max-width: 980px){
  body.page-template-page-Formations .prog-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Ajustements UI */
.inline-radios { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.inline-radios label { display:inline-flex; gap:8px; align-items:center; }
.stack-radios .stack { display:block; margin:6px 0; }
.select { width:100%; padding:12px; border:1px solid #e5e7eb; border-radius:10px; font:inherit; }
.inline-check { display:flex; align-items:center; gap:10px; }

.req { color:#E53935; margin-left:4px; }
.alert.error {
  background:#fdecea; border:1px solid #f5c6cb; color:#7f1d1d;
  border-radius:10px; padding:12px 14px;
}
.field-error input,
.field-error select,
.field-error textarea {
  border-color:#E53935 !important;
  outline-color:#E53935 !important;
}
.field-error .inline-radios,
.field-error .stack-radios {
  outline:2px solid #E53935; outline-offset:4px; border-radius:8px; padding:4px;
}
.pi-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.pi-actions-right { display:flex; gap:10px; }
.pi-actions .btn { min-width:160px; }
.btn-danger { background:#E53935; color:#fff; }
.btn-secondary { background:var(--accent); color:#fff; }
.btn-cta { background:var(--secondary); color:#fff; }
.btn-final { background: var(--primary); color:#fff; }

/* Dropzone */
.dropzone {
  background:#fafafa; border:2px dashed #d1d5db; border-radius:12px;
  padding:18px; text-align:center; cursor:pointer; user-select:none;
}
.dropzone.is-dragover { background:#f0f9ff; border-color:#60a5fa; }

/* Erreurs */
.field-error {
  color:#b91c1c; font-size:.9rem; margin:.35rem 0 0 0;
}
[aria-invalid="true"], .has-error input, .has-error select, .has-error textarea {
  border-color:#ef4444 !important;
}

body {
  background-color: var(--muted);
}

/* Fond par défaut (toutes les pages) */
html, body {
  background: var(--muted) !important; /* gris clair uniforme */
}





/* === 1) Fond par défaut partout (gris clair de la charte) === */
html, body { background: var(--muted) !important; }

/* Évite les bandes blanches locales pour laisser voir le fond de page */
main, .page, section, .container { background: transparent; }

/* === 2) Dégradé bleu — à appliquer sur certaines pages seulement === */
/* Contact */
.page.contact-page,
body.page-template-page-contact,
body.page-id-contact /* optionnel si tu utilises un ID */ {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary) 4%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%,  #fff) 25%,
    var(--muted) 35%
  ) !important;
}

/* À propos */
.page.page-about,
body.page-template-page-about {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary) 4%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%,  #fff) 25%,
    var(--muted) 35%
  ) !important;
}

/* Inscription */
.page.page-inscription,
body.page-template-page-inscription {
  background: linear-gradient(180deg,
   color-mix(in srgb, var(--primary) 4%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%,  #fff) 25%,
    var(--muted) 35%
  ) !important;
}

/* Formations (liste) */
body.page-template-page-Formations,
body.post-type-archive-formation {
  background: linear-gradient(180deg,
     color-mix(in srgb, var(--primary) 4%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%,  #fff) 25%,
    var(--muted) 35%
  ) !important;
}

/* Formations — fiche unitaire (CPT “formation”) */
body.single-formation,
body.single-program {
  background: linear-gradient(180deg,
   color-mix(in srgb, var(--primary) 4%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%,  #fff) 25%,
    var(--muted) 35%
  ) !important;
}

/* Activités (page liste & éventuel CPT “activite”) */
body.page-activites,
body.page-template-page-activites,
body.post-type-archive-activite,
body.single-activite {
  background: linear-gradient(180deg,
     color-mix(in srgb, var(--primary) 4%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%,  #fff) 25%,
    var(--muted) 35%
  ) !important;
}

/* === 3) Sections locales qui forçaient un fond : on les remet transparents sur ces pages === */
.page.contact-page .contact-hero,
.page.contact-page .contact-faq,
.page.contact-page .stats,
.page.page-about .about-band,
.page.page-about .about-why,
.page.page-inscription .stats,

body.page-template-page-Formations .prog-section {
  background: transparent !important;
}



/* === Pré‑inscription : pas de bandeau en haut === */
.preinscription-page .contact-hero,
.preinscription-page .hero,
.preinscription-page .page-head,
.page-inscription .contact-hero,
.page-inscription .hero,
.page-template-page-inscription .contact-hero {
  background: transparent !important;
  padding-top: 24px;
  padding-bottom: 0;
  border: 0;
  box-shadow: none;
  margin-bottom: 40px; /* ajoute un espace dessous */

}

/* === Barre de progression : largeur contenue, centrée, pas de chevauchement === */
.preinscription-page .pi-progress-wrap,
.page-inscription .pi-progress-wrap,
.page-template-page-inscription .pi-progress-wrap {
  max-width: 960px;          /* ajuste 880–1040px si tu veux */
  margin: 8px auto 14px;     /* centre + espace en bas */
}

/* Si ta barre a ces classes : */
.preinscription-page .pi-progress,
.page-inscription .pi-progress,
.page-template-page-inscription .pi-progress {
  height: 10px;              /* plus fin = plus élégant */
  background: #e9eef1;       /* rail */
  border-radius: 999px;
  overflow: hidden;
}

/* Le “remplissage” (la partie colorée qui avance) */
.preinscription-page .pi-progress .pi-progress-fill,
.page-inscription .pi-progress .pi-progress-fill,
.page-template-page-inscription .pi-progress .pi-progress-fill {
  height: 100%;
  background: var(--secondary);   /* ou var(--primary) selon ta charte */
}

/* Évite tout contact avec le bloc suivant, même si le markup change */
.preinscription-page .pi-progress-wrap + *,
.page-inscription .pi-progress-wrap + *,
.page-template-page-inscription .pi-progress-wrap + * {
  margin-top: 10px;
}

/* Mobile : on laisse 100% de largeur, juste l’espacement */
@media (max-width: 640px){
  .preinscription-page .pi-progress-wrap,
  .page-inscription .pi-progress-wrap,
  .page-template-page-inscription .pi-progress-wrap {
    max-width: none;
    margin: 6px 0 12px;
    padding: 0 12px;
  }
}

/* Corrige le hero "À propos" pour que l'image s'affiche bien au-dessus */
.page-about .about-hero {
  position: relative;
  z-index: 2; /* passe devant le body/degradé */
}

.page-about .about-hero img {
  position: relative;
  z-index: 2; /* idem pour l'image */
}

/* À propos : faire disparaître le bandeau et mettre le hero en premier */
main.container.page.about-page{
  margin-top: calc(-1 * var(--header-h, 100px)); /* on annule l'espace sous le header */
  
}

/* (sécurité) on s'assure que le hero passe devant tout */
.page.about-page .about-hero{
  position: relative;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
}

.page.about-page .about-hero img{
  display:block;
  width:100%;
  height: clamp(260px, 40vw, 440px);
  object-fit: cover;
}

/* ===== À propos : laisser un espace sous le header ===== */
.page.about-page {               /* ton <main class="container page about-page"> */
  padding-top: clamp(16px, 2vw, 28px);
}

/* (sécurité) s’assurer que le header passe bien au-dessus */
.ivp-header { z-index: 1000; }
.about-hero { z-index: 0; }


/* Décaler le hero sous le header (sans chevauchement) */
.about-page .about-hero{
  margin-top: clamp(48px, 2.5vw, 72px);  /* espace sous le header */
  position: relative;
  z-index: 0;
}

/* S’assurer que le header reste au‑dessus */
.ivp-header{ z-index: 1000; }

/* Sécurité : pas de marge négative qui remonterait l’image */
.about-hero img{ display:block; }

/* rien à changer dans .hero à part éviter un margin-top */
.hero { margin-top: 0; }

.hero{
  background: no-repeat center/cover;
  min-height: 380px;      /* ajuste la hauteur voulue */
}

/* ===== Bandeau Partenaires (marquee) ===== */
.partners-band{
  --speed: var(--partners-speed, 30s);
  --gray: var(--partners-gray, 1);
  --auto: var(--partners-autoplay, 1);

  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--primary) 6%, #fff));
  border: 1px solid #eef2f3;
  border-radius: 16px;
  padding: 10px 0;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  overflow: hidden;
  margin: 20px 0;
}

.partners-viewport{
  position: relative;
  overflow: hidden;
}

.partners-track{
  display: flex;
  gap: 34px;
  align-items: center;
  width: max-content;
  padding: 10px 0;
  /* défilement continu */
  animation: marquee linear infinite;
  animation-duration: var(--speed);
  animation-play-state: running;
}
.partners-band:hover .partners-track{ animation-play-state: paused; }
@media (prefers-reduced-motion: reduce){
  .partners-track{ animation: none !important; }
}

/* pause si autoplay désactivé */
.partners-band[style*="--partners-autoplay: 0"] .partners-track{ animation: none; }

.partner img{
  height: 48px;
  width: auto;
  display: block;
  filter: grayscale(calc(var(--gray) * 100%)) contrast(1.05) brightness(1.02);
  opacity: .9;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.partner a img{ pointer-events: none; } /* vrai hover sur le <a> */
.partner a:hover img{
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

/* Fades latéraux */
.fade{
  position: absolute; top:0; bottom:0; width: 60px; pointer-events:none;
  z-index: 2;
}
.fade--left{ left:0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.fade--right{ right:0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

/* Animation */
@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* la piste est dupliquée -> -50% boucle parfaite */
}

.partners-viewport{ overflow-x: auto; scrollbar-width: none; }
.partners-viewport::-webkit-scrollbar{ display: none; }


/* ===== Partenaires (marquee) ===== */
.partners{ padding: 22px 0; background: var(--muted); }
.partners-title{ margin: 0 0 10px; text-align: center; }

.partners-marquee{
  overflow: hidden;
  /* petit fondu aux bords */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.partners-track{
  display: flex;
  gap: var(--gap, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  animation: partners-slide var(--speed, 40s) linear infinite;
}
.partners:hover .partners-track{ animation-play-state: paused; }

.partner img{
  height: 46px;          /* ajuste la hauteur des logos */
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: .9;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.partner img:hover{
  transform: translateY(-2px);
  filter: none;
  opacity: 1;
}

@keyframes partners-slide{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* car on a dupliqué la liste 2x */
}

/* Responsive */
@media (max-width: 600px){
  .partner img{ height: 40px; }
}


/* ===== Partenaires (marquee) ===== */
.partners{ padding: 22px 0; background: var(--muted); }
.partners-title{ margin: 0 0 10px; text-align: center; }

.partners-marquee{
  overflow: hidden;
  /* petit fondu aux bords */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.partners-track{
  display: flex;
  gap: var(--gap, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  animation: partners-slide var(--speed, 40s) linear infinite;
}
.partners:hover .partners-track{ animation-play-state: paused; }

.partner img{
  height: 46px;          /* ajuste la hauteur des logos */
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: .9;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.partner img:hover{
  transform: translateY(-2px);
  filter: none;
  opacity: 1;
}

@keyframes partners-slide{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* car on a dupliqué la liste 2x */
}

/* Responsive */
@media (max-width: 600px){
  .partner img{ height: 40px; }
}

/* ===== Partenaires (marquee) ===== */
.partners { 
  padding: 28px 0; 
}
.partners-title{
  text-align:center;
  margin: 0 0 12px;
}

/* Piste de défilement */
.partners-marquee{
  overflow: hidden;                /* masque le débordement */
  --gap: 28px;                     /* fallback si non fourni en inline */
  --speed: 40s;
  --logo-h: 72px;                  /* hauteur des logos (modifiable) */
}

/* La "piste" est une ligne flex qui défile */
.partners-track{
  display: flex;
  align-items: center;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
  animation: partnersScroll var(--speed) linear infinite;
  will-change: transform;
}

/* Pause au survol (pratique) */
.partners-marquee:hover .partners-track{
  animation-play-state: paused;
}

.partner a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner img{
  height: var(--logo-h);           /* ← règle la taille ici */
  width: auto;
  object-fit: contain;
  display: block;
  filter: none;                    /* pas de désaturation → logos en couleur */
  opacity: .95;
  transition: transform .25s ease, opacity .25s ease;
}
.partner img:hover{
  transform: scale(1.06);
  opacity: 1;
}

/* Animation continue gauche → droite (ou inverse si tu veux) */
@keyframes partnersScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* -50% car tu as dupliqué le tableau */
}

/* Responsive: un chouïa plus petit sur mobile */
@media (max-width: 600px){
  .partners-marquee{ --logo-h: 56px; }
}

/* === PARTENAIRES === */
.partners {
  text-align: center;
  padding: 40px 0;
}

.partners-title {
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--texte);
  text-align: center;
}

.partners-marquee {
  overflow: hidden;
  width: 100%;
}

.partners-track {
  display: flex;
  justify-content: center; /* centre les logos */
  align-items: center;
  gap: 50px; /* espace entre logos */
  animation: marquee linear infinite;
}

.partner img {
  max-height: 150px;   /* ajuste la taille du logo */
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.partner img:hover {
  transform: scale(1.1); /* zoom léger au survol */
}

/* Animation de défilement */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Option : force 3 colonnes centrées en large écran */
.acts-grid{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
}

/* === Cartes ACTIVITÉS : taille max + centrage ================================= */

/* Grille : colonnes fluides mais cartes centrées */
.features .feature-grid,
.activities-home .activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  justify-items: center;        /* centre chaque carte dans sa colonne */
}

/* Carte : largeur/hauteur max, padding, etc. */
.features .feature-grid .card,
.activities-home .activity-card {
  width: 100%;
  max-width: 320px;             /* ← ajuste ici la largeur maxi */
  min-height: 180px;            /* ← hauteur mini pour homogénéiser */
  padding: 18px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  background: #fff;
  margin: 0 auto;               /* au cas où */
  text-align: left;             /* ou center si tu préfères */
}

/* Titre + texte, avec troncature sur quelques lignes (évite les “pavés”) */
.features .feature-grid .card h3,
.activities-home .activity-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.features .feature-grid .card p,
.activities-home .activity-card p {
  font-size: .95rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
      /* ← nombre de lignes visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Si tes activités ont une image en haut de la carte */
.activities-home .activity-card img,
.features .feature-grid .card > img {
  width: 100%;
  height: 140px;                /* ← ajuste la hauteur image */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Optionnel : resserrer sur mobile */
@media (max-width: 480px) {
  .features .feature-grid .card,
  .activities-home .activity-card {
    max-width: 300px;
    padding: 14px;
  }
  .activities-home .activity-card img,
  .features .feature-grid .card > img {
    height: 120px;
  }
}

/* === Formations qualifiantes — grille & cartes === */
.fq-section { padding: 40px 0 10px; }

.fq-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 16px;
  justify-content: center; /* centre la piste */
  align-items: stretch;
}

.fq-card{
  display:grid;
  grid-template-rows: auto 1fr auto; /* image | corps | pied */
  background:#fff;
  border:1px solid #eaeaea;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
  max-width: 360px;              /* limite visuelle */
}
.fq-card:hover{ transform:translateY(-3px); box-shadow:0 10px 26px rgba(0,0,0,.08); }

.fq-media{ aspect-ratio: 16 / 9; background:#f6f7f9; }
.fq-media img{ width:100%; height:100%; object-fit:cover; display:block; }

.fq-body{ padding: 12px 14px; display:grid; gap:8px; align-content:start; }
.fq-title{ margin:0; font-size:2.1rem; line-height:1.25; }

.fq-meta{
  margin:0; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; gap:8px 14px; font-size:.92rem; opacity:.9;
}
.fq-meta li strong{ font-weight:700; margin-right:6px; }


.fq-foot{
  padding: 12px 14px 14px;
  display:flex; justify-content:flex-end; border-top:1px solid #f0f0f0;
}

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: #000;        /* Couleur de l’assombrissement */
  pointer-events: none;
}
.hero .hero-inner {
  position: relative;      /* pour passer au-dessus de l’overlay */
  z-index: 1;
}

/* Section Stats */
.stats {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.stat {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}
.stat.visible {
  opacity: 1;
  transform: translateY(0);
}
.stat img {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}
.stat h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #C17D39;
}
.stat .count {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: #C17D39;
}
.stat .suffix {
  font-size: 28px;
  font-weight: bold;
  color: #C17D39;
}
.stat p {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}
.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Titre de section */
.stats h2.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: #0C6870; /* couleur primaire */
  position: relative;
  display: inline-block;
}
.stats h2.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #C17D39; /* accent */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Grille et cartes */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.stat {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: translateY(-6px);
}

/* Images uniformisées */
.stat img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

/* Chiffres */
.stat .count {
  font-size: 32px;
  font-weight: bold;
  color: #C17D39;
  display: block;
  margin: 10px 0;
}

/* Libellés */
.stat p {
  font-size: 16px;
  color: #333;
  margin: 5px 0;
}

/* Titres animés : appliqués seulement si le JS ajoute .reveal */
h2.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
h2.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Style “section title” harmonisé (optionnel, pour tes gros titres de section) */
.section-title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #0C6870; /* primaire */
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: #C17D39; /* accent */
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Si tu as un conteneur centré custom */
.center { text-align: center; }


.why-join {
  padding: 80px 20px;
  background: #F5F5F5;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: center;
}

.why-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.why-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.why-item h3 {
  font-size: 20px;
  margin: 10px 0;
  color: #C17D39;
}

.why-item p {
  font-size: 16px;
  color: #333;
}

/* 2.1 — Rejouer visuellement l’état hover sur le CTA inscription */
.btn-inscription.is-flashing {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

/* 2.2 — Si ton hover est défini sur .btn.btn-secondary:hover, duplique-le ici */
.btn.btn-secondary.is-flashing {
  /* Copie-colle ICI les propriétés que tu as sur .btn.btn-secondary:hover */
  /* Exemple (adapte à ta charte) : */
  background: #4CE0B3;
  border-color: #4CE0B3;
  color: #fff;
}

/* 2.3 — Si le bouton a un ::after animé en hover, déclenche-le aussi */
.btn-inscription.is-flashing::after {
  transform: translateX(3px);
}

/* 2.4 — Petit ping court */
@keyframes ping-cta {
  0%   { transform: translateY(-2px) scale(1); }
  50%  { transform: translateY(-2px) scale(1.02); }
  100% { transform: translateY(-2px) scale(1); }
}
.btn-inscription.is-flashing { animation: ping-cta .6s ease-out; }

/* Modal léger */
.ivp-modal { position: fixed; inset: 0; z-index: 9999; }
.ivp-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ivp-modal__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: min(92vw, 420px); padding: 24px;
}
.ivp-modal__body { text-align: center; }
.ivp-modal__body h3 { margin: 0 0 8px; color: #0C6870; }
.ivp-modal__body p { margin: 0 0 16px; }
.ivp-modal__close { min-width: 120px; }

.ivp-modal{position:fixed;inset:0;z-index:9999}
.ivp-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ivp-modal__dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);width:min(92vw,420px);padding:24px}
.ivp-modal__body{text-align:center}
.ivp-modal__body h3{margin:0 0 8px;color:#0C6870}
.ivp-modal__close{min-width:120px}