/* ====== Variables & reset léger ====== */
:root{
  --mc-primary:#0d56b3;  /* bleu */
  --mc-accent:#f77500;   /* orange */
  --mc-gray:#b7b9b6;     /* gris */
  --mc-dark:#222;        /* texte */
  --mc-white:#fff;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family: inter;;color:var(--mc-dark);background:#fff}

/* ====== Layout utils ====== */
.container{
  width:min(1100px, 92%);
  margin:0 auto;
  padding: 15px;
}

/* ====== Header ====== */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:var(--mc-white);
  border-bottom:4px solid var(--mc-primary);
}
.header-bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:.75rem 0;
}

/* Brand */
.brand{display:flex; align-items:center; gap:.75rem; text-decoration:none; color:inherit;}
.brand-logo{width:100px; height:auto; display:block}
.brand-text{display:flex; flex-direction:column}
.brand-name{font-weight:800; letter-spacing:.2px; line-height:1}
.brand-name--med{color:var(--mc-primary)}
.brand-name--a{color:var(--mc-accent)}
.brand-name--cons{color:var(--mc-primary)}
.brand-tagline{font-size:.75rem; color:#555; margin-top:.15rem}

/* Nav (mobile-first) */
.nav{ 
  position:fixed; inset:64px 0 auto 0; /* sous le header */
  background:var(--mc-white);
  transform:translateY(-120%); transition:transform .25s ease;
  border-bottom:1px solid #eee;
}
.nav.is-open{ transform:translateY(0); }
.nav-list{list-style:none; margin:0; padding:0}
.nav-link{
  display:block; padding:1rem 1.25rem; text-decoration:none; color:#1a1a1a;
  border-top:1px solid #f2f2f2;
}
.nav-link:hover{ background:#f8fafc }
.nav-link.is-active{ color:var(--mc-primary); font-weight:700; }
.nav-cta{ padding:1rem 1.25rem; border-top:1px solid #f2f2f2; }
.btn{ display:inline-block; padding:.7rem 1rem; border-radius:.5rem; font-weight:700; text-decoration:none; }
.btn-contact{
  background:var(--mc-accent); color:var(--mc-white);
  box-shadow:0 2px 0 rgba(0,0,0,.06);
}
.btn-contact:hover{ filter:brightness(1.05); }

/* Burger */
.nav-toggle{
  appearance:none; border:none; background:transparent; cursor:pointer;
  display:grid; gap:4px; padding:.35rem; border-radius:.5rem;
}
.nav-toggle:focus-visible{ outline:2px solid var(--mc-primary); outline-offset:2px; }
.nav-toggle-bar{ width:24px; height:2px; background:var(--mc-primary); display:block; border-radius:2px; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ====== Tablet & Desktop ====== */
@media (min-width: 768px){
  .nav{ position:static; transform:none; border:0; display:flex; align-items:center; gap:1rem; }
  .nav-list{ display:flex; gap:.25rem; }
  .nav-link{ border:0; padding:.75rem .9rem; border-radius:.4rem; }
  .nav-link:hover{ background:#f5f7fa; }
  .nav-cta{ padding:0; border:0; }
  .nav-toggle{ display:none; }
}

@media (min-width: 1100px){
  .brand-logo{ width:52px; }
  .brand-name{ font-size:1.35rem; }
}

/* Petite touche grise sous le header sur desktop (rappel charte) */
@media (min-width: 768px){
  .site-header{ box-shadow:0 2px 0 0 var(--mc-gray); }
}

/* ====== HERO ====== */
.hero{
  position:relative;
  min-height:72vh;
  display:grid;
  align-items:center;
  color:#fff;
  overflow:hidden;
  isolation:isolate;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  /* Dégradé de lecture (haut léger, bas plus dense) */
  background:linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.55) 100%);
  z-index:1;
}
.hero-bg,
.hero-bg-next{
  position:absolute; inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transition:opacity .8s ease-in-out, transform 8s ease;
  will-change: opacity;
}
.hero-bg{ z-index:0; opacity:1; }
.hero-bg-next{ z-index:0; opacity:0; }

/* Légère animation de zoom lent pour donner de la vie */
.hero-bg, .hero-bg-next{ transform:scale(1.03); }

/* Contenu */
.hero-inner{
  position:relative; z-index:2;
  padding: clamp(2rem, 4vw, 4rem) 0;
  max-width: 900px;
}
.hero-badge{
  display:inline-block;
  background: rgba(13,86,179,.9); /* --mc-primary */
  padding:.35rem .6rem; border-radius:.4rem;
  font-weight:700; letter-spacing:.2px;
  margin-bottom:.75rem;
}
.hero-title{
  margin:0 0 .5rem 0;
  font-weight:800;
  line-height:1.15;
  font-size:clamp(1.8rem, 3.6vw, 3rem);
  text-wrap:balance;
}
.hero-sub{
  margin:0 0 1.25rem 0;
  color: #f0f3f8;
  font-size:clamp(1rem, 2vw, 1.2rem);
}

/* Boutons du hero */
.btn-primary{
  background: var(--mc-accent);
  color: var(--mc-white);
}
.btn-outline{
  color: var(--mc-white);
  border:2px solid var(--mc-white);
  background:var(--mc-primary);
}
.btn + .btn{ margin-left:.6rem; }

/* Adaptations */
@media (max-width: 767px){
  .hero{ min-height:64vh; }
  .btn + .btn{ display:inline-block; margin-top:.6rem; margin-left:0; }
}

@media (min-width: 1100px){
  .hero{ min-height:78vh; }
}

/* ====== FOOTER ====== */
.site-footer{
  background: #0b4ca0; /* proche --mc-primary, un peu plus sombre */
  color: #e9eef7;
  border-top: 4px solid var(--mc-primary);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2rem 0 1.25rem 0;
}
.f-col .f-title{
  font-size:1rem; margin:.3rem 0 .6rem 0; color:#fff; font-weight:800;
}
.f-brand{ display:flex; gap:.75rem; text-decoration:none; color:inherit; align-items:center; }
.f-logo{ width:48px; height:auto; border-radius:.35rem; background:#fff; padding:.15rem; }
.f-brand-text{ display:flex; flex-direction:column; }
.f-name{ font-weight:900; letter-spacing:.2px; }
.f-name-med, .f-name-cons{ color:#fff; }
.f-name-a{ color: var(--mc-accent); }
.f-tagline{ font-size:.85rem; color:#d7dfec; margin-top:.15rem; }

.f-social{ display:flex; gap:.5rem; list-style:none; padding:0; margin:.9rem 0 0 0; }
.f-ico{ display:inline-grid; place-items:center; width:36px; height:36px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; }
.f-ico:hover{ background:rgba(255,255,255,.2); }

.f-address a{ color:#fff; text-decoration:underline; }
.f-address a:hover{ opacity:.9; }
.f-note{ margin:.5rem 0 0 0; color:#bfe8bf; font-size:.9rem; }

.f-news{ display:flex; gap:.5rem; margin-top:.7rem; }
.f-news input{
  flex:1; min-width:0; border:none; border-radius:.5rem; padding:.65rem .8rem;
}
.f-news button.btn-contact{ white-space:nowrap; }

/* Liens rapides */
.f-links{ list-style:none; padding:0; margin:0; display:grid; gap:.3rem; }
.f-links a{ color:#fff; text-decoration:none; }
.f-links a:hover{ text-decoration:underline; }

/* Bas de page */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  margin-top:1.25rem;
  background:#0a448f;
}
.footer-bottom-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:.8rem 0; gap:1rem; color:#dbe6f6;
}
.to-top{
  appearance:none; border:none; border-radius:.5rem;
  background: var(--mc-accent); color:#fff; cursor:pointer;
  padding:.45rem .7rem; font-weight:800; line-height:1;
  box-shadow:0 2px 0 rgba(0,0,0,.08);
}
.to-top:hover{ filter:brightness(1.05); }

/* Responsive */
@media (min-width: 768px){
  .footer-grid{
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items:flex-start;
  }
  .f-logo{ width:56px; }
}

/* ====== SECTIONS GÉNÉRIQUES ====== */
.section{ padding: clamp(2rem, 5vw, 4rem) 0; }
.section-title{ 
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); 
  margin: 0.25rem 0 0.5rem 0; 
  font-weight: 900;
}

.section-title {
  color: #0d56b3;  /* bleu principal */
  font-weight: 800;
}

.partners-note {
  opacity: 1;      /* texte lisible */
  color: #444;     /* gris foncé */
  font-size: .95rem;
  margin-top: .5rem;
}

.partners {
  margin-top: 0;
  padding-top: 1rem; /* ou 0 si tu veux coller */
}

.partners .section-title {
  margin-top: 0; /* supprime le gros espace automatique des <h2> */
}

.lead{ font-size:clamp(1rem, 2vw, 1.125rem); color:#3a3a3a; max-width: 70ch; }
.t-accent{ color: var(--mc-primary); }

/* ====== À PROPOS ====== */
.about-head{ margin-bottom: 1.25rem; }
.about-badge{
  display:inline-block; font-weight:800; font-size:.85rem;
  background:rgba(13,86,179,.08); color:#0d56b3; border:1px solid rgba(13,86,179,.2);
  padding:.25rem .5rem; border-radius:.4rem;
}
.about-grid{
  display:grid; gap:1rem; margin-top:1rem;
}
.about-card{
  background:#fff; border:1px solid #e9edf3; border-radius:.8rem;
  padding: clamp(1rem, 2.4vw, 1.25rem);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.about-card-title{
  margin:.2rem 0 .5rem 0; font-weight:800; color:#0d56b3;
}
.about-bullets{ margin:.6rem 0 0 1rem; }
.about-bullets li{ margin:.15rem 0; }
.about-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.6rem; }
.tag{
  display:inline-block; padding:.25rem .5rem; border-radius:999px;
  background:#f5f7fb; border:1px solid #e5eaf3; color:#1d2b4a; font-weight:600; font-size:.85rem;
}

/* Grille responsive */
@media (min-width: 768px){
  .about-grid{ grid-template-columns: 1fr 1fr 1fr; gap:1.1rem; }
}

/* Bouton "Lire plus" aligné joliment */
.about-actions{
  margin-top:.5rem;
}
.about-actions .btn{ padding:.7rem 1rem; }

/* Sur desktop, le bouton prend toute la ligne sous les 3 cartes */
@media (min-width: 768px){
  .about-grid{
    grid-template-columns: 1fr 1fr 1fr;
  }
  .about-actions{
    grid-column: 1 / -1;
    display:flex; justify-content:flex-end;
  }
}

/* ====== LANG SWITCH (sélecteur FR/EN) ====== */
.lang-switch {
  margin-top: 1rem;
  text-align: center;
  font-weight: 700;
}
.lang-switch a {
  text-decoration: none;
  padding: 0 .3rem;
  color: var(--mc-primary);
  transition: color .2s ease;
}
.lang-switch a:hover {
  color: var(--mc-accent);
}
.lang-switch a.active {
  color: var(--mc-accent);
}

/* Sur desktop : aligne à droite dans la nav */
@media (min-width: 768px){
  .lang-switch {
    margin-top: 0;
    margin-left: 1rem;
  }
}

/* Style général du dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  display: block;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: .4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  z-index: 999;
}

.lang-menu li a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  color: #333;
  text-decoration: none;
  font-size: .9rem;
}

.lang-menu li a:hover {
  background: #f5f5f5;
}

/* Ouverture */
.lang-dropdown.open .lang-menu {
  display: block;
}

/* Alignement mobile */
@media (max-width:767px){
  .lang-dropdown {
    margin-left: .5rem;
  }
  .lang-menu {
    right: auto;
    left: 0;
  }
}

/* Alignement desktop */
@media (min-width:768px){
  .lang-dropdown {
    margin-left: 1rem;
  }
}


/* Version mobile : logo un peu plus petit */
@media (max-width: 767px) {
  .brand-logo {
    height: 48px;
    max-height: 55px;
  }
}

/* Sous-menu */
.has-submenu {
  position: relative;
}
.has-submenu > .nav-link::after {
  content: " ▾"; /* petite flèche */
  font-size: .7em;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--mc-white);
  border: 1px solid #eee;
  border-radius: .4rem;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 999;
}
.submenu li {
  border-bottom: 1px solid #f2f2f2;
}
.submenu li:last-child { border-bottom: none; }

.submenu .nav-link {
  padding: .6rem .9rem;
  border: 0;
  font-size: .95rem;
}

/* Afficher au survol (desktop) */
@media (min-width:768px){
  .has-submenu:hover > .submenu {
    display: block;
  }
}

/* Grille "À propos" centrée dans la page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  padding: 2rem 3rem;          /* marges internes (gauche/droite) */
  align-items: start;
  justify-content: center;

  /* centrage horizontal */
  max-width: 1200px;           /* largeur fixe pour le contenu */
  margin-left: auto;
  margin-right: auto;          /* centre le bloc dans la page */
  box-sizing: border-box;
}

/* Image */
.about-grid__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Titres */
.about-grid__content h1 {
  margin: 0 0 .75rem;
  line-height: 1.2;
  color: #002b5c;
}

.about-grid__content h3 {
  margin: 1.25rem 0 .5rem;
  color: #0d56b3;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr; /* empilé en mobile */
    padding: 1.5rem;            /* réduit les marges sur petit écran */
  }
}

/* Page equipe */
.team-org {
  text-align: center;
  padding: 2rem;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.person {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  width: 200px;
  transition: transform .3s ease;
}

.person:hover {
  transform: translateY(-5px);
}

.person img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 100%;
  margin-bottom: 0.5rem;
}

.person h3, .person h4 {
  margin: 0.3rem 0;
  color: #0d56b3;
}

.person p {
  margin: 0;
  font-size: 0.9em;
  color: #555;
}

/* Petits membres */
.person.small {
  width: 150px;
}

.person.small img {
  width: 90px;
  height: 90px;
}

/* fin page equipe */

/* page projets */
/* Hero banner */
.hero-banner {
  position: relative;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
}

.hero-banner .hero-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: brightness(0.6);
  border-radius: 8px;
}

.hero-banner .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  padding: 1rem;
}

.hero-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-banner p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Projects list */
.projects-list {
  padding: 2rem 1rem;
  text-align: center;
}

.projects-list h2 {
  margin-bottom: 2rem;
  color: #0d56b3;
}

/* Grid of cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: #0d56b3;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: #444;
  line-height: 1.5;
}
/* fin page projets */

/* ===== DOMAINES D’EXPERTISE ===== */
.expertise-page {
  background: #f8f9fc;
  padding-bottom: 3rem;
}

/* Hero banner */
.hero-banner {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-banner .hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-banner .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  color: #fff;
  padding: 1rem;
}

.hero-banner h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-banner p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Grid expertise */
.expertise-list {
  text-align: center;
}

.grid-expertise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.expertise-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease;
}

.expertise-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.expertise-card h3 {
  color: #0d56b3;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.expertise-card p {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}
/* fin domaines d’expertise */

/* ===== À PROPOS ===== */
.about-page {
  background: #f9fafc;
}

/* Hero banner */
.hero-banner {
  position: relative;
  margin-bottom: 3rem;
}

.hero-banner .hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.6);
  border-radius: 8px;
}

.hero-banner .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  text-align: center;
  color: #fff;
}

.hero-banner h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-banner p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Intro */
.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-card {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-card h2 {
  color: #0d56b3;
  margin-bottom: 1rem;
}

/* Vision / Stratégie */
.about-values {
  padding: 3rem 1rem;
  background: #fff;
}

.about-values.alt {
  background: #eef2f7;
}

.about-values .container {
  max-width: 1100px;
  margin: 0 auto;
}

.text-block {
  margin-bottom: 2rem;
}

.text-block h2 {
  color: #0d56b3;
  margin-bottom: 0.8rem;
}

.text-block p {
  color: #333;
  line-height: 1.6;
}

/* Valeurs */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card h3 {
  color: #0d56b3;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: #444;
  line-height: 1.5;
}
/* fin à propos */

/* page contact */
/* ===== CONTACT PAGE ===== */
.contact-page {
  background: #f8f9fc;
}

/* Hero */
.hero-banner {
  position: relative;
  margin-bottom: 3rem;
}

.hero-banner .hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-banner .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  max-width: 700px;
}

.hero-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-banner p {
  font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h2 {
  color: #0d56b3;
  margin-bottom: 1rem;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert.success {
  background: #e8f7ee;
  color: #1d7f46;
  border: 1px solid #b6e2c4;
}

.alert.error {
  background: #fdecea;
  color: #b02a37;
  border: 1px solid #f5c2c0;
}

/* Form */
.form label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: .25rem;
}

.form input, .form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccd4e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border .2s ease;
}

.form input:focus, .form textarea:focus {
  border-color: #0d56b3;
  outline: none;
}

.form-row {
  margin-bottom: 1rem;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  text-align: right;
  margin-top: 1rem;
}

.btn.btn-primary {
  background: var(--mc-gray);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s ease;
}

.ck-powered-by {
    display: none !important;
  }
  
.btn.btn-primary:hover {
  background: #09478f;
}

/* Contact Info */
.contact-info p {
  margin-bottom: 1rem;
  color: #333;
}

.contact-info a {
  color: #0d56b3;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #e5e9ef;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 10px;
}
/* fin page contact */

/* footer partners */
.footer-partners {
  background: #ffffff;
  padding: 2rem 1rem;
  border-bottom: 1px solid #e5e9ef;
}

.footer-partners .partners-grid {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
/* fin footer partners */

/* ---- POPUP Langue ---- */
  .lang-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  .lang-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: fadeIn .4s ease;
  }
  .lang-box h2 {
    margin: 0 0 1rem;
    color: #0d56b3;
    font-size: 1.4rem;
  }
  .lang-box small {
    color: #777;
    font-size: .9rem;
  }
  .lang-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .lang-btn {
    display: inline-block;
    border-radius: 8px;
    background: #0d56b3;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: .2s;
  }
  .lang-btn:hover {
    background: #093d80;
  }
  .lang-btn.en {
    background: #2c8d3a;
  }
  .lang-btn.en:hover {
    background: #1f6a2a;
  }
  @keyframes fadeIn {
    from {opacity:0; transform:scale(.95);}
    to {opacity:1; transform:scale(1);}
  }

/* fin popup langue */

/* ====== FORMATIONS ====== */
/* === Bloc principal formation === */
.formations-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.formation-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #21375b17; /* bleu MedA très clair */
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 0;
}

/* === Colonne gauche : image du formateur === */
.formation-image {
  flex: 1 1 40%;
  max-width: 420px;
  overflow: hidden;
  position: relative;
}

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

.trainer-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 53, 95, 0.9); /* bleu MedA */
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.4rem 0.8rem;
}

/* === Colonne droite : contenu de la formation === */
.formation-content {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.formation-content h2 {
  font-size: 1.4rem;
  color: #1b355f;
  margin-bottom: 0.75rem;
}

.formation-content .desc {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.formation-content ul.details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.formation-content ul.details li {
  font-size: 0.93rem;
  margin-bottom: 0.3rem;
  color: #222;
}

.formation-content .prix {
  font-weight: 600;
  color: #000;
  margin-top: 0.8rem;
}

.formation-content .btn {
  align-self: flex-start;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  background-color: #1b355f;
  color: #fff;
  font-weight: 600;
  transition: all 0.25s ease;
}

.formation-content .btn:hover {
  background-color: #e8044a;
  color: #fff;
}

/* === Version mobile === */
@media (max-width: 820px) {
  .formation-card {
    flex-direction: column;
  }

  .formation-image {
    max-width: 100%;
    height: 320px;
  }

  .trainer-line {
    position: relative;
    background: #1b355f;
  }

  .formation-content {
    padding: 1.5rem;
  }
}
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
  }
  .popup-box {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    max-width: 400px;
    animation: fadeIn 0.3s ease;
  }
  .popup-box h2 { color: #1b7a3c; margin-bottom: .8rem; }
  .popup-box p { font-size: .95rem; color: #333; margin-bottom: 1.5rem; }
  .popup-actions { display: flex; gap: .8rem; justify-content: center; }
  .popup-actions .btn {
    padding: .6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
  }
  .btn-primary { background:#1b7a3c; color:#fff; }
  .btn-secondary { background:#ddd; color:#333; }
  .btn-primary:hover { background:#155f30; }
  .btn-secondary:hover { background:#ccc; }
  @keyframes fadeIn { from{opacity:0; transform:scale(.9);} to{opacity:1; transform:scale(1);} }