/* ===== RÉGLAGES : modifiez ici couleurs et polices ===== */
:root{
  --encre:#17313a;      /* texte */
  --teal:#2a7f8e;       /* couleur principale */
  --teal-fonce:#1d5c68;
  --brume:#edf5f6;      /* fonds clairs */
  --blanc:#fff;
  --accent:#e8a33d;     /* boutons */
  --police-titre:Georgia,"Times New Roman",serif;
  --police-texte:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:1.05rem/1.65 var(--police-texte);color:var(--encre);background:var(--blanc)}
h1,h2,h3{font-family:var(--police-titre);line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(2.1rem,5vw,3.4rem)}
h2{font-size:clamp(1.6rem,3.5vw,2.2rem)}
a{color:var(--teal-fonce)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.wrap{max-width:1000px;margin:0 auto;padding:0 1.25rem}
section{padding:3.5rem 0}
.alt{background:var(--brume)}
p{max-width:65ch}

header.site{background:var(--blanc);border-bottom:1px solid #d5e3e6;position:sticky;top:0;z-index:5}
header.site .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding-top:.8rem;padding-bottom:.8rem}
.logo{font:700 1.2rem var(--police-titre);color:var(--teal-fonce);text-decoration:none}
nav a{margin-left:1.2rem;text-decoration:none;color:var(--encre);font-weight:500}
nav a:hover{color:var(--teal)}

.hero{background:var(--teal-fonce);color:var(--blanc);padding:4.5rem 0}
.hero p{font-size:1.2rem;color:#dcecef}
.btn{display:inline-block;background:var(--accent);color:#2b1d00;font-weight:700;padding:.8rem 1.5rem;border-radius:6px;text-decoration:none;margin:.5rem .75rem .5rem 0}
.btn:hover{filter:brightness(1.07)}
.btn.plus{background:var(--teal-fonce);color:#fff;margin-top:1rem}
.btn.sec{background:transparent;color:var(--blanc);border:2px solid var(--blanc)}

.soins{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-top:1.5rem}
.soin{border-left:4px solid var(--teal);padding:.2rem 0 .2rem 1rem}
.soin h3{font-size:1.2rem;margin-bottom:.25rem}
.soin p{margin:0}

.deux{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2.5rem}
table{border-collapse:collapse;width:100%;max-width:420px}
td{padding:.4rem 0;border-bottom:1px solid #c9dadd}
td:last-child{text-align:right}
.photo.petite{width:auto;max-width:100%;image-rendering:auto}
.photo{width:100%;max-width:340px;height:auto;border-radius:8px;background:#cfe0e3;justify-self:center}

.carte{width:100%;max-width:420px;height:240px;margin:1rem 0;border-radius:8px;overflow:hidden;background:var(--brume);display:flex;align-items:center;justify-content:center}
.carte iframe{width:100%;height:100%;border:0}
.video{display:block;width:100%;max-width:720px;height:auto;border-radius:8px;background:#000;margin-top:1rem}
footer{background:var(--encre);color:#cfe0e3;padding:2rem 0;font-size:.95rem}
footer a{color:#fff}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ===== Barre d'appel (visible sur téléphone uniquement) ===== */
.appel{display:none}
.btn{min-height:48px}
nav a{display:inline-block;padding:.5rem 0}

@media (max-width:640px){
  body{font-size:1.1rem;padding-bottom:calc(4.5rem + env(safe-area-inset-bottom))}
  section{padding:2.5rem 0}
  .hero{padding:2.5rem 0}
  .hero .btn{display:block;text-align:center;margin:.75rem 0}
  header.site{position:static}
  header.site .wrap{flex-direction:column;align-items:flex-start;gap:.1rem}
  nav{display:flex;gap:1.1rem;overflow-x:auto;white-space:nowrap;width:100%}
  nav a{margin-left:0}
  td{padding:.7rem 0}
  .carte{width:100%;max-width:420px;height:240px;margin:1rem 0;border-radius:8px;overflow:hidden;background:var(--brume);display:flex;align-items:center;justify-content:center}
.carte iframe{width:100%;height:100%;border:0}
  table{max-width:100%}
  .appel{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:10;box-shadow:0 -2px 10px rgba(0,0,0,.2)}
  .appel a{flex:1;text-align:center;text-decoration:none;font-weight:700;padding:1rem .5rem calc(1rem + env(safe-area-inset-bottom));background:var(--accent);color:#2b1d00}
  .appel a+a{background:var(--teal-fonce);color:#fff}
}

/* Listes de texte */
section ul{max-width:65ch;padding-left:1.25rem}
section li{margin-bottom:.6rem}

/* Photos de sport */
.photo.photo-large{max-width:460px}

/* ===== En-tête : sigle et image du bandeau ===== */
.logo{display:inline-flex;align-items:center;gap:.7rem}
.logo img{height:48px;width:auto;display:block}
.hero-grid{display:grid;grid-template-columns:1fr auto;gap:2rem 3rem;align-items:center}
.hero-img{display:block;width:325px;max-width:100%;height:auto;mix-blend-mode:lighten;justify-self:center}
@media (max-width:760px){
  .hero-grid{grid-template-columns:1fr}
  .hero-img{width:260px;margin:0 auto}
  .logo img{height:40px}
}

/* Petites images côte à côte */
.galerie{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0 1.5rem}
.galerie .photo{width:auto;max-width:100%}

/* ===== Référencement : fil d'Ariane, sous-titre, FAQ, pied de page ===== */
.hero .ariane{font-size:.95rem;margin:0 0 1rem;color:#dcecef}
.hero .ariane a{color:#fff}
.sous-titre{display:block;font:400 max(1.1rem,.45em)/1.3 var(--police-texte);margin-top:.7rem;color:#dcecef}
.faq h3{font-size:1.2rem;margin:1.6rem 0 .3rem}
.faq h3:first-child{margin-top:.5rem}
.faq p{margin:0 0 .5rem}
.maj{font-size:.9rem;color:#4a6a72;margin-top:1.5rem}
footer p{margin:.35rem 0;max-width:none}

/* ===== Page liens utiles ===== */
.sr-titre{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.soin.lien{margin:0 0 2rem}
.soin.lien h2{font-size:1.4rem;margin-bottom:.3rem}
.soin.lien p{margin:0 0 .4rem}

/* ===== Pages sport (blessures), chaussures, pied diabétique ===== */
.soin h3 a{color:inherit;text-decoration-thickness:1px;text-underline-offset:3px}
.soin h3 a:hover{color:var(--teal)}
.faq h3{font-size:1.2rem}
section ol{max-width:65ch;padding-left:1.4rem}
section ol li{margin-bottom:.6rem}

/* Tableau de gradation HAS */
.figure-has{margin:1rem 0 2rem}
.figure-has img{display:block;width:100%;max-width:640px;height:auto;border-radius:8px;border:1px solid #d5e3e6}
.figure-has figcaption{font-size:.9rem;color:#4a6a72;margin-top:.6rem;max-width:65ch}

/* Les 4 grades */
.grades{display:grid;gap:1.25rem;margin-top:1.25rem}
.grade{border-left:8px solid var(--g,#2a7f8e);background:var(--brume);padding:.9rem 1.1rem;border-radius:0 8px 8px 0}
.grade h3{font-size:1.2rem;margin:0 0 .5rem}
.grade p{margin:.4rem 0;max-width:70ch}
.grade.g0{--g:#4f9d69}
.grade.g1{--g:#3b7fc4}
.grade.g2{--g:#b0568a}
.grade.g3{--g:#d9534f}
.alt .grade{background:var(--blanc)}

/* Encadré d'alerte */
.alerte{border:2px solid #d9534f;background:#fdf1f0;border-radius:8px;padding:1.1rem 1.4rem}
.alerte h2{font-size:1.5rem;margin-top:0}
.alerte-texte{border-left:6px solid #d9534f;background:#fdf1f0;padding:.8rem 1rem;border-radius:0 8px 8px 0;max-width:65ch}

/* Menu : s'adapte au nombre d'onglets */
nav{display:flex;flex-wrap:wrap;gap:.1rem 1.2rem}
nav a{margin-left:0}
@media (max-width:640px){nav{flex-wrap:nowrap}}
.alerte-texte{margin:0 0 1.75rem}
