/* ==========================================================
   Audicio — Audioprothésistes en Lozère
   Feuille de style principale
   ========================================================== */

:root {
  --vert-cevennes: #3c4649;   /* anthracite Audicio (boutons, liens) */
  --vert-fonce: #242c2e;      /* anthracite foncé (titres, fonds sombres) */
  --vert-clair: #fdf3dc;      /* jaune très pâle (fonds doux) */
  --terre: #b07c10;           /* ambre foncé (accents texte) */
  --terre-clair: #fdf3dc;     /* fond bandeau */
  --jaune: #f9b93f;           /* jaune doré du logo (fonds, boutons) */
  --jaune-fonce: #e3a223;
  --creme: #fbf9f5;
  --encre: #2b3335;
  --gris: #5f686b;
  --blanc: #ffffff;
  --ombre: 0 2px 12px rgba(38, 48, 44, 0.08);
  --rayon: 12px;
  --max-largeur: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Questrial", "Century Gothic", sans-serif;
  letter-spacing: 0.02em;
  color: var(--vert-fonce);
  line-height: 1.25;
  font-weight: 400;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--vert-cevennes); }

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

.conteneur {
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- En-tête / navigation ---------- */

.entete {
  background: var(--blanc);
  border-bottom: 1px solid #e6e2da;
  position: sticky;
  top: 0;
  z-index: 50;
}

.entete-inner {
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

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

.logo-nom {
  font-family: "Questrial", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--vert-fonce);
  letter-spacing: 0.5px;
}

.logo-nom span { color: var(--terre); }

.logo-sous {
  font-size: 0.78rem;
  color: var(--gris);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

nav.principal ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

nav.principal a {
  text-decoration: none;
  color: var(--encre);
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

nav.principal a:hover { color: var(--vert-cevennes); }

nav.principal a.actif {
  color: var(--vert-cevennes);
  border-bottom-color: var(--jaune);
  font-weight: 600;
}

.btn-tel {
  background: var(--vert-cevennes);
  color: var(--blanc) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 999px;
  font-weight: 600;
  border-bottom: none !important;
  white-space: nowrap;
}

.btn-tel:hover { background: var(--vert-fonce); }

/* Menu mobile */
.burger { display: none; }
.burger-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger-label span {
  width: 26px; height: 3px;
  background: var(--vert-fonce);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .burger-label { display: flex; }
  nav.principal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 1px solid #e6e2da;
    box-shadow: var(--ombre);
  }
  nav.principal ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  nav.principal li { width: 100%; }
  nav.principal a {
    display: block;
    padding: 0.8rem 1.5rem;
    border-bottom: none;
  }
  nav.principal a.actif { background: var(--vert-clair); }
  .btn-tel { margin: 0.6rem 1.5rem; display: inline-block; }
  .burger:checked ~ nav.principal { display: block; }
  .entete-inner { position: relative; flex-wrap: wrap; }
}

/* ---------- Héros ---------- */

.heros-visuel img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
}

.heros-clair {
  background: var(--blanc);
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid #eee9e1;
}

.heros-clair h1 { margin-bottom: 1rem; }

.heros-clair .accroche {
  font-size: 1.2rem;
  max-width: 680px;
  color: var(--gris);
  margin-bottom: 1.6rem;
}

.heros-clair .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge.badge-clair {
  background: var(--vert-clair);
  border: 1px solid #f0dfb2;
  color: var(--encre);
}

.btn-contour-sombre {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--vert-cevennes);
  color: var(--vert-cevennes);
  transition: transform 0.12s, background 0.15s, color 0.15s;
}

.btn-contour-sombre:hover {
  background: var(--vert-cevennes);
  color: var(--blanc);
  transform: translateY(-1px);
}

.heros {
  background:
    linear-gradient(100deg, rgba(30, 36, 38, 0.82) 0%, rgba(30, 36, 38, 0.55) 55%, rgba(30, 36, 38, 0.35) 100%),
    url("assets/hero-lozere.jpg") center / cover no-repeat;
  color: var(--blanc);
  padding: 5rem 0 4.5rem;
}

.heros h1 { color: var(--blanc); margin-bottom: 1rem; }

.heros p.accroche {
  font-size: 1.2rem;
  max-width: 640px;
  color: #e9e6de;
  margin-bottom: 1.8rem;
}

.heros .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.88rem;
  color: #eef5f1;
}

.boutons { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.12s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-plein { background: var(--jaune); color: var(--vert-fonce); }
.btn-plein:hover { background: var(--jaune-fonce); }

.btn-contour {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--blanc);
}
.btn-contour:hover { background: rgba(255, 255, 255, 0.1); }

.btn-vert { background: var(--vert-cevennes); color: var(--blanc); }
.btn-vert:hover { background: var(--vert-fonce); }

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }

.section-alt { background: var(--blanc); }

.intro-section {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.sur-titre {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terre);
  margin-bottom: 0.4rem;
}

/* Grilles de cartes */
.grille {
  display: grid;
  gap: 1.4rem;
}

.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; }
}

.carte {
  background: var(--blanc);
  border: 1px solid #eae6de;
  border-radius: var(--rayon);
  padding: 1.6rem;
  box-shadow: var(--ombre);
}

.section-alt .carte { background: var(--creme); }

.carte h3 { display: flex; align-items: center; gap: 0.5rem; }

.carte .icone {
  font-size: 1.5rem;
  line-height: 1;
}

.carte-lieu .jour {
  display: inline-block;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.carte-lieu address {
  font-style: normal;
  color: var(--gris);
  font-size: 0.95rem;
}

/* Bandeau accent */
.bandeau {
  background: var(--terre-clair);
  border-left: 5px solid var(--jaune);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}

.bandeau h3 { color: var(--vert-fonce); }

/* Deux colonnes texte + encadré */
.deux-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .deux-col { grid-template-columns: 1fr; }
}

/* Listes stylées */
ul.liste-coche {
  list-style: none;
  margin: 0 0 1rem;
}

ul.liste-coche li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.55rem;
}

ul.liste-coche li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terre);
  font-weight: 700;
}

/* Équipe */
.carte-personne .photo-cadre {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--blanc);
  border: 1px solid #eee9e1;
  border-radius: var(--rayon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vert-cevennes);
  font-size: 3rem;
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.carte-personne .photo-cadre img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.carte-personne .fonction {
  color: var(--terre);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

ul.diplomes {
  list-style: none;
  font-size: 0.95rem;
  color: var(--gris);
}

ul.diplomes li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.45rem;
}

ul.diplomes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--terre);
  font-weight: 700;
}

/* Étapes numérotées */
.etapes { counter-reset: etape; }

.etape {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.etape .num {
  counter-increment: etape;
  flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--vert-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Questrial", sans-serif;
}

.etape .num::before { content: counter(etape); }

/* Tableau horaires */
table.horaires {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  margin: 1.5rem 0;
}

table.horaires th, table.horaires td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid #eee9e1;
}

table.horaires th {
  background: var(--vert-cevennes);
  color: var(--blanc);
  font-weight: 600;
}

table.horaires tr:last-child td { border-bottom: none; }

table.horaires td .freq {
  display: block;
  font-size: 0.85rem;
  color: var(--gris);
}

/* Appel à l'action final */
.cta-final {
  background: linear-gradient(160deg, #1e2426 0%, var(--vert-cevennes) 100%);
  color: var(--blanc);
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-final h2 { color: var(--blanc); }

.cta-final p { color: #d8d5cd; max-width: 560px; margin: 0 auto 1.6rem; }

.cta-final .tel-grand {
  font-family: "Questrial", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--jaune);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---------- Pied de page ---------- */

.pied {
  background: #1e2426;
  color: #b8bdb9;
  padding: 3rem 0 1.5rem;
  font-size: 0.93rem;
}

.pied h4 {
  color: var(--blanc);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.pied-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .pied-grille { grid-template-columns: 1fr; }
}

.pied a { color: #f0d9a8; }

.pied ul { list-style: none; }

.pied li { margin-bottom: 0.4rem; }

.pied-bas {
  border-top: 1px solid #3a4144;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8d9492;
}

/* ---------- Divers ---------- */

.note {
  font-size: 0.9rem;
  color: var(--gris);
  font-style: italic;
}

.tag-3d {
  display: inline-block;
  background: var(--jaune);
  color: var(--vert-fonce);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.page-titre {
  background: var(--vert-clair);
  padding: 3rem 0 2.5rem;
}

.page-titre p {
  max-width: 680px;
  color: var(--gris);
  font-size: 1.1rem;
  margin: 0.6rem 0 0;
}
