
/* test.css
    Thème: Santé / Sport — palette bleu clair
    Styles globaux pour un fichier test.html générique
*/

/* Variables de thème */
:root{
  --bg: #f6fbff;
  --card: #ffffff;
  --muted: #6b7b8c;
  --brand-blue: #4fc3f7;
  --brand-blue-dark: #1ea3d8;
  --accent: #7be3b8;
  --glass: rgba(255,255,255,0.65);
  --shadow: 0 6px 18px rgba(20,40,60,0.08);
  --radius: 12px;
  --max-width: 1150px;
  --focus: 3px solid rgba(30,163,216,0.18);
  --transition: 250ms cubic-bezier(.22,.9,.3,1);
  --text: #0f1724;
}

/* Reset léger */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:
     radial-gradient(circle at 10% 10%, rgba(79,195,247,0.08), transparent 8%),
     radial-gradient(circle at 90% 90%, rgba(123,227,184,0.04), transparent 12%),
     var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  /* conserver le padding latéral pour le contenu, mais éviter un scroll horizontal gênant */
  padding:0 20px 32px;
  overflow-x:hidden; /* <-- empêche les fines bandes/blancs sur les bords */
}

/* Conteneur central */
.container{
  max-width:var(--max-width);
  margin:0 auto;
}

/* Header / nav */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.brand .logo{
  width:48px;height:48px;border-radius:10px;
  background:linear-gradient(135deg,var(--brand-blue),var(--brand-blue-dark));
  display:flex;align-items:center;justify-content:center;
  color:white;font-weight:700;box-shadow:var(--shadow);
  font-size:18px;
}
.brand h1{
  margin:0;font-size:18px;
}
.nav{
  display:flex;gap:14px;align-items:center;
}
.nav a{
  color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:10px;
  transition:var(--transition);
}
.nav a:hover{color:var(--brand-blue-dark);background:rgba(79,195,247,0.06)}
.cta-btn{
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-blue-dark));
  color:white;padding:10px 14px;border-radius:10px;border:0;cursor:pointer;
  box-shadow:0 8px 20px rgba(30,163,216,0.18);transition:transform var(--transition);
}
.cta-btn:hover{transform:translateY(-3px)}
.cta-btn:focus{outline:none;box-shadow:var(--focus)}

/* Hero */
.hero{
  position:relative;
  /* full-bleed : occupe toute la largeur viewport même si le body a du padding */
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;

  /* occupe exactement la hauteur de la fenêtre (100% viewport) */
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin-bottom:32px;

  background-color:#fff; /* fallback si pas d'image */
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(6,20,30,0.28), rgba(6,20,30,0.38));
  z-index:0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-inner{
  position:relative;
  z-index:2;
  text-align:center;
  color:#fff;
  padding:48px 20px;
  max-width:980px;
}
.hero-title{
  margin:0;
  font-size:44px;
  line-height:1.02;
  font-weight:800;
  color:#fff;
  text-shadow:0 8px 26px rgba(6,20,30,0.6);
}
.hero-subtitle-line{
  display:block;
  font-size:26px;
  font-weight:650;
  margin-top:6px;
  color:#fff;
  opacity:0.98;
}
.hero-tagline{
  margin-top:14px;
  color:rgba(255,255,255,0.95);
  font-size:16px;
  font-weight:500;
}
/* L'ancien style spécifique du bouton hero est remplacé par .btn-pill */

/* Carte latérale (par ex. résumé, statistiques) */
.side-meta{
  display:flex;flex-direction:column;gap:12px;
}
.stat{
  background:var(--card);border-radius:10px;padding:12px;display:flex;align-items:center;gap:12px;
  box-shadow:var(--shadow);
}
.stat .num{font-size:18px;font-weight:700;color:var(--brand-blue-dark)}
.stat .lbl{color:var(--muted);font-size:13px}

/* Sections */
.section{
  margin:20px 0;padding:22px;border-radius:var(--radius);background:linear-gradient(180deg,var(--card),#fcffff);
  box-shadow:var(--shadow);
}
.section h3{margin:0 0 12px 0;color:var(--brand-blue-dark)}
.section-title{
  margin: 0 auto 22px;
  font-size:28px;
  font-weight:700;
  color:var(--brand-blue-dark);
  text-align:left;               /* aligné à gauche */
  max-width:var(--max-width);
  padding:0 20px;
}
.grid{
  display:grid;gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

/* Carte activité / produit */
.card{
  background:var(--card);border-radius:12px;padding:16px;transition:transform var(--transition),box-shadow var(--transition);
  box-shadow:0 6px 14px rgba(20,40,60,0.06);border:1px solid rgba(14,40,60,0.03);
}
.card:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(20,40,60,0.08)}
.card .title{font-weight:700;color:var(--brand-blue-dark);margin-bottom:6px}
.card .desc{color:var(--muted);font-size:14px;margin:0 0 10px}

/* Petite vignette d'icône */
.icon{
  width:56px;height:56px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, rgba(79,195,247,0.12), rgba(123,227,184,0.06));
  color:var(--brand-blue-dark);font-weight:700;font-size:18px;
}

/* Progress / barre */
.progress{
  height:10px;background:rgba(14,40,60,0.06);border-radius:999px;overflow:hidden;
}
.progress > i{display:block;height:100%;background:linear-gradient(90deg,var(--brand-blue),var(--accent));transition:width 700ms cubic-bezier(.2,.9,.3,1)}

/* Formulaires */
.form-row{display:flex;gap:12px;flex-wrap:wrap}
.input, textarea, select{
  width:100%;padding:12px;border-radius:10px;border:1px solid rgba(14,40,60,0.06);background:transparent;
  font-size:14px;color:var(--text);transition:box-shadow var(--transition),border-color var(--transition);
}
.input:focus, textarea:focus, select:focus{outline:none;border-color:var(--brand-blue);box-shadow:var(--focus)}
label{display:block;margin-bottom:6px;font-size:13px;color:var(--muted)}

/* Liste / actions */
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.chip{
  padding:8px 10px;background:rgba(79,195,247,0.06);border-radius:999px;color:var(--brand-blue-dark);font-weight:600;font-size:13px;
}

/* Boutons pillules réutilisables (base du CTA "Voir tous les avis") */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font:inherit;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  border:0;
  background:transparent;
  color:var(--brand-blue-dark);
  line-height:1.05;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-pill{
  padding:10px 20px;
  border-radius:999px;
  border:1px solid rgba(14,40,60,0.08);
  background:rgba(79,195,247,0.08);
  box-shadow:0 8px 20px rgba(20,40,60,0.12);
}
.btn-pill:hover,
.btn-pill:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(20,40,60,0.16);
  outline:none;
}
.btn-pill:focus-visible{ box-shadow:var(--focus); }
.btn-pill:disabled,
.btn-pill[disabled]{
  opacity:0.55;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.btn-sm{
  padding:6px 12px;
  font-size:13px;
}
.btn-pill.btn-sm{ padding:6px 14px; }

/* Footer */
.site-footer{
  background:transparent;
  padding:28px 0;
}
.site-footer .footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  box-sizing:border-box;
}
.site-footer .footer-left p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.social-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:12px;
  align-items:center;
}
.social-list a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:8px;
  background:rgba(255,255,255,0.96);
  box-shadow:0 6px 18px rgba(6,20,30,0.06);
  border:1px solid rgba(14,40,60,0.04);
  transition:transform .12s ease, box-shadow .12s ease;
}
.social-list a:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(6,20,30,0.10); }
.social-list img{ display:block; width:20px; height:20px; object-fit:contain; }

/* responsive : empilement center */
@media (max-width:560px){
  .site-footer .footer-inner{ flex-direction:column; text-align:center; gap:10px; }
}

/* Micro-animations & accents */
.pulse{
  animation:pulse 2.6s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(79,195,247,0.18)}
  70%{box-shadow:0 0 0 18px rgba(79,195,247,0.02)}
  100%{box-shadow:0 0 0 0 rgba(79,195,247,0)}
}

/* Styles pour menu horizontal arrondi */
.top-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:0 auto 20px;
  padding:10px 14px;
  max-width:var(--max-width);
  background:var(--glass);
  backdrop-filter: blur(6px);
  border-radius:60px;
  box-shadow:var(--shadow);
  border:1px solid rgba(14,40,60,0.04);
}

/* variante "floating" : léger décalage et largeur adapative */
.top-menu.floating{
  /* position fixe pour se superposer au hero */
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  z-index:90;
  margin:0;
  width:calc(100% - 40px);
  max-width:var(--max-width);
  box-shadow:var(--shadow);
}

/* logo du menu (utilise l'apparence existante mais adaptée au nav) */
.top-menu {
  text-decoration:none;
  color:var(--brand-blue-dark);
  font-weight:700;
  padding:8px 12px;
  border-radius:50px;
  color:#fff;
  box-shadow:0 6px 14px rgba(30,163,216,0.12);
}

.logo{
  text-decoration:none;
  color:var(--brand-blue-dark);
  font-weight:700;
  padding:8px 12px;
  border-radius:50px;
  background:linear-gradient(90deg,var(--brand-blue),var(--brand-blue-dark));
  color:#fff;
  box-shadow:0 6px 14px rgba(30,163,216,0.12);
  align-items:left
}

/* liste horizontale */
.menu-list{
  list-style:none;
  display:flex;
  gap:10px;
  margin:0;
  padding:0;
  align-items:center;
}
.menu-item{ position:relative; }

/* liens du menu */
.menu-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:50px;
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  border:0;
  background:transparent;
  font-size:15px;
  cursor:pointer;
  transition:var(--transition);
}
.menu-btn:hover,
.menu-btn:focus{
  color:var(--brand-blue-dark);
  background:rgba(79,195,247,0.08);
  outline:none;
  box-shadow:var(--focus);
}

/* Contact menu CTA (bleu) */
.menu-btn.contact-cta{
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(30,163,216,0.12);
  padding:8px 16px;
}
.menu-btn.contact-cta:hover,
.menu-btn.contact-cta:focus{
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--brand-blue-dark), var(--brand-blue));
}

.submenu-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  background:transparent;
  border:0;
  font:inherit;
  cursor:pointer;
  padding:8px 12px;
}
.submenu-caret{
  display:inline-block;
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  transition:transform .18s ease;
}
.menu-dropdown.open .submenu-caret{ transform:rotate(-180deg); }
.menu-dropdown .submenu{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:190px;
  padding:10px;
  border-radius:16px;
  background:linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow:0 16px 34px rgba(6,20,30,0.14);
  border:1px solid rgba(14,40,60,0.06);
  flex-direction:column;
  gap:4px;
  z-index:95;
}
.menu-dropdown.open .submenu{ display:flex; }
.menu-dropdown .submenu .menu-btn{
  display:flex;
  width:100%;
  text-align:left;
  border-radius:12px;
}

/* SECTION "À PROPOS" — disposition deux colonnes */
.about{
  padding:56px 0;
  background:transparent;
}
.about-grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  align-items:flex-start;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}
.about-header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  margin-bottom:12px;
}
.about-header h2{ margin:0; }
.about-cta{ align-self:flex-end; }
.about-left h2{
  margin:0 0 12px 0;
  font-size:28px;
  color:var(--brand-blue-dark);
}
.about-left p{
  color:var(--muted);
  line-height:1.6;
  margin:0;
  font-size:16px;
}

/* image côté droit */
.about-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  gap:18px;
}
.about-image{
  width:100%;
  height:auto;
  max-width:420px;
  display:block;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(14,40,60,0.04);
}

/* Statistiques mises en valeur sous la section À propos */
.about-stats{
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:stretch;
  max-width:var(--max-width);
  margin:20px auto 0;
  padding:12px 20px 0;
}

.about-stats .stat{
  flex:1;
  background: linear-gradient(180deg, var(--card), #fcffff);
  padding:18px;
  border-radius:12px;
  text-align:center;
  box-shadow:var(--shadow);
  border:1px solid rgba(14,40,60,0.03);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.about-stats .stat .num{
  font-size:28px;
  font-weight:800;
  color:var(--brand-blue-dark);
  line-height:1;
}

.about-stats .stat .lbl{
  font-size:14px;
  color:var(--muted);
}

/* responsive : empile les stats sur petits écrans */
@media (max-width:760px){
  .about-stats{
    flex-direction:column;
    gap:12px;
    padding:12px 16px 0;
  }
  .about-stats .stat{ width:100%; }
}

/* responsive : empile les colonnes */
@media (max-width:980px){
  .about-grid{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .about-left{ order:1; }
  .about-right{ order:2; margin-top:18px; align-items:center; }
  .about-cta{ align-self:center; }
  .about-left p{ margin:0 auto; max-width:720px; }
}
@media (max-width:560px){
  .about{ padding:32px 0; }
  .about-header{ flex-direction:column; align-items:flex-start; gap:10px; }
  .about-cta{ width:auto; text-align:center; }
  .about-left h2{ font-size:22px; }
  .about-left p{ font-size:15px; }
  .about-image{ max-width:320px; }
}

/* Age distribution chart (Chart.js) */
.age-distribution{
  margin:32px auto 0;
  padding:28px 20px 40px;
  background:linear-gradient(180deg,var(--card),#fcffff);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  text-align:center;
}
.age-chart-head{
  max-width:640px;
  margin:0 auto 24px;
}
.age-chart-head h3{
  margin:6px 0 8px;
  font-size:24px;
  color:var(--brand-blue-dark);
}
.age-chart-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}
.age-chart-eyebrow{
  text-transform:uppercase;
  letter-spacing:0.25em;
  font-size:11px;
  color:rgba(15,23,36,0.55);
}
.age-chart-wrapper{
  position:relative;
  width:100%;
  max-width:880px;
  margin:0 auto;
  aspect-ratio: 16 / 8;
}
.age-chart-wrapper canvas{
  width:100% !important;
  height:100% !important;
}
.age-chart-fallback{
  margin:24px auto 0;
  width:100%;
  max-width:540px;
  border-collapse:collapse;
  box-shadow:var(--shadow);
}
.age-chart-fallback th,
.age-chart-fallback td{
  border:1px solid rgba(14,40,60,0.08);
  padding:10px 14px;
  text-align:left;
  font-size:14px;
}
.age-chart-fallback th{
  background:rgba(79,195,247,0.1);
  color:var(--brand-blue-dark);
}
@media (max-width:760px){
  .age-chart-wrapper{ aspect-ratio: 3 / 4; }
  .age-chart-head h3{ font-size:20px; }
}

/* Responsive */
@media (max-width:980px){
  .hero{ min-height: calc(100vh - 160px); padding:40px 12px; }
  .hero-title{ font-size:36px; }
  .hero-subtitle-line{ font-size:20px; }
}
@media (max-width:560px){
  body{padding:18px 14px}
  .brand h1{font-size:16px}
  .hero h2{font-size:22px}
  .nav{display:none}
  .menu-list{ gap:6px; flex-wrap:wrap; justify-content:center;}
  .top-menu{ padding:8px; border-radius:12px; }
}

/* Mobile menu toggle button */
.mobile-menu-toggle{
  display:none; /* shown only on mobile */
  margin-left:12px;
  padding:8px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(6,20,30,0.68);
  color:#fff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(6,20,30,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.mobile-menu-toggle svg path{ transition:stroke var(--transition); }
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible{
  background:rgba(6,20,30,0.85);
  box-shadow:0 16px 32px rgba(6,20,30,0.45);
}
.mobile-menu-toggle:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,255,255,0.5), 0 18px 38px rgba(6,20,30,0.45);
}

/* mobile nav overlay */
/* Mobile nav behaves as a dropdown (small extension of the top-menu) */
.mobile-nav{
  display:none;
  position:absolute; /* positioned via JS to sit under the top-menu */
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 40px);
  max-width:var(--max-width);
  background:linear-gradient(#ffffff,#fbfdff);
  z-index:110; /* above top-menu */
  padding:10px 12px;
  box-shadow:0 10px 30px rgba(6,20,30,0.12);
  border-radius:12px;
  overflow:auto;
  max-height:60vh; /* avoid covering whole screen */
}
.mobile-nav ul{ list-style:none;margin:0;padding:6px 4px;display:flex;flex-direction:column;gap:8px }
.mobile-nav .menu-btn{
  display:flex;
  width:100%;
  justify-content:flex-start;
  padding:12px 18px;
}
.mobile-nav .menu-btn:not(.contact-cta){
  background:rgba(79,195,247,0.06);
  border:1px solid rgba(14,40,60,0.08);
  color:var(--text);
  box-shadow:0 6px 14px rgba(6,20,30,0.06);
}
.mobile-nav .menu-btn:not(.contact-cta):hover,
.mobile-nav .menu-btn:not(.contact-cta):focus-visible{
  background:rgba(79,195,247,0.12);
  box-shadow:0 12px 26px rgba(6,20,30,0.14);
}
.mobile-nav .menu-btn.contact-cta{
  width:100%;
  justify-content:center;
  border:0;
  color:#fff;
  box-shadow:0 16px 36px rgba(30,163,216,0.25);
}
.mobile-nav .mobile-subitem{ padding-left:16px; }
.mobile-nav .mobile-subitem .menu-btn{ opacity:0.85; }

/* when open */
.mobile-menu-open .mobile-nav{ display:block }

/* show toggle on small screens, hide desktop menu */
@media (max-width:760px){
  .mobile-menu-toggle{ display:flex }
  .menu-list{ display:none }
  .top-menu.floating{ top:12px; padding:8px 12px }
  .top-menu{ border-radius:14px }
  .logo-img{ width:76px; height:56px }
}

/* further tighten for very small devices (e.g., 390x844) */
@media (max-width:420px){
  body{ padding:10px }
  .hero-inner{ padding:24px 12px }
  .hero-title{ font-size:28px }
  .hero-subtitle-line{ font-size:16px }
  .hero-tagline{ font-size:14px }
  .mobile-nav{ padding:12px }
  .mobile-nav a{ padding:10px 12px; font-size:15px }
  .partners-slider-slide .partner-card{ width:280px; max-width:280px }
  .partners-slider-slide .partner-card a{ width:280px; height:280px }
}


/* Accessibilité */
a, button, .btn{cursor:pointer}
a:focus, button:focus{outline:none;box-shadow:var(--focus)}
.logo-img{
  display:block;
  width:96px;
  height:70px;
  object-fit:cover;
  border-radius:46px;
}

/* Partenaires : grille 3 colonnes, logos ~330x330 */
.partners{
  padding:48px 0;
  background:transparent;
}
.partners-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
  align-items:center;
  justify-items:center;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

/* Slider styles for small screens (activated by JS) */
.partners-slider-dots{ display:flex; gap:8px; justify-content:center; margin:12px 0 0; }
.partners-slider-dots .ps-dot{
  width:10px; height:10px; border-radius:50%; background:rgba(6,20,30,0.12); border:0; padding:0; cursor:pointer;
}
.partners-slider-dots .ps-dot.active{ background:var(--brand-blue); box-shadow:0 6px 14px rgba(30,163,216,0.12); }

@media (max-width:760px){
  .partners-grid{ display:block; padding:0; }
  .partners-slider-active{
    display:flex;
    gap:0;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
    scrollbar-width:none;
    width:100%;
  }
  .partners-slider-active::-webkit-scrollbar{ display:none; }
  .partners-slider-active .partner-card{
    flex:0 0 100%;
    scroll-snap-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
  }
  .partners-slider-active .partner-card a{
    width:100%;
    max-width:320px;
    height:320px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .partners-slider-active .partner-card img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
  }
}
.partner-card a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:330px;
  height:330px;
  padding:18px;
  background:rgba(255,255,255,0.02);
  border-radius:var(--radius);
  border:1px solid rgba(14,40,60,0.04);
  box-shadow:var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.partner-card a:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(20,40,60,0.08);
}
.partner-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* responsive : 2 cols then 1 col */
@media (max-width:980px){
  .partners-grid{ grid-template-columns: repeat(2, 1fr); }
  .partner-card a{ width:260px; height:260px; }
}
@media (max-width:560px){
  .partners-grid{ grid-template-columns: 1fr; }
  .partner-card a{ width:220px; height:220px; margin:0 auto; }
}

/* Témoignages : grille 3 colonnes x 2 rangées */
.testimonials{
  padding:48px 0;
  background:transparent;
}
.testimonials-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  align-items:start;
  justify-items:stretch;
}

.testimonial-card{
  background: rgba(255,255,255,0.02);
  padding:18px;
  border-radius:var(--radius);
  border:1px solid rgba(14,40,60,0.04);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  min-height:220px;
}

.testimonial-quote{
  color:var(--muted);
  font-style:italic;
  font-size:15px;
  line-height:1.5;
  text-align:left;
  width:100%;
  flex:1;
}

.testimonial-avatar{
  width:80px;
  height:80px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(14,40,60,0.04);
  box-shadow:0 6px 14px rgba(6,20,30,0.06);
}

.testimonial-avatar img{
  width:80px;
  height:80px;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

.testimonial-name{
  font-weight:700;
  color:var(--brand-blue-dark);
  font-size:14px;
  text-align:center;
  margin-top:4px;
}

/* Avis page */
main.reviews-page{ padding-top:120px; }
.reviews-hero{
  padding:60px 20px 30px;
  max-width:var(--max-width);
  margin:0 auto;
}
.reviews-hero .eyebrow{
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:var(--muted);
  font-weight:700;
  margin-bottom:10px;
}
.reviews-hero h1{
  margin:0 0 12px 0;
  font-size:38px;
  color:var(--brand-blue-dark);
}
.reviews-hero p{
  margin:0;
  color:var(--muted);
  font-size:17px;
  max-width:720px;
}
.reviews-feed{
  padding:0 20px 70px;
}
.reviews-list{
  max-width:var(--max-width);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  grid-auto-rows:1fr;
  align-items:stretch;
}
.review-card{
  background:linear-gradient(180deg, var(--card), #fbfeff);
  border-radius:16px;
  border:1px solid rgba(14,40,60,0.05);
  box-shadow:var(--shadow);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  height:100%;
}
.review-card-top{
  display:flex;
  align-items:center;
  gap:14px;
}
.review-avatar{
  width:60px;
  height:60px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid rgba(79,195,247,0.25);
  box-shadow:0 10px 24px rgba(6,20,30,0.16);
  flex-shrink:0;
}
.review-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.review-name{
  font-size:17px;
  font-weight:700;
  color:var(--text);
  margin:0;
}
.review-extra{
  font-size:13px;
  color:var(--muted);
  margin-top:2px;
}
.review-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  color:var(--muted);
  margin-top:4px;
  align-items:center;
}
.review-badge{
  padding:4px 10px;
  border-radius:999px;
  background:rgba(79,195,247,0.18);
  color:var(--brand-blue-dark);
  font-size:12px;
  font-weight:700;
  letter-spacing:0.3px;
}
.review-rating{
  display:flex;
  align-items:center;
  gap:6px;
}
.review-rating .stars{
  position:relative;
  display:inline-block;
  font-size:16px;
  line-height:1;
  color:#d4dce5;
}
.review-rating .stars::before{ content:'★★★★★'; }
.review-rating .stars::after{
  content:'★★★★★';
  position:absolute;
  left:0;
  top:0;
  color:#f7c948;
  width:calc(var(--rating, 0) * 20%);
  overflow:hidden;
}
.review-date{ font-weight:600; }
.review-text{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
  --review-line-limit:5;
  --review-line-buffer:8;
  max-height:var(--review-collapsed, 120px);
  overflow:hidden;
  position:relative;
}
.review-card.truncated:not(.expanded) .review-text::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:70px;
  background:linear-gradient(180deg, rgba(255,255,255,0), var(--card));
}
.review-card.expanded .review-text{ max-height:none; }
.review-card.expanded .review-text::after{ display:none; }
.review-toggle{
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  border:0;
  background:rgba(79,195,247,0.15);
  color:var(--brand-blue-dark);
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.review-toggle:hover,
.review-toggle:focus{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(6,20,30,0.14);
}
.review-toggle:focus{ outline:none; box-shadow:var(--focus); }
.review-toggle[hidden]{ display:none; }

@media (max-width:640px){
  .reviews-hero{ padding-top:40px; }
  .reviews-hero h1{ font-size:30px; }
  .reviews-list{ grid-template-columns:1fr; }
}

/* responsive : 2 cols then 1 col */
@media (max-width:980px){
  .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:560px){
  .testimonials-grid{ grid-template-columns: 1fr; gap:14px; }
  .testimonial-card{ min-height:unset; padding:14px; }
  .testimonial-quote{ font-size:14px; }
  .testimonial-avatar{ width:64px; height:64px; }
  .testimonial-avatar img{ width:64px; height:64px; }
}

/* Ticker / bande défilante (full-bleed comme .hero) */
.ticker-wrap{
  /* full-bleed : force la bande à occuper toute la largeur viewport */
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;

  overflow:hidden;
  padding:10px 0;
  background:transparent;
  z-index:1;
}
.ticker.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px; /* padding interne pour le contenu centré, la wrap gère le full-bleed */
}
.ticker-track{
  display:flex;
  align-items:center;
  width:max-content;
  /* animation continue : la duplication du contenu assure la boucle */
  animation: ticker-scroll 20s linear infinite;
}
.ticker-group{
  display:flex;
  align-items:center;
  gap:36px;
  padding-right:8px;
}
.ticker-item{
  font-weight:800;
  font-size:18px;
  color:var(--brand-blue-dark);
  white-space:nowrap;
  letter-spacing:0.6px;
  -webkit-font-smoothing:antialiased;
}

/* accessibilité : respecter la préférence de réduction des animations */
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation:none; }
}

/* rythme du scroll (translate de 0 à -50% car on a deux groupes identiques) */
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* responsive : réduire la taille du texte et l'espace */
@media (max-width:980px){
  .ticker-item{ font-size:16px; }
  .ticker-group{ gap:30px; }
}
@media (max-width:560px){
  .ticker-item{ font-size:14px; }
  .ticker-group{ gap:20px; }
}

/* FAQ — accordéon */
.faq{
  padding:40px 0;
  background:transparent;
}
.faq-grid{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  display:grid;
  gap:12px;
}

/* style des éléments details/summary */
.faq-item{
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(14,40,60,0.04);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:12px 16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.faq-item[open]{
  transform: translateY(-4px);
  box-shadow:0 18px 36px rgba(6,20,30,0.10);
}

.faq-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-weight:700;
  color:var(--brand-blue-dark);
  font-size:16px;
  outline:none;
}
.faq-item summary::-webkit-details-marker{ display:none; }

/* icône + / - */
.faq-item summary::after{
  content: "+";
  font-weight:700;
  font-size:20px;
  line-height:1;
  color:var(--brand-blue-dark);
  transition: transform .12s ease;
}
.faq-item[open] summary::after{ content: "−"; transform:translateY(1px); }

/* contenu de la réponse */
.faq-body{
  margin-top:10px;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}
.faq-body .faq-link{
  color:var(--brand-blue-dark);
  font-weight:700;
  text-decoration:none;
  border-bottom:1px dashed rgba(79,195,247,0.4);
  transition:color .15s ease, border-color .15s ease;
}
.faq-body .faq-link:hover,
.faq-body .faq-link:focus-visible{
  color:var(--brand-blue);
  border-bottom-color:currentColor;
  outline:none;
}

/* accessibilité : focus visible */
.faq-item summary:focus{
  box-shadow:0 6px 18px rgba(6,20,30,0.12);
  border-radius:8px;
}

/* responsive */
@media (max-width:560px){
  .faq-grid{ gap:10px; padding:0 14px; }
  .faq-item{ padding:10px 12px; }
  .faq-item summary{ font-size:15px; }
  .faq-body{ font-size:14px; }
}

/* Services — 4 cartes verticales, top bleu (titre blanc), bottom blanc (texte noir) */
.services-list{
  display:flex;
  flex-direction:column;
  gap:16px;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px 6px;
}

.services-insurance-note{
  margin:18px auto 0;
  max-width:var(--max-width);
  padding:0 20px;
  font-size:15px;
  color:var(--muted);
  text-align:center;
}

/* Services slider styles (mobile) */
.services-slider-track{ will-change: transform; }
.services-slider-slide{ padding:0 12px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; }
.services-slider-dots{ display:flex; gap:8px; justify-content:center; margin:12px 0 0; }
.services-slider-dots .ss-dot{ width:10px; height:10px; border-radius:50%; background:rgba(6,20,30,0.12); border:0; padding:0; cursor:pointer; }
.services-slider-dots .ss-dot.active{ background:var(--brand-blue); box-shadow:0 6px 14px rgba(30,163,216,0.12); }

@media (max-width:760px){
  .services-list{ display:block; padding:0; }
  .services-list .service-card{ width:320px; max-width:320px; margin:0 auto; }
}

/* carte */
.service-card{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(14,40,60,0.04);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  background:transparent;
}

/* moitié haute (bleue) */
.service-top{
  background:linear-gradient(90deg, var(--brand-blue), var(--brand-blue-dark));
  color:#fff;
  padding:22px 18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}

/* arrondir uniquement les coins supérieurs */
.service-card .service-top{
  border-top-left-radius:var(--radius);
  border-top-right-radius:var(--radius);
}

/* texte du top */
.service-title{
  font-size:20px;
  font-weight:800;
  color:#fff;
  line-height:1.05;
}
.service-subtitle{
  font-size:14px;
  font-weight:700;
  color:rgba(255,255,255,0.92);
  opacity:0.95;
}

/* moitié basse (blanche) */
.service-bottom{
  background:var(--card);
  color:var(--text);
  padding:16px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* arrondir uniquement les coins inférieurs */
.service-card .service-bottom{
  border-bottom-left-radius:var(--radius);
  border-bottom-right-radius:var(--radius);
}

/* meta et description */
.service-meta{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.45;
}
.service-meta a,
.mi-tel,
.mi-link{
  color:var(--brand-blue-dark);
  font-weight:700;
  text-decoration:none;
  border-bottom:1px dashed rgba(79,195,247,0.4);
  transition:color .15s ease, border-color .15s ease;
}
.service-meta a:hover,
.service-meta a:focus-visible,
.mi-tel:hover,
.mi-tel:focus-visible,
.mi-link:hover,
.mi-link:focus-visible{
  color:var(--brand-blue);
  border-bottom-color:currentColor;
  outline:none;
}
.service-desc{
  margin:0;
  font-size:15px;
  color:var(--text);
  line-height:1.5;
}

/* Service actions (buttons) */
.service-actions{ margin-top:12px; }

/* tooltip for demande RDV */
.rdv-tooltip{
  position:fixed;
  background:linear-gradient(180deg,#ffffff,#f8fafb);
  border-radius:10px;
  padding:12px 14px;
  box-shadow:0 12px 30px rgba(6,20,30,0.18);
  border:1px solid rgba(14,40,60,0.08);
  z-index:99999;
  max-width:320px;
  font-size:14px;
  color:var(--text);
}
.rdv-tooltip .tip-action{ margin-top:8px; display:flex; gap:8px; justify-content:flex-end; }

/* responsive : sur grand écran on peut afficher 2 colonnes côte à côte */
@media (min-width:1000px){
  .services-list{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
  }
}

/* petits écrans */
@media (max-width:560px){
  .service-top{ padding:16px; }
  .service-bottom{ padding:12px; }
  .service-title{ font-size:18px; }
  .service-subtitle{ font-size:13px; }
}

/* Map full-bleed wrapper (inchangé) */
.map-wrap{
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  width:100vw;
  padding:0;
  background:transparent;
  display:block;
  box-shadow:none;
  border-radius:0;
  margin-top:18px;
  margin-bottom:24px;
}

/* Wrapper remanié : utilisation normale (pas full-bleed) */
.map-wrap{
  margin:20px 0;
  padding:0;
  background:transparent;
}

/* Card qui contient les infos + la map (même style que .section/.card) */
.map-card{
  background: linear-gradient(180deg, var(--card), #fcffff);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(14,40,60,0.04);
  overflow:hidden;
}

/* Infos pratiques : placé à l'intérieur de la card, même padding/typo que les autres sections */
.map-card .map-info{
  padding:18px 20px;
  background:transparent;
}
.map-card .map-info h3{
  margin:0 0 10px 0;
  font-size:28px;
  font-weight:700;
  color:var(--brand-blue-dark);
  text-align:left;
}
.map-card .map-info .mi-line{ margin:6px 0; color:var(--muted); font-size:15px; }
.map-card .map-info .mi-note{ margin-top:8px; font-size:14px; color:var(--muted); line-height:1.4; }

/* Fix alignment: force icons vertically centered with text */
.map-card .map-info .mi-row{
  display:flex !important;
  align-items:center !important;
  gap:12px;
}
.map-card .map-info .mi-row > img.mi-icon{
  flex:0 0 22px;
  width:22px;
  height:22px;
  display:block;
  margin:0;
}
.map-card .map-info .mi-row > div{ /* text column */
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.map-card .map-info .mi-line{ margin:0; color:var(--muted); font-size:15px; line-height:1.25; }
.map-card .map-info .mi-line a{ display:inline-block; line-height:1.25; vertical-align:middle; }

/* Conteneur de la map : occupe toute la largeur de la card et respecte les arrondis via overflow:hidden sur .map-card */
.map-card .map-container{
  height:420px;
  width:100%;
  padding:0; /* pas de padding interne pour que la carte remplisse la zone */
  background:transparent;
  border-radius:0;
  /* ensure map-info matches other sections' width when inside .map-card */
  .map-card .map-info{ padding:18px 20px; }
  overflow:hidden;
}

/* le contenu injecté (iframe / Google map div) doit remplir */
.map-card .map-container > iframe,
.map-card .map-container > div,
.map-card #map-canvas > iframe,
.map-card #map-canvas > div,
.map-card #map-canvas .gm-style {
  width:100%;
  height:100%;
  display:block;
}

/* responsive adjustments */
@media (max-width:760px){
  .map-card .map-container{ height:360px; }
  .map-card .map-info{ padding:14px 16px; }
}
@media (max-width:420px){
  .map-card .map-container{ height:300px; }
  .map-card .map-info{ padding:12px 14px; }
}

/* Fix : s'assurer que la section map est centrée comme les autres blocs */
#map-section.map-wrap{
  /* annule tout style full-bleed / translation éventuel */
  position:static !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  width:100% !important;
  padding:20px 0; /* même espacement vertical que les autres sections */
}

/* container local : forcer comportement identique aux autres .container */
#map-section .container{
  display:block !important;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
  box-sizing:border-box;
}

/* carte + encadré : même largeur / centrage que les autres blocs */
#map-section .map-card{
  max-width:100%;
  margin:0 auto;
  box-sizing:border-box;
}

/* s'assurer que la map remplit la card sans provoquer de décalage */
#map-section .map-container{
  width:100%;
  padding:0;
  box-sizing:border-box;
}

/* Contact mail card (s'accorde avec les autres sections) */
.contact-card{
  background: linear-gradient(180deg, var(--card), #fcffff);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(14,40,60,0.04);
  padding:18px 20px;
}
.contact-card.success-flash{
  animation: contact-success 0.85s ease;
}
@keyframes contact-success{
  0%{ transform:scale(1); box-shadow:var(--shadow); background:linear-gradient(180deg,var(--card),#fcffff); }
  35%{ transform:scale(1.015); box-shadow:0 18px 40px rgba(31,134,79,0.35); background:linear-gradient(180deg,#e6fff3,#f9fffb); }
  70%{ transform:scale(1.01); box-shadow:0 12px 32px rgba(31,134,79,0.25); }
  100%{ transform:scale(1); box-shadow:var(--shadow); background:linear-gradient(180deg,var(--card),#fcffff); }
}

.contact-card .contact-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.contact-card .contact-header .section-title{ margin:0; }
.contact-card .contact-faq-link{ flex-shrink:0; }

.contact-form .form-row{ margin-bottom:12px; display:flex; gap:12px; }
.contact-form .form-row.actions{ align-items:center; gap:14px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(14,40,60,0.06);
  background:rgba(255,255,255,0.96);
  color:var(--text);
  font-size:15px;
  box-shadow:none;
  outline:none;
  resize:vertical;
}

/* si 2 inputs sur la même ligne, on les affiche côte à côte */
.contact-form .form-row > input[type="text"],
.contact-form .form-row > input[type="email"]{
  flex:1 1 50%;
}

/* bouton / état loading */
#contact-send.loading{ opacity:0.85; transform:translateY(0); }
#contact-send[disabled]{ opacity:0.65; pointer-events:none; }

/* petit spinner inline quand .loading */
#contact-send.loading::after{
  content: "";
  display:inline-block;
  width:14px;
  height:14px;
  margin-left:8px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.75);
  border-top-color: transparent;
  animation: contact-spin .8s linear infinite;
}

/* status message aligné et uniforme */
.contact-status{
  font-size:15px;
  margin-left:12px;
  min-width:220px;
  color:var(--muted);
}

/* petite animation spinner */
@keyframes contact-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* responsive : status sous le bouton sur petits écrans */
@media (max-width:560px){
  .contact-form .form-row.actions{ flex-direction:column; align-items:stretch; gap:10px; }
  .contact-status{ margin-left:0; }
  .contact-card .contact-header{ flex-direction:column; align-items:flex-start; }
  .contact-card .contact-faq-link{ width:100%; justify-content:center; }
}


