/* =============================================
   CLINIQUE DU SAINT-CŒUR — Feuille de style principale
   SAS VEND'SANTÉ — Vendôme
   ============================================= */

/* ---------- Variables de couleurs ---------- */
:root {
  --bleu-principal: #1B3D8F;
  --bleu-secondaire: #2B5BB5;
  --bleu-clair: #E8EEF8;
  --gris-argent: #8B9BB0;
  --gris-clair: #F5F7FA;
  --gris-moyen: #E2E8F0;
  --gris-texte: #4A5568;
  --blanc: #FFFFFF;
  --rouge-urgence: #C0392B;
  --vert-succes: #27AE60;
  --ombre: 0 4px 20px rgba(27, 61, 143, 0.12);
  --ombre-forte: 0 8px 40px rgba(27, 61, 143, 0.2);
  --rayon: 10px;
  --rayon-large: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gris-texte);
  background: var(--blanc);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--bleu-secondaire);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--bleu-principal);
}

ul {
  list-style: none;
}

/* ---------- Accessibilité ---------- */
:focus-visible {
  outline: 3px solid var(--bleu-secondaire);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip to content (accessibilité) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--bleu-principal);
  color: var(--blanc);
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 0 0 var(--rayon) 0;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5 {
  color: var(--bleu-principal);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* ---------- Conteneur ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--bleu-principal);
  color: var(--blanc);
  border-color: var(--bleu-principal);
}

.btn-primary:hover {
  background: var(--bleu-secondaire);
  border-color: var(--bleu-secondaire);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: var(--ombre);
}

.btn-outline {
  background: transparent;
  color: var(--bleu-principal);
  border-color: var(--bleu-principal);
}

.btn-outline:hover {
  background: var(--bleu-principal);
  color: var(--blanc);
  transform: translateY(-2px);
}

.btn-urgence {
  background: var(--rouge-urgence);
  color: var(--blanc);
  border-color: var(--rouge-urgence);
}

.btn-urgence:hover {
  background: #a93226;
  border-color: #a93226;
  color: var(--blanc);
}

/* ---------- BANDEAU D'URGENCE ---------- */
.bandeau-urgence {
  background: var(--rouge-urgence);
  color: var(--blanc);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bandeau-urgence a {
  color: var(--blanc);
  text-decoration: underline;
}

.bandeau-urgence a:hover {
  color: #fde8e6;
}

/* ---------- EN-TÊTE / NAVIGATION ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blanc);
  box-shadow: 0 2px 15px rgba(27, 61, 143, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 70px;
  width: auto;
}

/* Navigation principale */
nav#nav-principal {
  display: flex;
  align-items: center;
}

nav#nav-principal ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav#nav-principal ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--bleu-principal);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
  white-space: nowrap;
}

nav#nav-principal ul li a:hover,
nav#nav-principal ul li a.actif {
  background: var(--bleu-clair);
  color: var(--bleu-principal);
}

nav#nav-principal ul li a.btn-nav-contact {
  background: var(--bleu-principal);
  color: var(--blanc);
  border-radius: 50px;
  padding: 8px 18px;
}

nav#nav-principal ul li a.btn-nav-contact:hover {
  background: var(--bleu-secondaire);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--rayon);
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--bleu-principal);
  border-radius: 3px;
  transition: var(--transition);
}

.burger.ouvert span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.ouvert span:nth-child(2) {
  opacity: 0;
}

.burger.ouvert span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- HERO / BANNIÈRE ---------- */
.hero {
  background: linear-gradient(135deg, var(--bleu-principal) 0%, var(--bleu-secondaire) 60%, #4a7fd4 100%);
  color: var(--blanc);
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-contenu {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--blanc);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
  color: var(--blanc);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  font-size: 1rem;
  padding: 14px 32px;
}

.btn-blanc {
  background: var(--blanc);
  color: var(--bleu-principal);
  border-color: var(--blanc);
  font-weight: 700;
}

.btn-blanc:hover {
  background: var(--bleu-clair);
  color: var(--bleu-principal);
  transform: translateY(-2px);
}

.btn-contour-blanc {
  background: transparent;
  color: var(--blanc);
  border-color: rgba(255,255,255,0.7);
}

.btn-contour-blanc:hover {
  background: rgba(255,255,255,0.15);
  color: var(--blanc);
}

/* ---------- CHIFFRES CLÉS ---------- */
.chiffres {
  background: var(--blanc);
  padding: 50px 20px;
  border-bottom: 1px solid var(--gris-moyen);
}

.chiffres-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.chiffre-item {
  padding: 20px;
}

.chiffre-nombre {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bleu-principal);
  line-height: 1;
  margin-bottom: 8px;
}

.chiffre-label {
  font-size: 0.9rem;
  color: var(--gris-argent);
  font-weight: 500;
}

/* ---------- SECTIONS GÉNÉRIQUES ---------- */
.section {
  padding: 80px 20px;
}

.section-gris {
  background: var(--gris-clair);
}

.section-bleu {
  background: var(--bleu-principal);
  color: var(--blanc);
}

.section-bleu h2,
.section-bleu h3 {
  color: var(--blanc);
}

.section-titre {
  text-align: center;
  margin-bottom: 60px;
}

.section-titre .surtitre {
  display: inline-block;
  color: var(--bleu-secondaire);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-titre h2 {
  margin-bottom: 16px;
}

.section-titre p {
  color: var(--gris-argent);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- CARTES SPÉCIALITÉS ---------- */
.specialites-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .specialites-grille { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .specialites-grille { grid-template-columns: 1fr; }
}

.specialite-card {
  background: var(--blanc);
  border-radius: var(--rayon-large);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--ombre);
  transition: var(--transition);
  border: 2px solid transparent;
}

.specialite-card:hover {
  border-color: var(--bleu-secondaire);
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
}

.specialite-icone {
  width: 70px;
  height: 70px;
  background: var(--bleu-clair);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: var(--transition);
}

.specialite-card:hover .specialite-icone {
  background: var(--bleu-principal);
}

.specialite-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.specialite-card p {
  font-size: 0.88rem;
  color: var(--gris-argent);
  margin-bottom: 0;
}

.specialite-card a {
  display: inline-block;
  margin-top: 15px;
  color: var(--bleu-secondaire);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- SECTION ACCUEIL RAPIDE ---------- */
.acces-rapide-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.acces-rapide-grille.grille-2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 640px) {
  .acces-rapide-grille.grille-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.acces-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--rayon-large);
  padding: 30px;
  transition: var(--transition);
}

.acces-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.acces-card h3 {
  color: var(--blanc);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.acces-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.acces-card .btn {
  background: var(--blanc);
  color: var(--bleu-principal);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
}

.acces-card .btn:hover {
  background: var(--bleu-clair);
  color: var(--bleu-principal);
  transform: none;
}

/* ---------- SECTION CONTACT RAPIDE HOME ---------- */
.contact-bande {
  background: var(--bleu-clair);
  padding: 50px 20px;
}

.contact-bande-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info-icone {
  width: 50px;
  height: 50px;
  background: var(--bleu-principal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blanc);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.82rem;
  color: var(--gris-argent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-info-item p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 0;
}

.contact-info-item a {
  color: var(--bleu-principal);
  font-weight: 700;
}

/* ---------- CARTE GOOGLE MAPS ---------- */
.carte-section {
  padding: 60px 20px;
}

.carte-section .section-titre {
  margin-bottom: 40px;
}

.carte-wrapper {
  border-radius: var(--rayon-large);
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 3px solid var(--gris-moyen);
}

.carte-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ---------- ACTUALITÉS ---------- */
.actualites-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.actu-card {
  background: var(--blanc);
  border-radius: var(--rayon-large);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: var(--transition);
}

.actu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
}

.actu-card-image {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.actu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.actu-card:hover .actu-card-image img {
  transform: scale(1.06);
}
.actu-card-image .actu-img-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.actu-card-corps {
  padding: 25px;
}

/* Article à la une — responsive */
@media (max-width: 700px) {
  article[aria-label="Article à la une"] {
    grid-template-columns: 1fr !important;
  }
  article[aria-label="Article à la une"] > div:first-child {
    min-height: 200px !important;
  }
}

.actu-tag {
  display: inline-block;
  background: var(--bleu-clair);
  color: var(--bleu-principal);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.actu-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.actu-card p {
  font-size: 0.88rem;
  color: var(--gris-argent);
  margin-bottom: 15px;
}

.actu-meta {
  font-size: 0.82rem;
  color: var(--gris-argent);
}

/* ---------- ÉQUIPE MÉDICALE ---------- */
.equipe-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.medecin-card {
  background: var(--blanc);
  border-radius: var(--rayon-large);
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--ombre);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.medecin-card .btn-doctolib {
  margin-top: auto;
}

.medecin-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre-forte);
}

.medecin-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bleu-clair);
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid var(--bleu-secondaire);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bleu-principal);
}

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

.medecin-card h3 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.medecin-specialite {
  color: var(--bleu-secondaire);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.medecin-card p {
  font-size: 0.85rem;
  color: var(--gris-argent);
  margin-bottom: 0;
}

/* ---------- FORMULAIRE DE CONTACT ---------- */
.form-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-groupe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-groupe.pleine-largeur {
  grid-column: 1 / -1;
}

.form-groupe label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu-principal);
}

.form-groupe label .requis {
  color: var(--rouge-urgence);
  margin-left: 3px;
}

.form-groupe input,
.form-groupe select,
.form-groupe textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid var(--gris-moyen);
  border-radius: var(--rayon);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gris-texte);
  background: var(--blanc);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-groupe input:focus,
.form-groupe select:focus,
.form-groupe textarea:focus {
  outline: none;
  border-color: var(--bleu-secondaire);
  box-shadow: 0 0 0 3px rgba(43, 91, 181, 0.15);
}

.form-groupe textarea {
  resize: vertical;
  min-height: 140px;
}

.form-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.form-rgpd input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-rgpd label {
  font-size: 0.85rem;
  color: var(--gris-argent);
  line-height: 1.5;
}

.form-rgpd a {
  color: var(--bleu-secondaire);
}

.form-succes {
  display: none;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--rayon);
  padding: 15px 20px;
  margin-top: 20px;
  font-weight: 600;
}

/* ---------- PAGE HERO (pages internes) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--bleu-principal), var(--bleu-secondaire));
  color: var(--blanc);
  padding: 70px 20px 60px;
  text-align: center;
}

.page-hero h1 {
  color: var(--blanc);
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.75);
}

.breadcrumb a:hover {
  color: var(--blanc);
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* ---------- ACCORDION ---------- */
.accordion-item {
  border: 2px solid var(--gris-moyen);
  border-radius: var(--rayon);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--blanc);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bleu-principal);
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
}

.accordion-btn:hover {
  background: var(--bleu-clair);
}

.accordion-btn.ouvert {
  background: var(--bleu-principal);
  color: var(--blanc);
}

.accordion-icone {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.accordion-btn.ouvert .accordion-icone {
  transform: rotate(180deg);
}

.accordion-contenu {
  display: none;
  padding: 20px 22px;
  background: var(--gris-clair);
  border-top: 1px solid var(--gris-moyen);
}

.accordion-contenu.visible {
  display: block;
}

/* ---------- TABLEAU D'INFOS ---------- */
.tableau-info {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.tableau-info th {
  background: var(--bleu-principal);
  color: var(--blanc);
  padding: 15px 20px;
  text-align: left;
  font-size: 0.9rem;
}

.tableau-info td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gris-moyen);
  font-size: 0.93rem;
}

.tableau-info tr:last-child td {
  border-bottom: none;
}

.tableau-info tr:hover td {
  background: var(--gris-clair);
}

/* ---------- ALERTE / INFO BOX ---------- */
.alerte {
  border-radius: var(--rayon);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alerte-info {
  background: var(--bleu-clair);
  border-left: 4px solid var(--bleu-secondaire);
  color: var(--bleu-principal);
}

.alerte-urgence {
  background: #fde8e6;
  border-left: 4px solid var(--rouge-urgence);
  color: #7b1f1a;
}

.alerte-succes {
  background: #d4edda;
  border-left: 4px solid var(--vert-succes);
  color: #155724;
}

.alerte-icone {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- PIED DE PAGE ---------- */
footer {
  background: #0f2354;
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}

.footer-grille {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

.footer-col h4 {
  color: var(--blanc);
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-col p {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.footer-logo {
  margin-bottom: 18px;
  background: var(--blanc);
  display: inline-block;
  padding: 10px 15px;
  border-radius: var(--rayon);
}

.footer-logo img {
  height: 55px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--blanc);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item span:first-child {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  background: #091a3d;
  padding: 20px;
  text-align: center;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom-liens {
  display: flex;
  gap: 20px;
}

.footer-bottom-liens a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-liens a:hover {
  color: var(--blanc);
}

/* ---------- BADGE CERTIFICATION ---------- */
.badge-certif {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vert-succes);
  color: var(--blanc);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2a4a;
  color: var(--blanc);
  padding: 20px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.88rem;
  margin: 0;
  opacity: 0.9;
  flex: 1;
}

.cookie-banner a {
  color: #7eb3ff;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accepter {
  background: var(--vert-succes);
  color: var(--blanc);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-cookie-refuser {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------- RETOUR EN HAUT ---------- */
.btn-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bleu-principal);
  color: var(--blanc);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ombre);
  z-index: 999;
  transition: var(--transition);
}

.btn-top.visible {
  display: flex;
}

.btn-top:hover {
  background: var(--bleu-secondaire);
  transform: translateY(-3px);
}

/* ---------- CHECKLIST STYLE ---------- */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gris-moyen);
  font-size: 0.95rem;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '✓';
  color: var(--vert-succes);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- TWO COLUMN LAYOUT ---------- */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.layout-2col.inverse {
  direction: rtl;
}

.layout-2col.inverse > * {
  direction: ltr;
}

.illustration-box {
  background: var(--bleu-clair);
  border-radius: var(--rayon-large);
  padding: 60px 40px;
  text-align: center;
  font-size: 5rem;
}

/* ---------- SECTION VALEURS ---------- */
/* anciens styles conservés pour compatibilité */
.valeurs-grille { display: none; }
.valeur-card, .valeur-icone { display: none; }

/* ---- Nouveau strip valeurs ---- */
.valeurs-section { background: var(--gris-clair); }

.valeurs-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  padding-top: 20px;
}

.valeurs-strip::before { display: none; }

.valeur-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px 30px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.4,0,.2,1);
}
.valeur-item.is-visible { opacity: 1; transform: translateY(0); }
.valeur-item:nth-child(1) { transition-delay: 0.1s; }
.valeur-item:nth-child(2) { transition-delay: 0.22s; }
.valeur-item:nth-child(3) { transition-delay: 0.34s; }
.valeur-item:nth-child(4) { transition-delay: 0.46s; }
.valeur-item:nth-child(5) { transition-delay: 0.58s; }

@supports (animation-timeline: view()) {
  .valeur-item {
    opacity: 1;
    transform: none;
    animation: valeur-rise linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 55%;
  }
  .valeur-item:nth-child(1) { animation-delay: 0.1s; }
  .valeur-item:nth-child(2) { animation-delay: 0.22s; }
  .valeur-item:nth-child(3) { animation-delay: 0.34s; }
  .valeur-item:nth-child(4) { animation-delay: 0.46s; }
  .valeur-item:nth-child(5) { animation-delay: 0.58s; }
}
@keyframes valeur-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.valeur-num { display: none; }

.valeur-bubble {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--blanc);
  box-shadow: 0 6px 24px rgba(0,71,145,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.35s ease;
}
.valeur-item:hover .valeur-bubble {
  transform: scale(1.15) translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,71,145,0.22);
}

.valeur-titre {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--bleu-principal);
  margin-bottom: 8px;
}
.valeur-desc {
  font-size: 0.82rem;
  color: var(--gris-argent);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .valeurs-strip { grid-template-columns: repeat(3, 1fr); }
  .valeurs-strip::before { display: none; }
}
@media (max-width: 540px) {
  .valeurs-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ================================================================
   BOUTON FLOTTANT FILTRE — equipe.html
================================================================ */
.filtre-fab-wrap {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Tooltip d'invitation */
.filtre-tooltip {
  background: rgba(0,20,60,0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  animation: tooltip-bounce 0.6s cubic-bezier(.34,1.56,.64,1) both,
             tooltip-fade 0.5s ease 3.8s forwards;
  pointer-events: none;
}
.filtre-tooltip-arrow {
  font-size: 0.7rem;
  margin-top: 6px;
  animation: arrow-bounce 1s ease-in-out infinite;
}
@keyframes tooltip-bounce {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes tooltip-fade {
  to { opacity: 0; pointer-events: none; transform: translateY(6px); }
}
@keyframes arrow-bounce {
  0%,100% { transform: translateY(0);  }
  50%      { transform: translateY(4px); }
}
.filtre-tooltip.hidden { display: none; }

/* Bouton FAB */
.filtre-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bleu-principal) 0%, #0096c8 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,71,145,0.4);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.25s ease;
  font-family: inherit;
  overflow: visible;
}
.filtre-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 36px rgba(0,71,145,0.5);
}
.filtre-fab.ouvert {
  border-radius: 50px 50px 12px 12px;
  background: linear-gradient(135deg, #003a7a 0%, #005fa3 100%);
}

/* Anneau pulsant autour du bouton */
.filtre-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  border: 2px solid rgba(0,150,200,0.6);
  animation: fab-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  70%  { transform: scale(1.18); opacity: 0;   }
  100% { transform: scale(1.18); opacity: 0;   }
}
.filtre-fab.ouvert .filtre-fab-pulse { display: none; }

.filtre-fab-badge {
  background: rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.3);
}

.filtre-panel {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px 4px 20px 20px;
  box-shadow: 0 20px 60px rgba(0,71,145,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
  width: min(380px, 90vw);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1),
              opacity 0.25s ease;
  pointer-events: none;
}
.filtre-panel:not([hidden]) {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.filtre-panel-header {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.filtre-panel-search {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid var(--gris-moyen);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.filtre-panel-search:focus {
  outline: none;
  border-color: var(--bleu-secondaire);
  box-shadow: 0 0 0 3px rgba(43,91,181,0.12);
}
.filtre-panel-body {
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filtre-panel-count {
  text-align: center;
  color: var(--gris-argent);
  font-size: 0.82rem;
  padding: 0 16px 6px;
  margin: 0;
}
.filtre-confirm-btn {
  display: none;
  width: calc(100% - 32px);
  margin: 2px 16px 16px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1a56a0 0%, var(--bleu-secondaire) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(43,91,181,0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.filtre-confirm-btn.is-visible {
  display: block;
  animation: confirmPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.filtre-confirm-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 30px rgba(43,91,181,0.42);
}
.filtre-confirm-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(43,91,181,0.25);
}
@keyframes confirmPop {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ================================================================
   FAB NAVIGATION — specialites.html
   ================================================================ */
.spec-nav-panel {
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bleu-secondaire) transparent;
}
.spec-nav-panel::-webkit-scrollbar { width: 4px; }
.spec-nav-panel::-webkit-scrollbar-thumb { background: var(--bleu-secondaire); border-radius: 4px; }
.spec-nav-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0 10px;
}
.spec-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--bleu-fonce);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, padding-left 0.15s;
}
.spec-nav-link:hover {
  background: var(--bleu-clair);
  border-left-color: var(--bleu-secondaire);
  color: var(--bleu-principal);
  padding-left: 22px;
}
.spec-nav-link.is-active {
  background: rgba(43,91,181,0.08);
  border-left-color: var(--bleu-principal);
  color: var(--bleu-principal);
  font-weight: 700;
}
.spec-nav-panel-title {
  padding: 14px 18px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gris-argent);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* ================================================================
   SUBNAV STICKY — patients.html
================================================================ */
.patients-subnav {
  position: relative;
  width: 100%;
  z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(0,71,145,0.1);
  box-shadow: 0 4px 20px rgba(0,71,145,0.08);
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}
.patients-subnav.is-fixed {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  box-shadow: 0 6px 28px rgba(0,71,145,0.16);
}
/* espaceur pour éviter le saut de mise en page */
.patients-subnav-spacer {
  display: none;
  height: 0;
}
.patients-subnav-spacer.active {
  display: block;
}
.patients-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.patients-subnav-inner::-webkit-scrollbar { display: none; }

.subnav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gris-texte);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.subnav-item:hover {
  background: var(--bleu-clair);
  color: var(--bleu-principal);
  transform: translateY(-1px);
}
.subnav-item.actif {
  background: var(--bleu-principal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,71,145,0.3);
}
.subnav-item.actif:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* indicateur animé sous l'item actif */
.subnav-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background: var(--bleu-principal);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.subnav-item.actif::after { transform: translateX(-50%) scaleX(1); }

@media (max-width: 768px) {
  .patients-subnav { top: 60px; }
  .subnav-item span { display: none; }
  .subnav-item { padding: 8px 12px; font-size: 1.1rem; }
}

/* ================================================================
   ANIMATIONS sections — patients.html
================================================================ */
.section[id] > .container > *,
.section[id] > .container > .layout-2col > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.4,0,.2,1);
}
.section[id].section-visible > .container > *,
.section[id].section-visible > .container > .layout-2col > * {
  opacity: 1;
  transform: translateY(0);
}
@supports (animation-timeline: view()) {
  .section[id] > .container > *,
  .section[id] > .container > .layout-2col > * {
    opacity: 1;
    transform: none;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grille {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile */
  .burger {
    display: flex;
  }

  nav#nav-principal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 999;
  }

  nav#nav-principal.ouvert {
    display: flex;
  }

  nav#nav-principal ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  nav#nav-principal ul li {
    width: 100%;
  }

  nav#nav-principal ul li a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* Header */
  .header-inner {
    position: relative;
  }

  /* Hero */
  .hero {
    padding: 70px 20px 60px;
  }

  /* Layouts */
  .layout-2col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .layout-2col.inverse {
    direction: ltr;
  }

  /* Formulaire */
  .form-grille {
    grid-template-columns: 1fr;
  }

  .form-groupe.pleine-largeur {
    grid-column: 1;
  }

  /* Footer */
  .footer-grille {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Contact bande */
  .contact-bande-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Cookie */
  .cookie-banner-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .chiffres-grille {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- PRINT ---------- */
@media print {
  header, footer, .cookie-banner, .btn-top, .bandeau-urgence {
    display: none !important;
  }

  .hero {
    background: var(--bleu-principal) !important;
    -webkit-print-color-adjust: exact;
  }
}

/* =============================================
   RESPONSIVE GLOBAL — Toutes pages
   Tablette large (≤1200px) · iPad (≤1024px)
   Tablette (≤768px) · Mobile (≤480px)
   ============================================= */

/* ---- Nouvelles classes issues de HTML ---- */
/* contact.html grille coordonnées + formulaire */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}

.contact-layout > * {
  min-width: 0;
}

/* actualites.html article à la une */
.article-une {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---- Tablette large (≤1200px) ---- */
@media (max-width: 1200px) {
  .contact-layout { gap: 40px; }
  .specialites-detail-grille { gap: 30px; }
}

/* ---- iPad / Tablette (≤1024px) ---- */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-une { grid-template-columns: 1fr; }
  .article-une > div:first-child { min-height: 260px; }
  .qualite-grille { grid-template-columns: repeat(2, 1fr); }
  .droits-grid { grid-template-columns: repeat(2, 1fr); }
  .tarif-prix { font-size: 1.9rem; }
  .section { padding: 60px 20px; }
}

/* ---- Tablette / Mobile (≤768px) ---- */
@media (max-width: 768px) {
  /* Sections */
  .section { padding: 50px 16px; }
  .chiffres { padding: 35px 16px; }
  .carte-section { padding: 40px 16px; }
  .contact-bande { padding: 35px 16px; }

  /* Hero */
  .page-hero { padding: 55px 16px 40px; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero p { font-size: 1rem; }
  .hero { padding: 60px 16px 50px; }

  /* Grilles */
  .acces-rapide-grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .actualites-grille { grid-template-columns: 1fr; }
  .equipe-grille { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .qualite-grille { grid-template-columns: 1fr; }
  .droits-grid { grid-template-columns: 1fr; }

  /* Gaps */
  .layout-2col { gap: 30px; }
  .contact-bande-inner { gap: 15px; }

  /* Typographie */
  .tarif-prix { font-size: 1.75rem; }
  .section-titre h2 { font-size: 1.5rem; }
  h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  h2 { font-size: clamp(1.2rem, 4vw, 1.8rem); }

  /* Tableaux : empilement sur mobile */
  .tableau-info:not(:has(thead)) {
    display: block;
    overflow: hidden;
  }
  .tableau-info:not(:has(thead)) tbody { display: block; }
  .tableau-info:not(:has(thead)) tr {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-bottom: 1px solid var(--gris-moyen);
  }
  .tableau-info:not(:has(thead)) tr:last-child { border-bottom: none; }
  .tableau-info:not(:has(thead)) td {
    display: block;
    padding: 6px 16px;
    border-bottom: none;
    font-size: 0.88rem;
  }
  .tableau-info:not(:has(thead)) td:first-child {
    padding-top: 12px;
    font-weight: 700;
    color: var(--bleu-principal);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .tableau-info:not(:has(thead)) td:last-child { padding-bottom: 12px; }

  /* Tableaux avec en-tête : défilement horizontal */
  .tableau-info:has(thead) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ml-cards (mentions légales / RGPD) */
  .ml-card { padding: 24px 20px; }
  .ml-section-header { gap: 12px; }
  .ml-section-header h2 { font-size: 1rem; }

  /* Misc */
  .social-links { flex-wrap: wrap; gap: 8px; }
  .breadcrumb { font-size: 0.82rem; }
  .alerte { padding: 14px 16px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
}

/* ---- Mobile petit (≤480px) ---- */
@media (max-width: 480px) {
  /* Sections */
  .section { padding: 35px 12px; }
  .carte-section { padding: 28px 12px; }
  .contact-bande { padding: 28px 12px; }

  /* Hero */
  .page-hero { padding: 45px 12px 32px; }
  .page-hero h1 { font-size: 1.5rem; }
  .hero { padding: 50px 12px 40px; }

  /* Grilles */
  .acces-rapide-grille { grid-template-columns: 1fr; gap: 12px; }
  .equipe-grille { grid-template-columns: 1fr; }
  .droits-grid { grid-template-columns: 1fr; }

  /* Typographie */
  .tarif-prix { font-size: 1.5rem; }
  .section-titre h2 { font-size: 1.25rem; }

  /* ml-cards */
  .ml-card { padding: 20px 16px; }
  .ml-badge { width: 32px; height: 32px; font-size: 0.8rem; }

  /* Boutons pleine largeur */
  .btn-group-center { flex-direction: column; align-items: stretch; }
  .btn-group-center .btn { text-align: center; justify-content: center; }

  /* Contact formulaire */
  .contact-layout { gap: 24px; }
  .btn-doctolib { display: flex; width: 100%; justify-content: center; box-sizing: border-box; }

  /* Bandeau urgence */
  .bandeau-urgence { font-size: 0.8rem; padding: 8px 10px; }
}

/* ---------- RECHERCHE MÉDECIN (hero) ---------- */
.hero-recherche {
  margin-top: 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255,255,255,0.32);
  border-radius: 60px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hero-recherche:focus-within {
  border-color: rgba(255,255,255,0.65);
  box-shadow: 0 8px 32px rgba(0,0,0,0.32), 0 0 0 4px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero-recherche-icon {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-recherche input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  min-width: 0;
}

.hero-recherche input::placeholder {
  color: rgba(255,255,255,0.58);
}

.hero-recherche .btn {
  background: linear-gradient(135deg, #2563eb 0%, #0d3580 100%);
  color: #fff;
  border-radius: 50px;
  padding: 11px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 4px 14px rgba(13,53,128,0.45);
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.hero-recherche .btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1a3e8c 100%);
  box-shadow: 0 6px 20px rgba(13,53,128,0.55);
  transform: translateY(-1px);
}

.hero-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-tags span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.hero-search-tags a {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.82);
  padding: 4px 13px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.hero-search-tags a:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ---------- RÉSEAUX SOCIAUX ---------- */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.social-btn svg {
  width: 38px;
  height: 38px;
  display: block;
}

.social-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
}

/* ---------- BOUTON DOCTOLIB ---------- */
.btn-doctolib {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #00a99e;
  color: var(--blanc);
  border: none;
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 14px;
}

.btn-doctolib:hover {
  background: #008f85;
  color: var(--blanc);
  transform: translateY(-2px);
}

/* ---------- FILTRE SPÉCIALITÉ (équipe) ---------- */
.filtre-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 45px;
}

.filtre-btn {
  padding: 8px 18px;
  border: 2px solid var(--gris-moyen);
  border-radius: 50px;
  background: var(--blanc);
  color: var(--gris-texte);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filtre-btn:hover,
.filtre-btn.actif {
  background: var(--bleu-principal);
  border-color: var(--bleu-principal);
  color: var(--blanc);
}

.filtre-recherche-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.filtre-recherche-wrap input {
  padding: 12px 20px;
  border: 2px solid var(--gris-moyen);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  max-width: 400px;
  transition: var(--transition);
}

.filtre-recherche-wrap input:focus {
  outline: none;
  border-color: var(--bleu-secondaire);
  box-shadow: 0 0 0 3px rgba(43,91,181,0.15);
}

.medecin-card[data-hidden="true"] {
  display: none;
}

/* ---------- TARIFS ---------- */
.tarifs-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tarif-card {
  background: var(--blanc);
  border-radius: var(--rayon-large);
  padding: 30px 25px;
  box-shadow: var(--ombre);
  border-top: 4px solid var(--bleu-secondaire);
  text-align: center;
  transition: var(--transition);
}

.tarif-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
}

.tarif-card.premium {
  border-top-color: #d4af37;
}

.tarif-prix {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bleu-principal);
  line-height: 1;
  margin: 15px 0 5px;
}

.tarif-prix sup {
  font-size: 1rem;
}

.tarif-prix .par-nuit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gris-argent);
}

.tarif-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu-principal);
  margin-bottom: 8px;
}

.tarif-desc {
  font-size: 0.88rem;
  color: var(--gris-argent);
  margin-bottom: 0;
}

/* ---------- ÉTAPES PARCOURS ---------- */
.etapes-liste {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.etape-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  padding-bottom: 35px;
  position: relative;
}

.etape-item:last-child {
  padding-bottom: 0;
}

.etape-num {
  width: 48px;
  height: 48px;
  background: var(--bleu-principal);
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.etape-item:not(:last-child) .etape-num::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 12px);
  background: var(--gris-moyen);
}

.etape-contenu {
  flex: 1;
  padding-top: 10px;
}

.etape-contenu h4 {
  margin-bottom: 6px;
}

.etape-contenu p {
  font-size: 0.9rem;
  color: var(--gris-argent);
  margin-bottom: 0;
}

/* ---------- TÉLÉCHARGEMENT PDF ---------- */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gris-clair);
  border: 2px solid var(--gris-moyen);
  border-radius: var(--rayon);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bleu-principal);
  transition: var(--transition);
}

.pdf-link:hover {
  background: var(--bleu-clair);
  border-color: var(--bleu-secondaire);
  color: var(--bleu-principal);
}

/* ---------- ONGLETS PATIENTS ---------- */
.onglets-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gris-moyen);
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.onglet-btn {
  padding: 14px 28px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gris-argent);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.onglet-btn.actif,
.onglet-btn:hover {
  color: var(--bleu-principal);
  border-bottom-color: var(--bleu-principal);
}

.onglet-panneau {
  display: none;
}

.onglet-panneau.actif {
  display: block;
}

/* ---------- QUALITÉ / INDICATEURS ---------- */
.qualite-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.qualite-card {
  background: var(--blanc);
  border-radius: var(--rayon-large);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--ombre);
  border-bottom: 3px solid var(--vert-succes);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.55s ease,
              transform 0.55s cubic-bezier(.4,0,.2,1),
              box-shadow 0.3s ease;
}
.qualite-card:nth-child(1) { transition-delay: 0s;    }
.qualite-card:nth-child(2) { transition-delay: 0.1s;  }
.qualite-card:nth-child(3) { transition-delay: 0.2s;  }
.qualite-card:nth-child(4) { transition-delay: 0.3s;  }
.qualite-card--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.qualite-card--visible:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,71,145,0.13);
}

.qualite-score {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--vert-succes);
  margin-bottom: 8px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.qualite-label {
  font-size: 0.88rem;
  color: var(--gris-argent);
  line-height: 1.5;
}

/* ---------- RESPONSIVE ADDITIONS ---------- */
@media (max-width: 768px) {
  .hero-recherche {
    border-radius: 50px;
    flex-direction: row;
    padding: 5px 5px 5px 16px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
  }

  .hero-recherche-icon { display: none; }

  .hero-recherche input {
    font-size: 0.88rem;
    min-width: 0;
    width: 100%;
  }

  .hero-recherche .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Tags : wrap comme desktop, centré */
  .hero-search-tags {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-search-tags span {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
  }

  .hero-search-tags a {
    font-size: 0.73rem;
    padding: 4px 11px;
  }

  .tarifs-grille { grid-template-columns: 1fr; }
}

  .tarifs-grille {
    grid-template-columns: 1fr;
  }

  .onglets-nav {
    gap: 0;
  }

  .onglet-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* ---- Modale Certification HAS ---- */
.has-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.has-overlay.visible {
  opacity: 1;
}
.has-modale {
  background: #fff;
  border-radius: 24px;
  padding: 50px 45px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(27, 61, 143, 0.3);
  position: relative;
  transform: scale(0.85) translateY(30px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}
.has-overlay.visible .has-modale {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.has-modale img {
  max-width: 180px;
  height: auto;
  margin-bottom: 24px;
}
.has-modale h2 {
  font-size: 1.3rem;
  color: var(--bleu-principal);
  margin-bottom: 10px;
}
.has-modale p {
  color: var(--gris-texte);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.has-modale-fermer {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gris-argent);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.has-modale-fermer:hover {
  background: var(--gris-clair);
  color: var(--bleu-principal);
}
.has-badge-top {
  display: inline-block;
  background: linear-gradient(135deg, #1B3D8F, #2B5BB5);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ---- Logo HAS footer fallback ---- */
.has-footer-wrap .has-fallback { display: none; }
.has-footer-wrap.img-failed img { display: none; }
.has-footer-wrap.img-failed .has-fallback { display: inline-block; }

/* ======== CAROUSEL HERO ======== */
.hero-carousel {
  padding: 0 !important;
  height: 100vh;
  min-height: 620px;
  max-height: 860px;
  position: relative;
  overflow: hidden;
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,33,90,0.82) 0%, rgba(27,61,143,0.55) 60%, rgba(0,0,0,0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.45);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(255,255,255,0.32); border-color: #fff; }
.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }
.carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.carousel-dot.active { background: #fff; border-color: #fff; transform: scale(1.2); }

/* ======== ILLUSTRATION PHOTO (spécialités) ======== */
.illustration-photo {
  border-radius: var(--rayon-large);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--ombre-forte);
}
.illustration-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.illustration-photo:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .hero-carousel {
    height: auto;
    min-height: max(100svh, 750px);
    max-height: none;
    overflow: hidden;
  }
  .carousel-slides { position: relative; min-height: max(100svh, 750px); }
  .carousel-slide { position: absolute; inset: 0; min-height: max(100svh, 750px); }
  .carousel-overlay {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    padding: 80px 18px 50px;
    box-sizing: border-box;
    width: 100%;
  }
  .hero-contenu {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-contenu h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 12px; }
  .hero-contenu > p { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-badge { margin-bottom: 12px; font-size: 0.8rem; }
  .hero-actions { gap: 10px; margin-bottom: 0; }
  .hero-actions .btn { padding: 11px 22px; font-size: 0.9rem; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1rem; top: 44%; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
  .carousel-dots { bottom: 16px; }
  .illustration-photo { height: 240px; }
}

@media (max-width: 480px) {
  .carousel-overlay { padding: 70px 14px 45px; }
  .hero-contenu h1 { font-size: clamp(1.3rem, 7vw, 1.8rem); margin-bottom: 10px; }
  .hero-contenu > p { font-size: 0.85rem; margin-bottom: 16px; }
  .hero-actions .btn { padding: 10px 16px; font-size: 0.84rem; }
  .hero-badge { padding: 4px 14px; font-size: 0.75rem; margin-bottom: 10px; }
  .carousel-btn { display: none; }
}

/* ================================================================
   PHOTOS IMMERSIVES — Animations scroll-driven (CSS 2023/2024)
   Compatible Chrome 115+, fallback JS IntersectionObserver
================================================================ */

/* ---- Mini carousel — about.html ---- */
.mini-carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,71,145,0.22), 0 8px 24px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
  opacity: 0;
  clip-path: inset(0 100% 0 0 round 24px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1),
              clip-path 0.9s cubic-bezier(.4,0,.2,1);
}
.mini-carousel.is-visible {
  opacity: 1;
  clip-path: inset(0 0% 0 0 round 24px);
}
@supports (animation-timeline: view()) {
  .mini-carousel {
    opacity: 1;
    clip-path: inset(0 0% 0 0 round 24px);
    animation: reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
.mini-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.mini-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
}
.mini-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}
.mini-carousel-dots {
  position: absolute;
  bottom: 55px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}
.mini-dot.active {
  background: #fff;
  height: 20px;
  border-radius: 4px;
}

/* ---- Photo clinique — about.html ---- */
.photo-clinique-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,71,145,0.22), 0 8px 24px rgba(0,0,0,0.1);
  aspect-ratio: 4/3;
  /* Fallback : état initial pour IO */
  opacity: 0;
  clip-path: inset(0 100% 0 0 round 24px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1),
              clip-path 0.9s cubic-bezier(.4,0,.2,1);
}
.photo-clinique-wrap.is-visible {
  opacity: 1;
  clip-path: inset(0 0% 0 0 round 24px);
}
@supports (animation-timeline: view()) {
  .photo-clinique-wrap {
    opacity: 1;
    clip-path: inset(0 0% 0 0 round 24px);
    animation: reveal-left linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@keyframes reveal-left {
  from { clip-path: inset(0 100% 0 0 round 24px); opacity: 0; }
  to   { clip-path: inset(0 0%   0 0 round 24px); opacity: 1; }
}

.photo-clinique {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform 6s ease;
}
.photo-clinique-wrap.is-visible .photo-clinique {
  transform: scale(1);
}
@supports (animation-timeline: view()) {
  .photo-clinique {
    transform: scale(1);
    animation: ken-burns linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes ken-burns {
  from { transform: scale(1.08) translateY(-2%); }
  to   { transform: scale(1)    translateY(2%);  }
}

.photo-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  animation: badge-pop 0.5s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: 0.6s;
}
@keyframes badge-pop {
  from { transform: scale(0.6) translateY(10px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* ---- Parallax équipe — equipe.html ---- */
.parallax-equipe {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.parallax-equipe-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .parallax-equipe-img {
    animation: parallax-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes parallax-drift {
  from { transform: translateY(-10%); }
  to   { transform: translateY(10%);  }
}

.parallax-equipe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,20,80,0.72) 0%,
    rgba(0,100,180,0.38) 60%,
    rgba(0,0,0,0.08) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 44px 48px;
}
.parallax-equipe-glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 28px 40px;
  max-width: 480px;
  /* fallback */
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.4,0,.2,1);
}
.parallax-equipe-glass.is-visible {
  opacity: 1;
  transform: translateX(0);
}
@supports (animation-timeline: view()) {
  .parallax-equipe-glass {
    opacity: 1;
    transform: translateX(0);
    animation: glass-in linear both;
    animation-timeline: view();
    animation-range: entry 15% entry 65%;
  }
}
@keyframes glass-in {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0);     }
}
.parallax-equipe-label {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.parallax-equipe-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
}
.parallax-equipe-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.parallax-equipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.parallax-equipe-dot:first-child { background: #fff; width: 24px; border-radius: 4px; }

/* ---- Section cinématique — specialites.html ---- */
.cinema-plateau {
  position: relative;
  height: 540px;
  overflow: hidden;
}
.cinema-plateau-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -10%;
  left: 0;
  will-change: transform;
  filter: brightness(0.9);
}
@supports (animation-timeline: view()) {
  .cinema-plateau-img {
    animation: cinema-zoom linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}
@keyframes cinema-zoom {
  from { transform: scale(1.12) translateY(-4%); }
  to   { transform: scale(1)    translateY(4%);  }
}

.cinema-plateau-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,15,50,0.88) 0%,
    rgba(0,15,50,0.6) 45%,
    rgba(0,15,50,0.08) 100%
  );
  display: flex;
  align-items: center;
}
.cinema-plateau-content {
  padding: 0 48px;
  max-width: 560px;
  /* fallback */
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.4,0,.2,1);
}
.cinema-plateau-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@supports (animation-timeline: view()) {
  .cinema-plateau-content {
    opacity: 1;
    transform: translateY(0);
    animation: content-rise linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }
}
@keyframes content-rise {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.cinema-plateau-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,150,200,0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.cinema-plateau-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
.cinema-plateau-title em {
  font-style: normal;
  color: rgba(100,200,255,0.9);
}
.cinema-plateau-text {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}
.cinema-plateau-line {
  width: 48px;
  height: 3px;
  background: rgba(100,200,255,0.7);
  border-radius: 2px;
  margin-bottom: 20px;
  animation: line-grow linear both;
  animation-timeline: view();
  animation-range: entry 20% entry 55%;
}
@keyframes line-grow {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}
@supports not (animation-timeline: view()) {
  .cinema-plateau-line { animation: none; }
}

/* ================================================================
   HAS BANNER — actualites.html
================================================================ */
.has-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #004791 0%, #0077cc 60%, #00a8e8 100%);
  border-radius: 20px;
  padding: 28px 36px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1),
              box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,71,145,0.25);
}
.has-banner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,71,145,0.35);
}
.has-banner-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px;
  right: 80px;
  pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 1;   }
}
.has-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.has-banner-icon {
  font-size: 2.4rem;
  line-height: 1;
  animation: icon-float 3s ease-in-out infinite;
}
@keyframes icon-float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-5px); }
}
.has-banner-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.has-banner-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.has-banner-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.has-banner-btn {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.has-banner:hover .has-banner-btn {
  background: rgba(255,255,255,0.28);
  transform: translateX(4px);
}
@media (max-width: 600px) {
  .has-banner { flex-direction: column; align-items: flex-start; padding: 22px; }
  .has-banner-right { align-self: stretch; }
  .has-banner-btn { display: block; text-align: center; }
}

/* ================================================================
   BENTO STATS — about.html
================================================================ */
.stats-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-card--grand { grid-column: span 1; grid-row: span 1; }

.stat-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--blanc);
  box-shadow: 0 4px 24px rgba(0,71,145,0.08);
  padding: 44px 36px;
  cursor: default;
  /* entrée animée */
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1),
              transform 0.55s cubic-bezier(.4,0,.2,1),
              box-shadow 0.3s ease;
}
.stat-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* délais en cascade */
.stats-bento .stat-card:nth-child(1) { transition-delay: 0s;    }
.stats-bento .stat-card:nth-child(2) { transition-delay: 0.08s; }
.stats-bento .stat-card:nth-child(3) { transition-delay: 0.16s; }
.stats-bento .stat-card:nth-child(4) { transition-delay: 0.24s; }
.stats-bento .stat-card:nth-child(5) { transition-delay: 0.32s; }
.stats-bento .stat-card:nth-child(6) { transition-delay: 0.40s; }

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,71,145,0.16);
}

/* fond ornemental */
.stat-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(0,120,200,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.stat-card--grand .stat-card-bg {
  background: linear-gradient(135deg, rgba(0,71,145,0.07) 0%, rgba(0,150,200,0.05) 100%);
}
.stat-card--accent {
  background: linear-gradient(135deg, #004791 0%, #0096c8 100%);
  color: #fff;
}
.stat-card--accent .stat-card-bg {
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.stat-card--accent .stat-label,
.stat-card--accent .stat-detail { color: rgba(255,255,255,0.8); }
.stat-card--accent .stat-num    { color: #fff; }

.stat-card--certif {
  background: linear-gradient(135deg, #1a5c3a 0%, #2d9e5f 100%);
  color: #fff;
}
.stat-card--certif .stat-label,
.stat-card--certif .stat-detail { color: rgba(255,255,255,0.8); }
.stat-card--certif .stat-num    { color: #fff; }

@keyframes stat-color-cycle {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(180deg) brightness(1.15); }
  100% { filter: hue-rotate(360deg) brightness(1); }
}
.stat-card--cycling {
  animation: stat-color-cycle 1.5s ease-in-out;
}

.stat-card--violet {
  background: linear-gradient(135deg, #5b2d8e 0%, #9b59b6 100%);
  color: #fff;
}
.stat-card--violet .stat-label,
.stat-card--violet .stat-detail { color: rgba(255,255,255,0.8); }
.stat-card--violet .stat-num    { color: #fff; }

.stat-card--orange {
  background: linear-gradient(135deg, #c0392b 0%, #e67e22 100%);
  color: #fff;
}
.stat-card--orange .stat-label,
.stat-card--orange .stat-detail { color: rgba(255,255,255,0.8); }
.stat-card--orange .stat-num    { color: #fff; }

.stat-card-inner { position: relative; z-index: 1; }

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
  animation: icon-bounce 0.6s cubic-bezier(.34,1.56,.64,1) both;
  animation-play-state: paused;
}
.stat-card.is-visible .stat-icon { animation-play-state: running; }
@keyframes icon-bounce {
  from { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

.stat-num {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--bleu-principal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.stat-card--grand .stat-num { font-size: 4.2rem; }

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gris-texte);
  margin-bottom: 6px;
}
.stat-detail {
  font-size: 0.82rem;
  color: var(--gris-argent);
  line-height: 1.5;
}

/* counter animation scroll-driven */
@supports (animation-timeline: view()) {
  .stat-card {
    opacity: 1;
    transform: none;
    animation: stat-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
  .stats-bento .stat-card:nth-child(1) { animation-delay: 0s;    }
  .stats-bento .stat-card:nth-child(2) { animation-delay: 0.08s; }
  .stats-bento .stat-card:nth-child(3) { animation-delay: 0.16s; }
  .stats-bento .stat-card:nth-child(4) { animation-delay: 0.24s; }
  .stats-bento .stat-card:nth-child(5) { animation-delay: 0.32s; }
  .stats-bento .stat-card:nth-child(6) { animation-delay: 0.40s; }
}
@keyframes stat-reveal {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (max-width: 540px) {
  .stats-bento { grid-template-columns: 1fr; }
  .stat-card--grand { grid-column: span 1; }
  .stat-num { font-size: 2.8rem; }
  .stat-card { padding: 32px 24px; }
}

/* ---- Responsive photos ---- */
@media (max-width: 768px) {
  .parallax-equipe { height: 320px; }
  .parallax-equipe-overlay { padding: 24px 20px; }
  .parallax-equipe-glass { padding: 18px 22px; }
  .cinema-plateau { height: auto; }
  .cinema-plateau-img { position: static; width: 100%; height: 200px; object-fit: cover; display: block; }
  .cinema-plateau-overlay { position: static; background: linear-gradient(135deg, #000f32 0%, #1B3D8F 100%); padding: 32px 20px; }
  .cinema-plateau-content { padding: 0; max-width: 100%; opacity: 1; transform: none; }
  .cinema-plateau-content ul li { font-size: 0.92rem; gap: 8px; }
  .cinema-plateau-text { font-size: 0.9rem; }
  .photo-clinique-wrap { aspect-ratio: 16/10; }
}
@media (max-width: 480px) {
  .parallax-equipe { height: 260px; }
  .cinema-plateau-img { height: 160px; }
  .cinema-plateau-content ul li { font-size: 0.85rem; gap: 6px; }
}
