/* =====================================================================
   style.css — Site public
   Charte : bleu nuit (#0b1f3a) + accent bleu (#2b6cb0)
   ===================================================================== */

:root {
  --primary:   #0b1f3a;
  --primary-2: #1e3a5f;
  --accent:    #2b6cb0;
  --accent-2:  #2c5282;
  --bg:        #ffffff;
  --bg-soft:   #f7fafc;
  --border:    #e2e8f0;
  --text:      #2d3748;
  --muted:     #718096;
  --success:   #38a169;
  --danger:    #e53e3e;
  --warning:   #ecc94b;
  --radius:    12px;
  --shadow:    0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================== BOUTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: #f0f4f8; color: var(--primary); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 17px; }

/* ============================== HEADER ============================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.5rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-nav > a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.site-nav > a:hover,
.site-nav > a.active { color: var(--primary); border-color: var(--primary); }
.nav-auth { display: flex; gap: 8px; margin-left: 10px; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: .2s;
}

/* ============================== MAIN ============================== */
.site-main { min-height: 60vh; }

/* ============================== CARROUSEL ============================== */
.carrousel {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--primary);
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.85) 0%, rgba(11, 31, 58, 0.5) 100%);
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
}
.slide-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 15px;
  color: #fff;
}
.slide-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.carrousel-prev, .carrousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
}
.carrousel-prev:hover, .carrousel-next:hover {
  background: rgba(255, 255, 255, 0.3);
}
.carrousel-prev { left: 25px; }
.carrousel-next { right: 25px; }

.carrousel-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ============================== SECTIONS ============================== */
.section { padding: 70px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 15px;
}
.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 700px;
}
.section-cta { text-align: center; margin-top: 40px; }

.intro-section {
  background: var(--bg-soft);
  text-align: center;
}
.intro-section .lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 800px;
  margin: 20px auto 30px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================== STATS ============================== */
.stats-section { background: var(--primary); color: #fff; padding: 50px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-card { padding: 15px; }
.stat-icon { font-size: 2.5rem; margin-bottom: 10px; }
.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: rgba(255, 255, 255, 0.8); font-size: 14px; }

/* ============================== FAQ ============================== */
.faq-section { background: var(--bg); }
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '＋';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '－';
  transform: translateY(-50%);
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text);
  line-height: 1.7;
}
.faq-answer p { margin-bottom: 10px; }
.faq-answer ul { margin-left: 20px; margin-bottom: 10px; }

/* ============================== TÉMOIGNAGES ============================== */
.temoignages-section { background: var(--bg-soft); }
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.temoignage {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.temoignage::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(43, 108, 176, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}
.stars {
  color: #f6ad55;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 3px;
}
.temoignage-text {
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.temoignage footer { border-top: 1px solid var(--border); padding-top: 15px; }
.temoignage footer strong { color: var(--primary); display: block; font-size: 15px; }
.temoignage footer small { color: var(--muted); font-size: 13px; }

/* ============================== ACTUALITÉS ============================== */
.actualites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.actu-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.actu-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.actu-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.actu-body time {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.actu-body h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 10px 0;
  line-height: 1.3;
}
.actu-body p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
  margin-bottom: 15px;
}

/* ============================== CTA FINAL ============================== */
.cta-final {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  text-align: center;
}
.cta-final h2 { color: #fff; margin-bottom: 12px; }
.cta-final p { color: rgba(255, 255, 255, 0.9); margin-bottom: 25px; font-size: 1.1rem; }
.cta-final .btn-primary { background: #fff; color: var(--primary); }
.cta-final .btn-primary:hover { background: #f0f4f8; color: var(--primary); }

/* ============================== PAGE HERO ============================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 700px; margin: 0 auto; }

/* ============================== MISSIONS ============================== */
.prose { max-width: 900px; margin: 0 auto; }
.mission-card {
  display: flex;
  gap: 25px;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}
.mission-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission-card h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.mission-card p { color: var(--text); margin-bottom: 12px; }
.mission-card ul { margin-left: 20px; color: var(--muted); }
.mission-card ul li { margin-bottom: 6px; }

.distinction-section { background: var(--bg-soft); }
.distinction-card {
  background: #fff;
  border-left: 5px solid var(--warning);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.distinction-card h2 { color: var(--primary); margin-bottom: 15px; font-size: 1.35rem; }
.distinction-card ul { margin: 15px 0 15px 25px; color: var(--text); }
.distinction-card li { margin-bottom: 8px; }

/* ============================== CONTACT ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.form-group label.required::after { content: ' *'; color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-mention {
  color: var(--muted);
  font-size: 13px;
  margin-top: 15px;
  text-align: center;
}

.contact-info-col { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.contact-list { list-style: none; }
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: var(--text); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }

/* ============================== ALERTES ============================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-success { background: #c6f6d5; color: #22543d; border-left: 4px solid var(--success); }
.alert-error   { background: #fed7d7; color: #742a2a; border-left: 4px solid var(--danger); }

/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 15px;
}
.footer-grid p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.footer-muted { font-size: 12px; color: rgba(255, 255, 255, 0.5); font-style: italic; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a { color: rgba(255, 255, 255, 0.75); }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: #fff; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carrousel { height: 420px; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 0; }
  .nav-auth { margin-left: 0; padding-top: 15px; border-top: 1px solid var(--border); width: 100%; }
  .nav-auth .btn { flex: 1; justify-content: center; }

  .section { padding: 45px 0; }
  .carrousel { height: 360px; }
  .slide-content h1 { font-size: 1.6rem; }
  .carrousel-prev, .carrousel-next { width: 38px; height: 38px; font-size: 1.4rem; }

  .mission-card { flex-direction: column; gap: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .carrousel { height: 320px; }
  .slide-content h1 { font-size: 1.35rem; }
}

/* Contenu WYSIWYG : styles de base pour l'affichage public */
.temoignage-text p,
.actu-body p,
.actu-content p { margin-bottom: 10px; }
.temoignage-text p:last-child,
.actu-content p:last-child { margin-bottom: 0; }
.actu-content h2,
.actu-content h3 { color: var(--primary); margin: 25px 0 15px; }
.actu-content ul,
.actu-content ol { margin: 15px 0 15px 25px; }
.actu-content li { margin-bottom: 8px; }
.actu-content a { color: var(--accent); text-decoration: underline; }
.actu-content strong { color: var(--primary); }