/* =========================================================
   Thème BLEU & JAUNE — VERSION PREMIUM + ÉNERGIQUE (CORRIGÉE)
   ✅ Textes justifiés (contenus)
   ✅ Titres centrés
   ✅ Boutons uniquement BLEUS ou JAUNES (sans dégradés)
   ✅ Contrastes/ombres harmonisés (rendu plus premium)
   ========================================================= */

/* ====== RESET / BASE ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-align: justify; /* ✅ justifie le texte par défaut */
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 1rem; }
h1, h2, h3{ line-height: 1.15; margin: 0 0 0.75rem; text-align: center; } /* ✅ titres centrés */

/* Évite des justifications bizarres sur des éléments courts */
.brand, .navlinks, .navbar, .hero-actions, summary, .kicker, .btn, .acc-icon, .section-title{
  text-align: left;
}

/* ====== TOKENS ====== */
:root{
  --container: 1120px;
  --pad: 18px;
  --radius: 18px;

  /* Palette */
  --brand: #0047AB;          /* Bleu */
  --brand-dark: #002F6C;
  --accent: #FFD400;         /* Jaune */
  --accent-dark: #E6B800;

  /* Neutres premium */
  --bg: #ffffff;
  --bg-soft: rgba(2,6,23,.035);
  --bg-soft-2: rgba(0,71,171,.08);
  --surface: rgba(255,255,255,.92);

  --text: #0b1220;
  --muted: rgba(2,6,23,.68);

  /* Bordures / ombres */
  --border: 1px solid rgba(2,6,23,.10);
  --border-strong: 1px solid rgba(2,6,23,.14);
  --shadow-soft: 0 10px 28px rgba(2,6,23,.10);
  --shadow: 0 18px 50px rgba(2,6,23,.14);
  --shadow-strong: 0 24px 70px rgba(2,6,23,.16);

  /* Focus */
  --focus: rgba(255,212,0,.58);
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ====== ACCESSIBILITY ====== */
:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
::selection{ background: rgba(255,212,0,.45); }

/* ====== HEADER / NAV ====== */
header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .2px;
}

.brand-badge{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(0,71,171,.28);
}

.navlinks{
  display: flex;
  align-items: center;
  gap: 10px;
}

.navlinks a{
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(2,6,23,.86);
  font-weight: 650;
  transition: background-color .15s ease, transform .10s ease;
}

.navlinks a:hover{
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.navlinks a[aria-current="page"]{
  background: var(--bg-soft-2);
  color: var(--brand);
  font-weight: 850;
}

.burger{
  display: none;
  border: var(--border);
  background: white;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 850;
}
.burger:focus{ outline: 3px solid rgba(0,71,171,.25); outline-offset: 2px; }

.mobile-panel{
  display: none;
  padding: 0 0 14px;
}
.mobile-panel a{
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 800;
  transition: background-color .15s ease;
}
.mobile-panel a:hover{ background: var(--bg-soft); }

/* ====== HERO ====== */
.hero{
  padding: 62px 0 42px;
  background:
    radial-gradient(1000px 380px at 0% 0%, rgba(0,71,171,.24), transparent 60%),
    radial-gradient(1000px 380px at 100% 0%, rgba(255,212,0,.34), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  border-bottom: var(--border);
}

.hero-grid{
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 18px;
  align-items: stretch;
}

.hero-card{
  border: var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* Kicker plus "marketing" */
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,212,0,.22);
  color: #5a4300;
  font-weight: 900;
  letter-spacing: .35px;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(255,212,0,.18);
}

.hero h1{
  font-size: clamp(30px, 3.2vw, 50px);
  margin-top: 12px;
  letter-spacing: -0.6px;
}

.hero p{
  color: var(--muted);
  font-size: 17px;
  max-width: 70ch;
}

/* Justification renforcée pour les textes de contenu */
.hero p, .card p, .person p, .acc-content, .side-card li, .section-title p, footer{
  text-align: justify;
  text-justify: inter-word;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ====== BOUTONS (BLEU ou JAUNE uniquement) ====== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  border: var(--border-strong);
  background: transparent;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, color .15s ease;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

.btn:active{ transform: translateY(1px); }

/* Bleu */
.btn-primary,
.btn-blue{
  background: var(--brand);
  color: #ffffff;
  border-color: rgba(0,71,171,.35);
  box-shadow: 0 14px 34px rgba(0,71,171,.26);
}
.btn-primary:hover,
.btn-blue:hover{
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,71,171,.34);
}

/* Jaune */
.btn-secondary,
.btn-yellow{
  background: var(--accent);
  color: #161616;
  border-color: rgba(230,184,0,.55);
  box-shadow: 0 14px 34px rgba(255,212,0,.22);
}
.btn-secondary:hover,
.btn-yellow:hover{
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(255,212,0,.28);
}

/* Optionnel : bouton "outline" (reste bleu, donc conforme) */
.btn-outline{
  background: rgba(0,71,171,.06);
  color: var(--brand-dark);
  border-color: rgba(0,71,171,.28);
}
.btn-outline:hover{
  background: rgba(0,71,171,.10);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(2,6,23,.10);
}

/* ====== SIDE CARD ====== */
.side-card{
  border-radius: calc(var(--radius) + 6px);
  border: var(--border);
  padding: 22px;
  background: linear-gradient(135deg, rgba(0,71,171,.14), rgba(255,212,0,.22));
  box-shadow: var(--shadow);
}
.side-card h3{ margin-bottom: 8px; }
.side-card ul{ margin: 0; padding-left: 18px; color: rgba(2,6,23,.80); }
.side-card li{ margin: 8px 0; }

/* ====== SECTIONS ====== */
.section{ padding: 28px 0 52px; }

.section-title{
  display: flex;
  flex-direction: column;         /* ✅ permet un vrai centrage */
  align-items: center;            /* ✅ titres + texte centrés */
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-title p{
  color: var(--muted);
  margin: 0;
  max-width: 80ch;
}

/* Grilles */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  border: var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card h3{ margin-bottom: 8px; }
.card p{ color: var(--muted); margin: 0; }

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,71,171,.22);
}

/* ====== TEAM ====== */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.person{ overflow: hidden; }

.person-top{
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar{
  width: 92px;
  height: 92px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  border: var(--border);
}

.person-meta{
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.person-name{ font-weight: 950; }
.person-age{ color: var(--muted); font-weight: 800; font-size: 14px; }
.person-role{ color: rgba(2,6,23,.72); font-weight: 900; font-size: 14px; }
.person p{ margin-top: 12px; color: rgba(2,6,23,.78); }

/* ====== ACCORDION ====== */
.accordion{ display: grid; gap: 12px; }

details{
  border: var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: white;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
details:hover{
  box-shadow: var(--shadow);
  border-color: rgba(0,71,171,.20);
}

summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker{ display:none; }

.acc-icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: var(--border);
  display: grid;
  place-items: center;
  background: rgba(2,6,23,.02);
  flex: 0 0 auto;
  font-weight: 950;
}

details[open] .acc-icon{
  background: rgba(255,212,0,.22);
  border-color: rgba(255,212,0,.55);
}

.acc-content{
  padding: 0 18px 16px;
  color: rgba(2,6,23,.78);
}
.acc-content ul{ margin: 0; padding-left: 18px; }
.acc-content li{ margin: 8px 0; }

/* ====== CALLOUT ====== */
.callout{
  border-radius: calc(var(--radius) + 6px);
  border: var(--border);
  padding: 18px;
  background: linear-gradient(135deg, rgba(0,71,171,.10), rgba(255,212,0,.16));
  box-shadow: var(--shadow-soft);
}

/* ====== FOOTER ====== */
footer{
  border-top: var(--border);
  padding: 22px 0;
  color: rgba(2,6,23,.72);
  background: rgba(2,6,23,.02);
}

.footer-row{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.small-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.small-links a{
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  transition: background-color .15s ease, transform .10s ease;
}
.small-links a:hover{
  background: var(--bg-soft);
  transform: translateY(-1px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .navlinks{ display:none; }
  .burger{ display:inline-flex; }
  .mobile-panel{ display:block; }
}

/* ====== TEAM — VERSION "CANDIDAT" MODERNE ====== */

/* Carte un peu plus “premium” */
.card.person{
  position: relative;
  overflow: hidden;
}

/* Petit accent en haut de la carte */
.card.person::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:6px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity:.9;
}

/* Mise en page : photo centrée + texte dessous */
.person-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

/* Avatar rond, plus grand, avec anneau/ombre */
.avatar{
  width: 150px;
  height: 150px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 4px solid rgba(255,255,255,.95);
  box-shadow: 0 16px 34px rgba(2,6,23,.14);
  outline: 2px solid rgba(0,71,171,.18);
  outline-offset: 2px;
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Meta centrées */
.person-meta{
  text-align: center;
  align-items: center;
}

.person-name{
  font-weight: 950;
  letter-spacing: .1px;
}

.person-age{
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.person-role{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(2,6,23,.82);
  background: rgba(255,212,0,.22);
  border: 1px solid rgba(255,212,0,.45);
}

/* Un peu d’air avant la bio */
.card.person > p{
  margin-top: 14px;
}

/* Hover léger, très “propre” */
.card.person:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(0,71,171,.26);
}

/* Responsive : avatar un peu plus petit sur mobile */
@media (max-width: 980px){
  .avatar{
    width: 130px;
    height: 130px;
  }
}

/* ====== MENU MOBILE PLEIN ÉCRAN + BURGER ANIMÉ ====== */
/* ====== MENU MOBILE PLEIN ÉCRAN + BURGER ANIMÉ ====== */

/* Bouton burger (icône + label) */
.burger{
  display: none;
  align-items: center;
  gap: 10px;
  border: var(--border);
  background: white;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
}

.burger-lines{
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.burger-lines::before,
.burger-lines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height: 3px;
  border-radius: 3px;
  background: rgba(2,6,23,.86);
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}

.burger-lines::before{ top: 2px; }
.burger-lines::after{ top: 11px; }

/* état ouvert -> croix */
.burger.is-open .burger-lines::before{ top: 6.5px; transform: rotate(45deg); }
.burger.is-open .burger-lines::after{ top: 6.5px; transform: rotate(-45deg); }

/* Overlay */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 19;
}
.mobile-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Panneau plein écran qui glisse */
.mobile-panel{
  position: fixed;
  left: 0;
  right: 0;
  top: 64px; /* hauteur approx du header */
  height: calc(100vh - 64px);
  background: rgba(255,255,255,.98);
  border-top: var(--border);
  box-shadow: var(--shadow);
  padding: 14px;
  display: block;

  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;

  transition: transform .18s ease, opacity .18s ease;
  z-index: 20;
}

.mobile-panel.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel a{
  display: block;
  padding: 14px 14px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 18px;
  transition: background-color .15s ease, transform .10s ease;
}

.mobile-panel a:hover{
  background: var(--bg-soft);
  transform: translateY(-1px);
}

/* Mobile only */
@media (max-width: 980px){
  .navlinks{ display:none; }
  .burger{ display:inline-flex; }
}
