/* Cabinet Medic'All : feuille de style, dans l'ordre du HTML

   Couleurs : #000000, #FFFFFF, #C84862 (rose) et #003247 (bleu)
   Compatibilité : Chrome, Edge, Firefox, Opera récents et Safari 16.2 et plus

   Sommaire
   1. Base : variables, mode sombre, réinitialisation, typographie
   2. Composants communs : conteneur, sections, cartes, boutons
   3. Message informatif
   4. En-tête : logo, navigation, thème, menu mobile
   5. Accueil : image de fond, accroche, statut
   6. Fonctionnement : cartes, rendez-vous, urgences
   7. Forfait : présentation et questions
   8. Consultations : secrétariat et planning
   9. Équipe : filtres et cartes
   10. Actualités : carousel 3D
   11. Contact : coordonnées et carte
   12. Fiche d'un membre
   13. Pages légales
   14. Pied de page
   15. Remonter en haut
   16. Media queries : 1200px, 992px, 768px, 576px */

/* 1. Base : variables, mode sombre, réinitialisation, typographie */

/* Variables : couleurs, polices et arrondi (mode clair par défaut) */
:root {
  --white-color: #FFFFFF;
  --black-color: #000000;
  --pink-color: #C84862;
  --blue-color: #003247;
  --bg: var(--white-color);
  --fg: var(--blue-color);
  --accent: var(--pink-color);
  --font-title: "Plus Jakarta Sans",system-ui,sans-serif;
  --font-text: "Inter",system-ui,sans-serif;
  --radius: 8px;
  color-scheme: light;
}

/* Mode sombre : attribut data-theme posé par assets/js/theme.js */
:root[data-theme="dark"] {
  --bg: color-mix(in srgb, var(--blue-color) 60%, var(--black-color));
  --fg: var(--white-color);
  --accent: color-mix(in srgb, var(--pink-color) 65%, var(--white-color));
  color-scheme: dark;
}

/* Réinitialisation */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Les animations latérales d'AOS ne créent pas de défilement horizontal */
main,
footer {
  overflow-x: hidden;
  overflow-x: clip;
}

/* Typographie et liens */
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

a {
  color: var(--accent);
}

/* Accessibilité : lien d'évitement, contour de focus, texte réservé aux lecteurs d'écran */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--blue-color);
  color: var(--white-color);
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}

:focus {
  outline: 3px solid var(--pink-color);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--pink-color);
  outline-offset: 3px;
}

.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;
}

/* 2. Composants communs : conteneur, sections, cartes, boutons */

/* Conteneur : 1200px de contenu, 16px de marge sur les petits écrans */
.wrap {
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Sections et titres de section */
section {
  padding-block: 104px;
}

.bg-alt {
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  transition: background-color .3s;
}

.head {
  max-width: 640px;
  margin-bottom: 44px;
}

.head h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.head .lead {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.muted {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .9rem;
}

/* Cartes : rayon 8px, ombre tout autour */
.card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
}

/* Pastille d'icône rose */
.icon-box {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
  color: var(--pink-color);
  font-size: 1.35rem;
}

:root[data-theme="dark"] .icon-box {
  color: var(--accent);
}

/* Bouton texte */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .75em 1.3em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 10px color-mix(in srgb, var(--black-color) 10%, transparent);
}

.btn.large {
  padding: .9em 1.6em;
  font-size: 1.05rem;
}

/* Bouton principal : fond rose, texte blanc */
.btn.primary {
  background: var(--pink-color);
  color: var(--white-color);
}

/* Bouton clair : contour blanc, sur l'image de l'accueil */
.btn.light {
  border-color: color-mix(in srgb, var(--white-color) 85%, transparent);
  background: transparent;
  color: var(--white-color);
  box-shadow: none;
}

/* Survol commun : zoom scale(1.04) et ombre plus large */
.btn,
.filter,
#theme,
.to-top,
.service,
.free,
.member {
  transition: transform .3s, box-shadow .3s, background-color .3s, color .3s, border-color .3s;
}

.btn:hover,
.filter:hover,
#theme:hover,
.to-top:hover,
.service:hover,
.free:hover,
.member:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
}

.btn.light:hover {
  background: color-mix(in srgb, var(--white-color) 12%, transparent);
}

/* À compléter avant la mise en ligne (surligné en jaune) */
.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--pink-color) 15%, var(--white-color));
  color: var(--blue-color);
  font-weight: 600;
}

/* 3. Message informatif */

.announce {
  background: var(--pink-color);
  color: var(--white-color);
  font-size: .95rem;
}

.announce .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}

.announce p {
  flex: 1;
}

/* Bouton de fermeture : croix blanche */
#announce-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--white-color);
  font-size: 1.1rem;
  transition: background-color .2s;
}

#announce-close:hover {
  background: color-mix(in srgb, var(--white-color) 15%, transparent);
}

/* 4. En-tête : logo, navigation, thème, menu mobile */

/* Barre d'en-tête : fixée en haut, ombre après défilement */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}

header.scrolled {
  border-color: color-mix(in srgb, var(--fg) 12%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

/* Logo : image et nom */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--fg);
  text-decoration: none;
}

.brand img {
  width: 37px;
  height: 40px;
  object-fit: contain;
}

.brand span {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

/* Navigation : lien survolé ou actif en rose */
#nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

#nav ul {
  display: flex;
  gap: 4px;
}

#nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

#nav ul a:hover,
#nav ul a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
}

/* Bouton thème : lune en mode clair, soleil en mode sombre */
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

#theme {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font-size: 1.05rem;
  box-shadow: 0 0 10px color-mix(in srgb, var(--black-color) 10%, transparent);
}

#theme .fa-sun {
  display: none;
}

:root[data-theme="dark"] #theme .fa-sun {
  display: block;
  color: var(--pink-color);
}

:root[data-theme="dark"] #theme .fa-moon {
  display: none;
}

/* Bouton du menu mobile : trois traits qui deviennent une croix */
#menu {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

#menu span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform .25s, opacity .25s;
}

#menu span:nth-child(1) {
  top: 15px;
}

#menu span:nth-child(2) {
  top: 21px;
}

#menu span:nth-child(3) {
  top: 27px;
}

#menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

#menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 5. Accueil : image de fond, accroche, statut */

/* Plein écran : hauteur visible moins l'en-tête et le message (--hero-offset mesuré par le script) */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--hero-offset, 73px));
  min-height: calc(100svh - var(--hero-offset, 73px));
  padding-block: 0;
  color: var(--white-color);
}

/* Image de fond et dégradé bleu vers rose */
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--blue-color) 96%, transparent) 0%, color-mix(in srgb, var(--blue-color) 88%, transparent) 32%, color-mix(in srgb, var(--blue-color) 50%, transparent) 55%, color-mix(in srgb, var(--pink-color) 22%, transparent) 74%, transparent 90%),
    linear-gradient(0deg, color-mix(in srgb, var(--black-color) 35%, transparent), transparent 45%);
}

/* Accroche */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  padding-block: 112px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 20px;
  color: var(--white-color);
  text-shadow: 0 2px 24px color-mix(in srgb, var(--black-color) 30%, transparent);
}

.hero .eyebrow {
  color: color-mix(in srgb, var(--pink-color) 50%, var(--white-color));
}

.hero .lead {
  max-width: 56ch;
  margin-bottom: 32px;
  color: color-mix(in srgb, var(--white-color) 92%, transparent);
  font-size: 1.12rem;
}

/* Boutons : appeler et voir les consultations */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* Statut : ouvert (vert) ou fermé (rouge), calculé par le script */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--white-color);
  color: var(--black-color);
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--black-color) 40%, transparent);
}

.status.open .status-dot {
  background: var(--blue-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-color) 18%, transparent);
}

.status.closed .status-dot {
  background: var(--pink-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink-color) 15%, transparent);
}

/* 6. Fonctionnement : cartes, rendez-vous, urgences */

/* Cartes : quatre colonnes */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.service {
  padding: 28px 24px;
}

.service .icon-box {
  margin-bottom: 18px;
}

.service h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.service p {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .95rem;
}

/* Bandeaux rendez-vous et urgences : même hauteur, même écart que les cartes */
.bands {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
}

.bands > * {
  height: 100%;
  margin: 0;
}

/* Prendre rendez-vous : bandeau rose et deux numéros de même taille */
.rdv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--pink-color);
  color: var(--white-color);
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
}

.rdv-text h3 {
  margin-bottom: 4px;
  color: var(--white-color);
  font-size: 1.5rem;
}

.rdv-text p {
  color: color-mix(in srgb, var(--white-color) 90%, transparent);
}

.rdv-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rdv-number {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: var(--white-color);
  color: var(--blue-color);
  text-decoration: none;
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
  transition: transform .3s, box-shadow .3s;
}

.rdv-number:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
}

.rdv-number i {
  color: var(--pink-color);
  font-size: 1.3rem;
}

.rdv-number span {
  display: flex;
  flex-direction: column;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}

.rdv-number small {
  color: color-mix(in srgb, var(--blue-color) 60%, transparent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Urgences : bandeau bleu */
.urgent {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--blue-color);
  color: color-mix(in srgb, var(--white-color) 90%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
}

.urgent .icon-box {
  background: var(--pink-color);
  color: var(--white-color);
}

.urgent strong,
.urgent a {
  color: var(--white-color);
}

.urgent-number {
  font-weight: 700;
  font-size: 1.1em;
}

:root[data-theme="dark"] .urgent {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

/* 7. Forfait : présentation et questions */

/* Mise en page en deux colonnes */
.forfait {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  gap: 48px;
}

/* Présentation */
.forfait-intro h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.forfait-intro > p:not(.eyebrow) {
  margin-bottom: 14px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 1.05rem;
}

.forfait-intro > p strong {
  color: var(--fg);
}

/* Aucun paiement : carte bleue (rose en mode sombre) */
.free {
  margin-top: 28px;
  padding: 26px 24px;
  border-color: var(--blue-color);
  background: var(--blue-color);
}

.free h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--white-color);
  font-size: 1.08rem;
}

.free h3 i {
  color: color-mix(in srgb, var(--pink-color) 50%, var(--white-color));
}

.free p {
  color: var(--white-color);
  font-size: .95rem;
}

:root[data-theme="dark"] .free {
  border-color: var(--pink-color);
  background: var(--pink-color);
}

:root[data-theme="dark"] .free h3 i {
  color: var(--white-color);
}

/* Questions : accordéon, flèche qui pivote à l'ouverture */
.faq-title {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--black-color) 10%, transparent);
  transition: box-shadow .3s, border-color .3s;
}

.faq-item:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
}

.faq-item[open] {
  border-color: var(--pink-color);
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--fg);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary > i {
  width: 1.25em;
  color: var(--accent);
  text-align: center;
}

.faq-item summary::after {
  content: "\f078";
  margin-left: auto;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .8rem;
  transition: transform .3s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-body {
  padding: 0 20px 18px 56px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .95rem;
}

/* 8. Consultations : secrétariat et planning */

/* Deux cartes de même hauteur */
.hours {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  align-items: stretch;
  gap: 24px;
}

.hours > .hours-card {
  height: 100%;
}

.hours-card {
  min-width: 0;
  padding: 28px;
}

.hours-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.hours-card h3 i {
  color: var(--accent);
}

/* Secrétariat : jour courant en rose avec l'étiquette « Aujourd'hui » */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.hours-table th {
  font-weight: 500;
}

.hours-table td {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table tr.today {
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
}

.hours-table tr.today th,
.hours-table tr.today td {
  color: var(--accent);
  font-weight: 700;
}

.hours-table tr.today th {
  border-radius: var(--radius) 0 0 var(--radius);
}

.hours-table tr.today td {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hours-table tr.today th::after {
  content: "Aujourd'hui";
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--pink-color);
  color: var(--white-color);
  font-size: .7rem;
  font-weight: 700;
  vertical-align: middle;
}

.hours-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .9rem;
}

.hours-note i {
  margin-top: 3px;
  color: var(--accent);
}

.hours-note a {
  font-weight: 700;
}

/* Tableaux défilables horizontalement sur petit écran */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Planning des médecins : jours en colonnes, colonne du jour en rose */
.planning {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
}

.planning th,
.planning td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.planning thead th {
  padding-bottom: 14px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.planning tbody th {
  padding-top: 16px;
  color: var(--fg);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

.planning tbody th i {
  margin-right: 6px;
  color: var(--accent);
}

.planning td {
  padding: 14px 8px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  vertical-align: top;
}

.planning tbody tr:last-child > * {
  border-bottom: 0;
}

.planning td ul {
  display: grid;
  gap: 6px;
}

.planning td li {
  padding: 5px 8px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}

.planning .today {
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
}

.planning thead .today {
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--pink-color);
  color: var(--white-color);
}

.planning td.today li {
  background: var(--pink-color);
  color: var(--white-color);
}

/* 9. Équipe : filtres et cartes */

/* Filtres Isotope : Tous, Secrétaire, Médecin, Infirmier, Collaborateur */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter {
  padding: 9px 18px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 0 10px color-mix(in srgb, var(--black-color) 10%, transparent);
}

.filter:hover {
  border-color: var(--pink-color);
  color: var(--accent);
}

.filter.active {
  border-color: var(--pink-color);
  background: var(--pink-color);
  color: var(--white-color);
}

.filters-empty {
  padding: 24px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  text-align: center;
}

/* Grille : Isotope place les cartes, largeurs en %, écart par padding */
.team {
  margin-inline: -12px;
}

.team::after {
  content: "";
  display: block;
  clear: both;
}

.team-item {
  float: left;
  width: 25%;
  padding: 12px;
}

.team-item:hover {
  z-index: 2;
}

/* Carte : photo, nom et fonction, toute la carte est cliquable */
.member {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.member:focus-within {
  outline: 3px solid var(--pink-color);
  outline-offset: 3px;
}

/* Cadre de la photo : fixe, la photo zoome à l'intérieur sans déborder sur le nom */
.member-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pink-color) 12%, transparent), color-mix(in srgb, var(--fg) 7%, transparent));
}

.member-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.member:hover .member-photo img {
  transform: scale(1.06);
}

/* Initiales : affichées quand un membre n'a pas de photo */
.member-initials {
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
}

/* Safari 14 : pas d'aspect-ratio, la photo reste carrée grâce au padding */
@supports not (aspect-ratio: 1 / 1) {
  .member-photo {
    position: relative;
    height: 0;
    padding-top: 100%;
  }

  .member-photo picture,
  .member-initials {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
  }
}

.member-body {
  flex: 1;
  padding: 20px;
}

.member-body h3 {
  font-size: 1.1rem;
}

/* Le lien du nom couvre toute la carte */
.member-link {
  color: inherit;
  text-decoration: none;
}

.member-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: var(--radius);
}

.member-link:focus-visible {
  outline: none;
}

.role {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
}

/* 10. Actualités : carousel 3D */

/* Scène 3D : les cartes sont empilées et placées selon data-pos (-2 à 2) */
.carousel {
  position: relative;
}

.stage {
  padding-block: 12px 32px;
  perspective: 1400px;
  -webkit-perspective: 1400px;
}

.track {
  display: grid;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.track.dragging {
  cursor: grabbing;
}

.slide {
  grid-area: 1 / 1;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform .7s, opacity .7s, filter .7s;
}

/* Carte de face */
.slide[data-pos="0"] {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
}

/* Cartes voisines : inclinées, à gauche et à droite */
.slide[data-pos="-1"] {
  z-index: 2;
  opacity: .7;
  filter: saturate(.7);
  transform: translate3d(-68%, 0, -260px) rotateY(38deg);
  cursor: pointer;
}

.slide[data-pos="1"] {
  z-index: 2;
  opacity: .7;
  filter: saturate(.7);
  transform: translate3d(68%, 0, -260px) rotateY(-38deg);
  cursor: pointer;
}

/* Cartes suivantes : cachées derrière */
.slide[data-pos="-2"] {
  z-index: 1;
  opacity: 0;
  transform: translate3d(-110%, 0, -520px) rotateY(50deg);
  pointer-events: none;
}

.slide[data-pos="2"] {
  z-index: 1;
  opacity: 0;
  transform: translate3d(110%, 0, -520px) rotateY(-50deg);
  pointer-events: none;
}

.slide[data-pos="hidden"] {
  z-index: 0;
  opacity: 0;
  transform: translate3d(0, 0, -700px);
  pointer-events: none;
}

/* Carte d'actualité : étiquette, citation, auteur */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-top: 4px solid var(--pink-color);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
  transition: transform .3s, box-shadow .3s;
}

.slide[data-pos="0"] .news-card:hover {
  transform: scale(1.04);
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quote {
  flex: 1;
  margin: 0 0 24px;
}

.quote > i {
  display: block;
  margin-bottom: 10px;
  color: var(--pink-color);
  font-size: 1.6rem;
  opacity: .35;
}

.quote p {
  color: var(--fg);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.author picture,
.author img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.author img {
  -webkit-user-drag: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pink-color);
}

.author span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.author strong {
  color: var(--fg);
  font-size: 1rem;
}

.author small {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .85rem;
}

/* Sans photo : pastille avec les initiales du membre ou l'icône du motif */
.author-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pink-color) 12%, var(--bg));
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pink-color);
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 1.3rem;
}

/* Aucune actualité publiée */
.news-empty {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  text-align: center;
}

/* Flèches et points */
.car-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.car-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--black-color) 10%, transparent);
  transition: transform .3s, box-shadow .3s, background-color .3s, color .3s;
}

.car-btn:hover {
  transform: scale(1.04);
  border-color: var(--pink-color);
  background: var(--pink-color);
  color: var(--white-color);
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
}

.dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  transition: width .3s, background-color .3s;
}

.dot[aria-current="true"] {
  width: 32px;
  background: var(--pink-color);
}

:root[data-theme="dark"] .dot {
  background: color-mix(in srgb, var(--white-color) 25%, transparent);
}

:root[data-theme="dark"] .dot[aria-current="true"] {
  background: var(--pink-color);
}

/* 11. Contact : coordonnées et carte */

/* Mise en page en deux colonnes */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

/* Coordonnées : une seule boîte, blocs séparés par une ligne */
.coords {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 28px;
}

.coords > li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
}

.coords > li + li {
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.coords .icon-box {
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
}

.coords h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.coords p,
.coords address {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .95rem;
  font-style: normal;
}

.phone {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.phone:hover {
  text-decoration: underline;
}

/* Lignes de bus : pastilles bleues */
.bus-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.bus-lines li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bus {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--blue-color);
  color: var(--white-color);
  font-size: .82rem;
  font-weight: 700;
}

:root[data-theme="dark"] .bus {
  background: var(--white-color);
  color: var(--blue-color);
}

/* Carte : quadrillage tant que Google Maps n'est pas chargé */
.map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
  background:
    linear-gradient(color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
}

.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.map-placeholder p {
  max-width: 40ch;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .92rem;
  box-shadow: 0 0 10px color-mix(in srgb, var(--black-color) 10%, transparent);
}

.map-pin {
  color: var(--pink-color);
  font-size: 3rem;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--pink-color) 40%, transparent));
}

.map-link {
  font-size: .9rem;
  font-weight: 500;
}

/* 12. Fiche d'un membre */

.detail {
  padding-top: 56px;
}

/* Fil d'Ariane (aussi sur les pages légales) */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .9rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .5;
}

.breadcrumb a {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  color: var(--fg);
  font-weight: 600;
}

/* Bouton Retour (aussi sur les pages légales) */
.btn.back {
  margin-bottom: 32px;
  border-color: color-mix(in srgb, var(--fg) 12%, transparent);
  background: var(--bg);
  color: var(--fg);
}

.btn.back:hover {
  border-color: var(--pink-color);
  background: var(--pink-color);
  color: var(--white-color);
}

/* Photo à gauche, présentation à droite */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.detail-photo {
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fg) 4%, var(--bg));
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
}

.detail-photo picture,
.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sans photo : initiales en grand */
.detail-photo .member-initials {
  font-size: 6rem;
}

.detail-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
}

.detail-body h1 {
  margin-bottom: 16px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.detail-desc {
  max-width: 60ch;
  margin-bottom: 28px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: 1.08rem;
}

.detail-hours {
  margin-bottom: 28px;
  padding: 24px;
}

.detail-hours h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.detail-hours h2 i {
  color: var(--accent);
}

.detail-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Horaires d'un médecin : grille jours × demi-journées (créée par le script) */
.slots {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}

.slots tbody th,
.slots thead td {
  width: 92px;
}

.slots th,
.slots td {
  padding: 10px 6px;
  border-radius: var(--radius);
  font-size: .9rem;
  text-align: center;
}

.slots thead th {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.slots thead th.today {
  background: var(--pink-color);
  color: var(--white-color);
}

.slots tbody th {
  color: var(--fg);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.slots td {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

.slots td.on {
  background: var(--blue-color);
  color: var(--white-color);
}

.slots thead td {
  background: transparent;
}

.slots td.on.today {
  background: var(--pink-color);
}

:root[data-theme="dark"] .slots td.on {
  background: var(--white-color);
  color: var(--blue-color);
}

:root[data-theme="dark"] .slots td.on.today {
  background: var(--pink-color);
  color: var(--white-color);
}

/* Horaires du secrétariat : liste jour → horaire */
.slots-list {
  display: grid;
  gap: 6px;
}

.slots-list div {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.slots-list div.today {
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
  color: var(--accent);
  font-weight: 700;
}

.slots-list dt {
  color: var(--fg);
  font-weight: 600;
}

.slots-list div.today dt {
  color: var(--accent);
}

.slots-list dd {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

/* Sans horaires fixes : simple note */
.slots-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

.slots-note i {
  margin-top: 4px;
  color: var(--accent);
}

/* Note sous la grille des demi-journées */
.table-scroll + .slots-note {
  margin-top: 16px;
}

/* Membre précédent et suivant */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.detail-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 0 0 24px color-mix(in srgb, var(--black-color) 14%, transparent);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.detail-link:hover {
  transform: scale(1.04);
  border-color: var(--pink-color);
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
}

.detail-link i {
  color: var(--accent);
}

.detail-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.detail-link small {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-link.next {
  justify-content: flex-end;
  text-align: right;
}

/* Membre introuvable */
.notfound {
  padding: 48px 0;
  text-align: center;
}

.notfound h1 {
  margin-bottom: 12px;
}

.notfound p {
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

/* 13. Pages légales */

.legal {
  padding-top: 56px;
}

/* Carte centrée, titres avec pastille d'icône */
.legal-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 56px;
}

.legal-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.legal-head h1 {
  margin-bottom: 8px;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.updated {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .9rem;
}

.intro {
  font-size: 1.08rem;
}

.legal-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 14px;
  font-size: 1.3rem;
}

.legal-card h2 i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
  color: var(--accent);
  font-size: 1rem;
}

.legal-card h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  line-height: 1.7;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  padding-left: 1.4em;
  list-style: disc;
}

.legal-card strong {
  color: var(--fg);
}

.legal-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font-size: .85em;
  white-space: nowrap;
}

/* Éditeur du site : liste à lignes alternées */
.legal-list {
  display: grid;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: var(--radius);
}

.legal-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 12px 16px;
}

.legal-list div:nth-child(odd) {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
}

.legal-list dt {
  color: var(--fg);
  font-weight: 600;
}

.legal-list dd {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

/* Avertissement : pas de rendez-vous par email */
.legal-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--pink-color);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--pink-color) 12%, transparent);
}

.legal-alert i {
  margin-top: 5px;
  color: var(--accent);
}

/* Tableaux : données traitées et éléments enregistrés */
.legal-table {
  width: 100%;
  min-width: 640px;
  margin: 6px 0 14px;
  border-collapse: collapse;
  font-size: .9rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.legal-table thead th {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: color-mix(in srgb, var(--fg) 70%, transparent);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-table tbody th {
  color: var(--fg);
  font-weight: 600;
}

.legal-table td {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

/* 14. Pied de page */

footer {
  background: color-mix(in srgb, var(--blue-color) 60%, var(--black-color));
  color: color-mix(in srgb, var(--white-color) 78%, transparent);
  font-size: .95rem;
  transition: background-color .3s;
}

footer a {
  color: var(--white-color);
}

/* Trois colonnes : logo, contact, urgences */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  padding-block: 56px 36px;
}

footer .brand {
  color: var(--white-color);
}

.tagline {
  margin-top: 12px;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--white-color);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
}

/* L'adresse reste sur une ligne (sauf sous 992px) */
.footer-list li {
  white-space: nowrap;
}

.footer-list i {
  width: 1.2em;
  margin-right: 6px;
  color: color-mix(in srgb, var(--pink-color) 50%, var(--white-color));
}

/* Copyright et liens légaux */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid color-mix(in srgb, var(--white-color) 14%, transparent);
  font-size: .85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: color-mix(in srgb, var(--white-color) 78%, transparent);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white-color);
  text-decoration: underline;
}

/* 15. Remonter en haut : visible après 600px de défilement */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--pink-color);
  color: var(--white-color);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
  opacity: 0;
  visibility: hidden;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

/* 16. Media queries */

/* 1200px et moins : petits ordinateurs */
@media (max-width: 1200px) {
  /* Navigation */
  #nav ul {
    gap: 0;
  }

  #nav ul a {
    padding: 8px 9px;
    font-size: .92rem;
  }

  .call {
    padding: .7em .85em;
  }

  .call-text {
    display: none;
  }

  /* Fonctionnement */
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Forfait */
  .forfait {
    gap: 32px;
  }

  /* Consultations */
  .hours {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Équipe */
  .team-item {
    width: 33.333%;
  }
}

/* 992px et moins : tablette, navigation en menu déroulant */
@media (max-width: 992px) {
  /* Sections */
  section {
    padding-block: 88px;
  }

  /* Navigation */
  #menu {
    display: block;
  }

  #nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 20px 16px 28px;
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
    background: var(--bg);
    box-shadow: 0 0 40px color-mix(in srgb, var(--black-color) 24%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: transform .25s, opacity .25s, visibility .25s;
  }

  #nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #nav ul {
    flex-direction: column;
    gap: 2px;
  }

  #nav ul a {
    padding: 12px 14px;
    font-size: 1.05rem;
  }

  .call-text {
    display: inline;
  }

  /* Accueil : dégradé vertical */
  .hero h1 {
    font-size: 3rem;
  }

  .hero-bg img {
    object-position: 72% center;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--blue-color) 82%, transparent) 0%, color-mix(in srgb, var(--blue-color) 88%, transparent) 60%, color-mix(in srgb, var(--blue-color) 95%, transparent) 100%);
  }

  /* Forfait */
  .forfait {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Équipe */
  .team-item {
    width: 50%;
  }

  /* Contact */
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .map {
    min-height: 340px;
  }

  /* Fiche d'un membre */
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .detail-photo {
    max-width: 360px;
  }

  /* Pied de page */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-list li {
    white-space: normal;
  }
}

/* 768px et moins : tablette verticale */
@media (max-width: 768px) {
  /* En-tête plus bas */
  html {
    scroll-padding-top: 80px;
  }

  .bar {
    height: 64px;
  }

  #nav {
    top: 64px;
    max-height: calc(100vh - 64px);
  }

  /* Sections et titres de section */
  section {
    padding-block: 72px;
  }

  .head {
    margin-bottom: 32px;
  }

  .head h2,
  .forfait-intro h2 {
    font-size: 2.1rem;
  }

  /* Accueil */
  .hero .wrap {
    padding-block: 80px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  /* Fonctionnement */
  .services {
    gap: 16px;
    margin-bottom: 16px;
  }

  .bands {
    gap: 16px;
  }

  /* Consultations */
  .hours-card {
    padding: 22px;
  }

  /* Fiche d'un membre */
  .detail {
    padding-top: 40px;
  }

  .detail-body h1 {
    font-size: 2.4rem;
  }

  /* Pages légales */
  .legal {
    padding-top: 40px;
  }

  .legal-card {
    padding: 40px;
  }

  .legal-head h1 {
    font-size: 2.3rem;
  }
}

/* 576px et moins : mobile */
@media (max-width: 576px) {
  /* Sections et titres de section */
  section {
    padding-block: 64px;
  }

  .head h2,
  .forfait-intro h2 {
    font-size: 1.8rem;
  }

  /* Accueil */
  .hero .wrap {
    padding-block: 56px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  /* Fonctionnement */
  .services {
    grid-template-columns: 1fr;
  }

  .rdv {
    padding: 22px 20px;
  }

  .rdv-numbers {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .urgent {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  /* Forfait */
  .faq-body {
    padding-left: 20px;
  }

  /* Consultations */
  .hours-card {
    padding: 18px;
  }

  /* Équipe : photo à gauche, nom à droite */
  .team {
    margin-inline: -8px;
  }

  .team-item {
    width: 100%;
    padding: 8px;
  }

  .member {
    flex-direction: row;
  }

  .member-photo {
    flex-shrink: 0;
    width: 110px;
    aspect-ratio: auto;
  }

  .member-initials {
    font-size: 2rem;
  }

  .member-body {
    padding: 16px;
  }

  /* Actualités : cartes voisines plus discrètes */
  .slide {
    width: 86%;
  }

  .slide[data-pos="-1"] {
    opacity: .45;
    transform: translate3d(-80%, 0, -260px) rotateY(40deg);
  }

  .slide[data-pos="1"] {
    opacity: .45;
    transform: translate3d(80%, 0, -260px) rotateY(-40deg);
  }

  .news-card {
    padding: 22px;
  }

  .quote p {
    font-size: 1.05rem;
  }

  /* Contact */
  .coords {
    padding: 4px 18px;
  }

  .coords > li {
    padding: 18px 0;
  }

  /* Fiche d'un membre */
  .detail {
    padding-top: 32px;
  }

  .detail-body h1 {
    font-size: 2rem;
  }

  .detail-cta .btn {
    width: 100%;
  }

  .detail-hours {
    padding: 18px 12px;
  }

  .slots {
    border-spacing: 3px;
  }

  .slots th,
  .slots td {
    padding: 9px 2px;
    font-size: .82rem;
  }

  .slots tbody th,
  .slots thead td {
    width: 74px;
  }

  .detail-nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Pages légales */
  .legal {
    padding-top: 32px;
  }

  .legal-card {
    padding: 24px;
  }

  .legal-head h1 {
    font-size: 2rem;
  }

  .legal-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* Pied de page */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Remonter en haut */
  .to-top {
    right: 14px;
    bottom: 14px;
  }
}
