﻿/* ================================================
   AFP Rouen — Feuille de style principale
   ================================================ */

/* Variables & Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #006e7a;
  --primary-dark:  #004f58;
  --primary-light: #e6f3f5;
  --text:          #2c2c2c;
  --text-muted:    #484848;  /* renforcé pour meilleur contraste */
  --white:         #ffffff;
  --gray-100:      #f7f9fa;
  --gray-200:      #e9ecef;
  --radius:        6px;
  --shadow:        0 2px 10px rgba(0, 110, 122, .12);
  --transition:    .25s ease;
  --container:     1140px;
  --urgence:       #b91c1c;
  --accent:        #d97706;
  --accent-light:  #fef3c7;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.0625rem; /* 17px — meilleure lisibilité */
}

/* ================================================
   ACCESSIBILITÉ
   ================================================ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary-dark);
  color: var(--white);
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  z-index: 9999;
  text-decoration: none;
  transition: top .15s;
}

.skip-link:focus { top: .5rem; }

/* Focus visible pour tous les éléments interactifs */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Bouton téléphone flottant (mobile uniquement) */
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,79,88,.45); }
  50%       { box-shadow: 0 4px 28px rgba(0,79,88,.65); }
}

.btn-phone-float {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  padding: .85rem 1.4rem;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 79, 88, .45);
  z-index: 500;
  text-decoration: none;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  animation: float-pulse 2.5s ease-in-out infinite;
  transition: transform .2s ease, background .2s ease;
}

.btn-phone-float:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: scale(1.05);
  animation: none;
}

@media (max-width: 768px) {
  .btn-phone-float { display: flex; }
  /* espace pour ne pas masquer le footer */
  body { padding-bottom: 5rem; }
}

/* Encart "L'essentiel" */
.essentiel {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.essentiel > strong,
.page-content .essentiel > strong {
  display: inline-block;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}

.essentiel h2,
.page-content .essentiel h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: .5rem 0 .75rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid rgba(255,255,255,.25);
}

.essentiel h2::after,
.page-content .essentiel h2::after { display: none; }

.essentiel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.essentiel ul li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,.95);
}

.essentiel ul li::before {
  content: '→';
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--primary-light);
}

.essentiel ul li strong,
.page-content .essentiel ul li strong {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

/* Numéros d'urgence */
.contact-block.urgence {
  border-top: 4px solid var(--urgence);
  background: #fff5f5;
}

.contact-block.urgence h3 {
  color: var(--urgence);
}

.contact-block.urgence .contact-line a {
  color: var(--urgence);
  font-size: 1.15rem;
  font-weight: 800;
}

/* Section urgences regroupées */
.urgences-band {
  background: #fff5f5;
  border: 2px solid var(--urgence);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}

.urgences-band h2 {
  color: var(--urgence);
  font-size: 1.05rem;
  margin-bottom: .75rem;
}

.urgences-band h2::after { display: none; }

.urgences-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.urgence-pill {
  background: var(--urgence);
  color: var(--white);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

.urgence-pill {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.urgence-pill:hover {
  background: #991b1b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(185,28,28,.4);
}

/* ================================================
   MODAL INFORMATIONS
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.modal-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background var(--transition);
}
.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-close:hover { background: rgba(255,255,255,.3); }

.modal-body {
  background: var(--white);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}

.modal-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.modal-item-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.modal-item-text p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.modal-item-text a { font-weight: 600; }

.modal-item-warning .modal-item-text strong { color: var(--urgence); }
.modal-item-warning { background: #fff5f5; border-radius: var(--radius); padding: .75rem; margin: 0 -.25rem; }

.modal-footer {
  background: var(--white);
  padding: 1.25rem 1.75rem 1.5rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

#modal-ok {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: .7rem 2.75rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(0,103,115,.25);
  letter-spacing: .02em;
}
#modal-ok:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,103,115,.38);
}

.hero-info-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: background var(--transition);
}

.hero-info-btn:hover {
  background: rgba(255,255,255,.28);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

body.modal-open { overflow: hidden; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

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

/* ================================================
   TOPBAR
   ================================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  padding: .45rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.topbar a { color: rgba(255,255,255,.95); }
.topbar a:hover { color: #fff; }

.topbar-contact {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.topbar-contact li::before { margin-right: .35rem; }
.topbar-contact .icon { margin-right: .3rem; }

.lang-switch {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 1rem;
  margin-left: .1rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: .18rem .62rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all var(--transition);
  text-decoration: none;
}

.lang-switch a:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  border-color: rgba(255,255,255,.42);
}

/* ================================================
   HEADER & NAV
   ================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  display: block;
}

.logo-text {
  line-height: 1.2;
}

.logo-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.3px;
}

.logo-text span {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Navigation */
.nav-menu {
  list-style: none;
  display: flex;
  gap: .25rem;
  align-items: center;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: .55rem .9rem;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--primary-light);
  color: var(--primary);
}

.has-dropdown > a::after {
  content: ' ▾';
  font-size: .8rem;
  opacity: .6;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: .4rem;
  background: transparent;
  list-style: none;
  z-index: 300;
  min-width: 230px;
}

.dropdown::before {
  content: '';
  display: block;
  position: absolute;
  top: .4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: -1;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: .65rem 1.1rem;
  color: var(--text);
  font-size: .95rem;
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  padding: .4rem .6rem;
  color: var(--primary);
  font-size: 1.2rem;
}

/* ================================================
   HERO
   ================================================ */

@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wave-slide {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-2%); }
  100% { transform: translateX(0); }
}

.hero {
  background: linear-gradient(135deg,
    #007d8a 0%,
    var(--primary) 25%,
    var(--primary-dark) 55%,
    #006068 75%,
    #007d8a 100%);
  background-size: 400% 400%;
  animation: hero-gradient 14s ease infinite;
  color: var(--white);
  padding: 4.5rem 0 0;
  text-align: center;
  position: relative;
}

.wave-down {
  overflow: hidden;
  line-height: 0;
}

.wave-down svg {
  animation: wave-slide 7s ease-in-out infinite;
  display: block;
  width: 108%;
  margin-left: -4%;
}

.hero-content { padding-bottom: 3.5rem; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border-radius: 100px;
  padding: .3rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shimmer générique sur tous les .btn au hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity .2s ease;
}

.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Bouton teal (utilisé avec style inline background:primary) */
.btn:not(.btn-white):not(.btn-outline-white):hover {
  box-shadow: 0 6px 20px rgba(0, 110, 122, .35);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* ================================================
   SVG WAVE DIVIDERS
   ================================================ */
.wave-up svg { display: block; width: 100%; }

/* ================================================
   SECTIONS GÉNÉRIQUES
   ================================================ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--gray-100); }
.section-primary { background: var(--primary); color: var(--white); }
.section-cards {
  background: linear-gradient(160deg, #e8f4f6 0%, #f2f8f9 45%, #f7f9fa 100%);
  position: relative;
}
.section-cards::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 8% 20%, rgba(0,103,115,.06) 0%, transparent 50%),
                    radial-gradient(circle at 92% 80%, rgba(0,103,115,.04) 0%, transparent 45%);
  pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 2.5rem; }

.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.section-primary .section-label { color: rgba(255,255,255,.7); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .6rem;
}

.section-primary .section-title { color: var(--white); }

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: .6rem auto 0;
}

.section-primary .section-title::after { background: rgba(255,255,255,.5); }
.section-alt .section-title::after { background: var(--primary); }

.section-intro {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: .97rem;
}

.section-primary .section-intro { color: rgba(255,255,255,.85); }

/* ================================================
   QUI SOMMES-NOUS
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: .97rem;
}

.about-highlights {
  list-style: none;
  margin: 1.5rem 0;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .75rem;
  font-size: .95rem;
}

.about-highlights li::before {
  content: '✓';
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .2rem;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary-light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ================================================
   STATS CHIFFRES CLÉS
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.4rem 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #006773;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(to bottom, transparent 55%, rgba(22, 154, 169, 0.35) 45%);
  padding: 0 .3em;
}

.stat-label {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: .5rem;
  line-height: 1.3;
}

/* ================================================
   CARTES DÉMARCHES
   ================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 18px rgba(0,0,0,.06);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Barre teal qui se déploie depuis la gauche au hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 36px rgba(0, 110, 122, .16);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0,110,122,.1) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.15rem;
  transition: transform .22s ease;
}

.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); }

.card h3 {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: .4rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
  padding: .65rem 1rem;
  border-radius: 8px;
  margin-top: auto;
  text-decoration: none;
  transition: background .22s ease, color .22s ease;
}

.card-link::after {
  content: '→';
  font-size: 1rem;
  transition: transform .22s ease;
}

.card:hover .card-link {
  background: var(--primary);
  color: var(--white);
}

.card:hover .card-link::after { transform: translateX(5px); }

/* ================================================
   BANDEAU CONTACT
   ================================================ */
.contact-band {
  padding: 3rem 0;
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.contact-band h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.contact-band p { opacity: .85; margin-bottom: 1.5rem; }

/* ================================================
   INFOS PRATIQUES (liste établissements, etc.)
   ================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-block h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-light);
}

.info-block p,
.info-block li {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-block ul { list-style: none; }
.info-block ul li::before { content: '· '; color: var(--primary); font-weight: 700; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text strong { color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-text span { color: rgba(255,255,255,.6); }

.footer-brand p {
  margin-top: 1rem;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(255,255,255,.15);
}

.footer-col ul { list-style: none; }

.footer-col ul li a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  line-height: 2.2;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
}

/* ================================================
   PAGES INTÉRIEURES
   ================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2.5rem 0;
}

.breadcrumb {
  font-size: .875rem;
  margin-bottom: .75rem;
  opacity: .8;
}

.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 .4rem; }

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.page-hero p {
  margin-top: .6rem;
  opacity: .85;
  max-width: 560px;
  font-size: .97rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
}

/* Contenu riche */
.page-content h2 {
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 700;
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primary-light);
  scroll-margin-top: 5.5rem;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
}

.page-content p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.page-content ul,
.page-content ol {
  margin: .5rem 0 1rem 1.3rem;
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.9;
}

.page-content strong { color: var(--text); }
.page-content a { font-weight: 600; }

/* Encadrés */
.notice {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: .9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .95rem;
  color: var(--primary-dark);
  line-height: 1.6;
}

.notice > strong { display: block; margin-bottom: .3rem; color: var(--primary-dark); }

.notice-warning {
  border-color: #c0392b;
  background: #fdf3f3;
  color: #7b1f1f;
}

.notice-warning > strong { color: #7b1f1f; }

.notice-info {
  border-color: #2980b9;
  background: #eaf4fb;
  color: #1a4a6b;
}

.notice-danger {
  border-color: #f00;
  background: #f04848;
  color: #fff;
}

.notice-danger > strong { display: block; margin-bottom: .3rem; color: #fff; }

/* Étapes numérotées */
.checklist { list-style: none; padding: 0; margin: .5rem 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .9rem; background: var(--gray-50); border-radius: 6px; border-left: 3px solid var(--primary); font-size: .95rem; line-height: 1.5; }
.checklist li::before { content: '✓'; color: var(--primary); font-weight: 800; font-size: .9rem; flex-shrink: 0; margin-top: .05rem; }

.steps { list-style: none; margin: 1rem 0 1.5rem; counter-reset: steps; padding: 0; }

.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.steps li::before {
  content: counter(steps);
  background: var(--primary);
  color: var(--white);
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .2rem;
}

.steps li div { flex: 1; }
.steps li strong { display: block; color: var(--text); margin-bottom: .25rem; font-size: .95rem; }
.steps li p { color: var(--text-muted); font-size: .95rem; margin: 0; line-height: 1.6; }

/* Tableau */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

thead th {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:nth-child(odd) { background: var(--gray-100); }
tbody tr:nth-child(even) { background: var(--white); }

tbody td {
  padding: .6rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

tbody td:last-child { text-align: center; font-weight: 600; color: var(--primary); }

/* Grille contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.contact-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  border-top: 3px solid var(--primary);
}

.contact-block h3 {
  color: var(--primary);
  font-size: .95rem;
  margin-bottom: .75rem;
  font-weight: 700;
}

.contact-block .contact-line {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
  line-height: 1.5;
}

.contact-block .contact-line a { color: var(--primary); font-weight: 600; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 5.5rem; align-self: start; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.sidebar-widget h3 {
  font-size: .92rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-light);
}

.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }

.sidebar-widget ul li a {
  display: block;
  padding: .45rem 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition), padding var(--transition);
}

.sidebar-widget ul li:last-child a { border-bottom: none; }
.sidebar-widget ul li a:hover { color: var(--primary); padding-left: .35rem; }
.sidebar-widget ul li a.active { color: var(--primary); font-weight: 700; }

.sidebar-cta {
  background: var(--primary);
  color: var(--white);
}

.sidebar-cta h3 { color: var(--white); border-color: rgba(255,255,255,.2); }
.sidebar-cta p { font-size: .9rem; opacity: .9; margin-bottom: 1rem; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .65rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,110,122,.18);
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,110,122,.28);
  color: #fff;
}

.sidebar-cta .btn-full {
  background: var(--white);
  color: var(--primary);
  width: 100%;
  text-align: center;
  display: block;
  padding: .65rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sidebar-cta .btn-full:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.sidebar-cta .tel {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .35rem;
  transition: opacity .18s ease;
}

.sidebar-cta .tel:hover { opacity: .8; }

.sidebar-cta .tel-note { font-size: .875rem; opacity: .75; }

.sidebar-info { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }
.sidebar-info strong { color: var(--text); display: block; margin-bottom: .2rem; }

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { background: var(--primary-light); color: var(--primary); border-radius: 100px; padding: .22rem .7rem; font-size: .875rem; font-weight: 600; }

/* Horaires tableau */
.horaires-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.horaire-bloc {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .95rem;
}

.horaire-bloc strong {
  display: block;
  color: var(--primary);
  margin-bottom: .4rem;
  font-size: .9rem;
}

/* Schedules redesign */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.75rem;
}

.schedule-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--primary-light);
}

.schedule-card-head {
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem .55rem;
}

.schedule-card-head strong {
  display: block;
  font-size: .97rem;
  font-weight: 700;
  color: #fff;
}

.schedule-card-meta {
  display: block;
  font-size: .76rem;
  opacity: .82;
  margin-top: .15rem;
  font-weight: 400;
}

.schedule-card-body {
  padding: .6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-period {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.schedule-period:last-child { border-bottom: none; }

.schedule-period-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  width: 5.5rem;
}

.schedule-period-times {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ================================================
   RESPONSIVE
   ================================================ */
/* ── 900px ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; gap: 2rem; }
  .horaires-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navigation — panneau pleine largeur */
  nav[aria-label="Navigation principale"] {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;          /* viewport, indépendant du container */
    background: var(--white);
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 100;
  }
  .nav-menu { display: none; flex-direction: column; width: 100%; margin: 0; padding: 0; }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; list-style: none; }
  .nav-menu > li > a {
    display: block;
    width: 100%;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text);
  }
  .nav-menu > li.active > a { color: var(--primary); background: var(--primary-light); }
  .nav-menu > li > a:hover { background: var(--gray-100); }
  .has-dropdown > a::after { content: ' ▾'; }
  .dropdown {
    position: static;
    display: none;
    background: var(--gray-100);
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .dropdown::before { display: none; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li { list-style: none; }
  .dropdown li a {
    display: block;
    padding: .85rem 1.5rem .85rem 2.5rem;
    font-size: .95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--gray-200);
  }
  .dropdown li:last-child a { border-bottom: none; }
  .dropdown li a:hover { background: var(--primary-light); color: var(--primary); }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: nowrap; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .topbar-contact { gap: .75rem; }

  /* Sections */
  .section { padding: 3rem 0; }
  .page-hero { padding: 1.75rem 0; }

  /* Wave : stop animation, simplify */
  .wave-down svg { animation: none; width: 100%; margin-left: 0; }

  /* Modal */
  .modal-box { max-width: calc(100vw - 2rem); max-height: 85vh; }
  .modal-body { padding: 1.25rem 1.25rem; }
  .modal-footer { padding: 1rem 1.25rem 1.25rem; }
  .modal-header { padding: 1.1rem 1.25rem; }
}

/* ── 600px ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section-header { margin-bottom: 1.75rem; }
  .section-title { font-size: 1.45rem; }
  .urgences-numbers { gap: .4rem; }
  .urgence-pill { font-size: .78rem; padding: .35rem .65rem; }
}

/* ── 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Hero */
  .hero h1 { font-size: 1.55rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-eyebrow { font-size: .78rem; }

  /* Cards : une seule colonne */
  .cards-grid { grid-template-columns: 1fr; }

  /* Stats : 2×2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Sections */
  .section { padding: 2.25rem 0; }

  /* Topbar : masquer l'adresse, garder contacts */
  .topbar-inner > span:first-child { display: none; }
  .topbar-contact { gap: .5rem; }

  /* Sidebar */
  .sidebar-widget { padding: 1rem 1.1rem; }
}

/* ── 375px ──────────────────────────────────────────── */
@media (max-width: 375px) {
  .container { padding: 0 .9rem; }
  .section { padding: 1.75rem 0; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: 1.35rem; }
  .topbar { font-size: .78rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .stat-number { font-size: 1.6rem; }
  .btn-phone-float { padding: .65rem 1rem; font-size: .85rem; right: .75rem; bottom: .75rem; }
  .modal-box { max-width: 100vw; border-radius: 12px 12px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 90vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}
