/* CHARTE DES PAGES PUBLIQUES DU SITE B2B, 04/11/2026.

   Refonte issue de l'audit de Chaïma Attaf et de la maquette du 28/10. Osman a
   retenu le 02/11 la palette actuelle : les couleurs ci-dessous sont celles du
   site, seules s'ajoutent les six couleurs de domaine et --carte.

   CE FICHIER N'EST CHARGÉ QUE PAR LES PAGES PUBLIQUES. Les espaces authentifiés
   gardent le thème sombre et le bloc <style> de header.php, sur décision d'Osman
   du 16/08 : ils ne reçoivent pas un octet d'ici. C'est aussi ce qui libère ce
   fichier du préfixe « body:not(.theme-sombre) » que portait chaque règle, et
   donc des collisions de spécificité qu'il provoquait à répétition. */

/* Police auto-hébergée depuis le 15/08 : aucune requête vers Google, motif RGPD.
   Un seul fichier, le sous-ensemble latin couvre tout le site. */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/forum-latin.woff2') format('woff2');
}

/* Ratios mesurés, voir l'historique dans header.php :
     texte sur fond 15.29, texte doux 7.38, accent 5.88, accent fort 10.41.
   --or est le doré du logo : 9.99 sur le noir, mais 1.98 sur le crème. Sur le
   clair il ne sert donc qu'en filet décoratif, JAMAIS pour du texte. */
:root {
  --fond:       #faf8f4;
  --fond-bloc:  #ebe1cd;
  --carte:      #fffdf8;
  --texte:      #23201c;
  --texte-doux: #57514a;
  --titre:      #1a1714;
  --accent:     #7a5c10;
  --accent-fort:#4a3a0d;
  --trait:      #d5c8ad;
  --or:         #d4af37;
  --sombre:     #111;
  --sombre-texte:#e9e2d0;
  --sombre-trait:#3a3a3a;
  --entete:     #efe6d3;
  /* Conservés pour la grille des articles et les blocs propres à certaines pages. */
  --fond-menu:          #e3d7bd;
  --fond-sous-menu:     #dccdad;
  --fond-sous-menu-vif: #d3c199;

  /* Une couleur par domaine, tons terre accordés à la palette. Toutes dépassent
     4.19:1 sur leur propre teinte, le seuil de 3:1 d'une icône est donc large. */
  --dom-pediatrie:    #b5502a;
  --dom-veterinaire:  #4f7330;
  --dom-dentaire:     #25678a;
  --dom-oncologie:    #74448a;
  --dom-dermatologie: #a83a4a;
  --dom-douleur:      #7f6210;

  --largeur: 1180px;
}

.dom-pediatrie    { --c: var(--dom-pediatrie); }
.dom-veterinaire  { --c: var(--dom-veterinaire); }
.dom-dentaire     { --c: var(--dom-dentaire); }
.dom-oncologie    { --c: var(--dom-oncologie); }
.dom-dermatologie { --c: var(--dom-dermatologie); }
.dom-douleur      { --c: var(--dom-douleur); }

/* ---- Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--fond);
  color: var(--texte);
  /* Police système pour le texte : zéro octet, zéro requête. Forum reste aux
     titres, c'est une display qui fatigue à 15 px sur un long article. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

/* L'en-tête est collant : sans cette marge, le titre visé par un lien du
   sommaire ou par « Contact » se cacherait derrière lui après le saut. */
[id] { scroll-margin-top: 90px; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-fort); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* On limite le TEXTE et non son conteneur : c'est le texte suivi qui fatigue
   au-delà de 75 caractères, pas un tableau ni une image. */
p, ul, ol, h2, h3 { max-width: 68ch; }
p { margin: 0 0 1.15rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
img { max-width: 100%; }

/* Forum n'est chargée qu'en graisse 400 : demander du gras fabrique un faux gras
   qui bave. La hiérarchie se fait par la taille et l'espace. */
h1, h2, h3, h4 {
  font-family: 'Forum', Georgia, serif;
  font-weight: 400;
  color: var(--titre);
  line-height: 1.2;
}

h2 {
  font-size: 1.7rem;
  margin: 2.6rem 0 0.8rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--trait);
}

h3 {
  font-size: 1.4rem;
  margin: 1.8rem 0 0.5rem;
  color: var(--accent-fort);
}

hr { border: 0; border-top: 1px solid var(--trait); margin: 2.2rem 0; }

h1.titre-page {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 2.6rem 0 1.4rem;
}
/* Le filet doré sous les titres est la signature de la charte, reprise du logo. */
h1.titre-page::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--or);
}

/* Les pages portent leur largeur en style inline, parfois sans remplissage : le
   texte aurait touché le bord de l'écran sur téléphone. Le style inline, quand
   il existe, garde la main. */
.content { padding-left: 1rem; padding-right: 1rem; }

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
/* border-width explicite : les tableaux des pages portent encore border="1". */
th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-width: 0 0 1px;
  border-style: solid;
  border-color: var(--trait);
}
th { font-family: 'Forum', Georgia, serif; font-weight: 400; background: var(--fond-bloc); }

/* Formulaires. Les champs portent encore size="50", soit 370 px : sans plafond,
   ils dépassaient de l'écran d'un téléphone. Le bord est plus soutenu que --trait,
   qui n'atteint que 1.56:1 alors qu'un champ doit se repérer à 3:1. */
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]),
select,
textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  background: #fff;
  border: 1px solid #8a7f63;
  border-radius: 4px;
  color: var(--texte);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
input[type="submit"], button[type="submit"] {
  min-height: 46px;
  padding: 0.6rem 1.25rem;
  background: #000;
  border: 1px solid #000;
  border-radius: 4px;
  color: var(--or);
  font-family: 'Forum', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: #1c1a17; color: #fff; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Boutons ---------------------------------------------------------- */

/* Noir et doré : même couple que le cartouche du logo, 9.99:1. */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.25rem;
  background: #000;
  color: var(--or);
  border: 1px solid #000;
  border-radius: 4px;
  font-family: 'Forum', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.bouton:hover { background: #1c1a17; color: #fff; }
.bouton-contour { background: transparent; color: var(--accent-fort); border-color: var(--accent-fort); }
.bouton-contour:hover { background: var(--accent-fort); color: var(--fond); }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--entete);
  border-bottom: 1px solid var(--trait);
}

.entete-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--largeur);
  min-height: 72px;
  margin: 0 auto;
  padding: 0.55rem 24px;
}

.marque { display: flex; align-items: center; flex: none; min-height: 44px; }

/* Logo recadré sur sa partie haute : à cette taille, ses deux lignes de
   sous-titre seraient illisibles. Il garde son cartouche noir, le tracé doré
   tombant à 1.62:1 sur le beige. À remplacer par le sigle quand il existera. */
.logo-entete { display: block; width: 190px; height: 57px; overflow: hidden; border-radius: 4px; background: #000; }
.logo-entete img { display: block; width: 190px; height: auto; max-width: none; }

.nav-principale { flex: 1; display: flex; justify-content: center; }
.nav-liste { display: flex; align-items: center; gap: 0.15rem; max-width: none; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; margin: 0; }

.nav-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--titre);
  font: inherit;
  font-size: 0.97rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-lien:hover,
.nav-lien[aria-expanded="true"] { background: rgba(122, 92, 16, 0.1); color: var(--titre); }
.nav-lien.actif { box-shadow: inset 0 -2px 0 var(--or); }
.nav-lien .ico { width: 1em; height: 1em; transition: transform 0.2s; }
.nav-lien[aria-expanded="true"] .ico { transform: rotate(180deg); }

.sous {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 260px;
  max-width: none;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
}
.nav-lien[aria-expanded="true"] + .sous { display: block; }
.sous li { margin: 0; }
.sous a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--texte);
  font-size: 0.95rem;
  text-decoration: none;
}
.sous a:hover { background: rgba(122, 92, 16, 0.09); color: var(--accent-fort); }
.sous a[aria-current="page"] { font-weight: 600; color: var(--accent-fort); }
.sous .pastille { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c); }
.sous .separation { margin: 0.35rem 0.5rem; border-top: 1px solid var(--trait); }

/* Le survol n'existe pas au doigt : sur téléphone, seul le bouton ouvre. */
@media (hover: hover) and (min-width: 1001px) {
  .nav-item:hover > .sous { display: block; }
}

/* « Se connecter » s'ouvre au clic seulement, jamais au survol : il mène à une
   décision, et il est hors de .nav-item pour cette raison. Ses deux choix restent
   en panneau flottant sur téléphone, d'où ces valeurs toutes explicites : la
   règle .sous de la version téléphone les mettrait à plat dans la barre. */
.connexion { position: relative; flex: none; }
.connexion > .bouton { white-space: nowrap; cursor: pointer; }
.connexion > .bouton > .ico:last-child { width: 1em; height: 1em; transition: transform 0.2s; }
.connexion > .bouton[aria-expanded="true"] > .ico:last-child { transform: rotate(180deg); }
.connexion .sous {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  min-width: 230px;
  padding: 0.4rem;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
}
.connexion > .bouton[aria-expanded="true"] + .sous { display: block; }
.connexion .sous .ico { color: var(--accent); }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  background: none;
  border: 1px solid var(--trait);
  border-radius: 10px;
  color: var(--titre);
  cursor: pointer;
}
.burger .ico { width: 24px; height: 24px; }
.burger .i-fermer,
.burger[aria-expanded="true"] .i-ouvrir { display: none; }
.burger[aria-expanded="true"] .i-fermer { display: block; }

/* ---- Bandeau de domaine, en tête des six pages de spécialité ----------- */

.bandeau-domaine {
  background: var(--fond-bloc);
  background: color-mix(in srgb, var(--c) 9%, var(--fond));
  border-bottom: 3px solid var(--c);
}
.bd-in {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 1032px;
  margin: 0 auto;
  padding: 0.8rem 16px;
}
/* Le sommaire de la page démarre juste sous le bandeau : sans cet écart, ils se
   touchent. Deux classes, pour passer devant la marge posée par sommaire.php. */
.content .sommaire { margin-top: 1.5rem; }
.fil { max-width: none; margin: 0; font-size: 0.95rem; color: var(--texte-doux); }
.fil a { color: var(--accent-fort); }
.fil strong { color: var(--titre); font-weight: 600; }

/* ---- Cartes de domaine ------------------------------------------------- */

.grille-domaines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.fiche-domaine {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem 1.4rem 1.3rem;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-top: 4px solid var(--c);
  border-radius: 6px;
  color: var(--texte);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fiche-domaine:hover { color: var(--texte); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 20, 20, 0.09); }

.cd-icone {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--fond-bloc);
  background: color-mix(in srgb, var(--c) 13%, var(--carte));
  color: var(--c);
}
.cd-icone .ico { width: 28px; height: 28px; }
.cd-titre { max-width: none; margin: 0; font-size: 1.35rem; color: var(--titre); }
.cd-texte { font-size: 0.94rem; color: var(--texte-doux); }
.cd-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.3rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}
.fiche-domaine:hover .cd-lien { text-decoration: underline; }

/* ---- Accueil ----------------------------------------------------------- */

.section { padding: 4.5rem 24px; }
.section-in { max-width: var(--largeur); margin: 0 auto; }
.section-titre {
  position: relative;
  max-width: none;
  margin: 0 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.section-titre::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--or);
}
.intro { max-width: 62ch; margin-bottom: 2rem; color: var(--texte-doux); }

.hero {
  padding: 4.5rem 24px 5rem;
  background: radial-gradient(900px 480px at 88% 10%, #efe3c6 0%, transparent 62%), var(--fond);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--largeur);
  margin: 0 auto;
}
.surtitre {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: none;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.surtitre::before { content: ""; width: 32px; height: 2px; flex: none; background: var(--or); }
.hero h1 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.hero-slogan {
  max-width: 46ch;
  margin: 1.3rem 0 0;
  color: var(--texte-doux);
  font-family: 'Forum', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Les garanties tiennent la place d'une photo tant que la séance au laboratoire
   n'a pas eu lieu : un emplacement vide ou une image de banque auraient dit le
   contraire de ce que le préparatoire veut établir. */
.garanties {
  padding: 1.9rem 1.8rem;
  background: var(--sombre);
  color: var(--sombre-texte);
  border: 1px solid var(--or);
  border-radius: 8px;
}
.garanties-liste { display: grid; gap: 1.3rem; max-width: none; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.garanties-liste li { display: flex; gap: 0.9rem; margin: 0; }
.garanties-liste .ico { width: 30px; height: 30px; margin-top: 0.1rem; color: var(--or); }
.garanties-liste strong { display: block; color: var(--or); font-family: 'Forum', Georgia, serif; font-size: 1.2rem; font-weight: 400; line-height: 1.25; }
.garanties-liste span { font-size: 0.92rem; }
.garanties a { color: var(--or); font-size: 0.95rem; }
.garanties a:hover { color: #fff; }

.grille-parcours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.carte-parcours {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem 1.4rem;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 6px;
}
.carte-parcours h3 { max-width: none; margin: 0; color: var(--titre); font-size: 1.3rem; }
.carte-parcours p { margin: 0; color: var(--texte-doux); font-size: 0.95rem; }
.cp-icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(122, 92, 16, 0.12);
  color: var(--accent);
}
.cp-icone .ico { width: 26px; height: 26px; }
.cp-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: auto;
  padding-top: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.cp-lien:hover { text-decoration: underline; }
.cp-lien .ico { width: 1.05em; height: 1.05em; }
.carte-parcours.principale { background: var(--sombre); border-color: var(--sombre); }
.carte-parcours.principale h3 { color: var(--or); }
.carte-parcours.principale p { color: var(--sombre-texte); }
.carte-parcours.principale .cp-icone { background: rgba(255, 255, 255, 0.1); color: var(--or); }
.carte-parcours.principale .cp-lien { color: var(--or); }

.section-domaines { background: var(--fond-bloc); }

.bande-espace { background: var(--sombre); color: var(--sombre-texte); }
.bande-espace .section-titre { color: var(--or); }
.be-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.be-grille p { max-width: 42ch; margin: 1rem 0 1.6rem; }
.bande-espace .bouton { background: var(--or); color: #000; border-color: var(--or); }
.bande-espace .bouton:hover { background: transparent; color: var(--or); }
.etapes { display: grid; gap: 0.6rem; max-width: none; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sombre-trait);
  border-radius: 6px;
  counter-increment: etape;
}
.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--or);
  border-radius: 50%;
  color: var(--or);
  font-size: 0.9rem;
  font-weight: 700;
}
.etapes strong { color: var(--or); font-weight: 600; }

.fondatrice-in { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 3.5rem; align-items: center; }
/* La photo est sombre : le filet doré la rattache au cartouche du logo et à
   l'encadré des garanties, plutôt que de la laisser en tache sur le crème. */
.fondatrice-portrait { display: block; width: 100%; height: auto; border: 1px solid var(--or); border-radius: 8px; }
.fondatrice .section-titre { margin-bottom: 1rem; }
.role { max-width: none; margin: 0 0 1.2rem; color: var(--accent); font-weight: 600; }
.fondatrice-texte p:last-child { margin-bottom: 0; }
/* Les deux citations signatures, demande d'Osman : italique, gras et une autre
   police que le reste. Georgia et non Forum : Forum n'existe ni en italique ni
   en gras, le navigateur fabriquerait les deux. Police système, aucun fichier. */
.citations-signature { margin-top: 1.6rem; padding-left: 1.1rem; border-left: 2px solid var(--or); }
.citations-signature p { margin: 0 0 0.7rem; color: var(--accent-fort); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-style: italic; font-weight: 700; line-height: 1.4; }

/* ---- Photos du laboratoire -------------------------------------------- */

.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.2rem 0 1.6rem; }
.galerie-3 { grid-template-columns: repeat(3, 1fr); }
.galerie figure { margin: 0; }
/* Même cadre pour toutes : les formats des quatre fichiers vont de 16/7 au portrait. */
.galerie img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--trait); border-radius: 6px; }
.galerie-lien { margin: 0; font-weight: 600; }

/* ---- Page Contact ------------------------------------------------------ */

.grille-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-direct { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; }
.carte-parcours .contact-direct { color: var(--titre); }
.carte-parcours.principale .contact-direct { color: var(--or); }
/* Le lien garde sa couleur courante hors de la carte noire : sur le noir, le
   doré foncé des liens tomberait à 3.37:1. */
.carte-parcours.principale p a { color: var(--or); }
.carte-parcours.principale p a:hover { color: #fff; }
.contact-note { font-size: 0.88rem; }
.contact-lieu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
.contact-lieu h2 { margin-top: 0; }

/* ---- FAQ ----------------------------------------------------------------
   <details> natif : chaque réponse s'ouvre sans script, et reste dans le HTML
   pour les moteurs. Marge de 44 px minimum au doigt, règle du site. */
.faq-rubriques { padding: 0; }
.faq-rubrique h2 { max-width: none; }
.faq-question { margin: 0 0 0.6rem; background: var(--carte); border: 1px solid var(--trait); border-radius: 6px; }
.faq-question summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  color: var(--titre);
  font-weight: 600;
  cursor: pointer;
}
.faq-question summary::before { content: "+"; width: 1.3rem; flex: none; color: var(--accent); font-weight: 700; }
.faq-question[open] summary::before { content: "\2212"; }
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question p { margin: 0; padding: 0 1rem 1rem 2.3rem; }

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

.pied { margin-top: 4rem; padding: 3.5rem 24px 2rem; background: var(--sombre); color: var(--sombre-texte); font-size: 0.93rem; }
body.page-accueil .pied { margin-top: 0; }
.pied-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; max-width: var(--largeur); margin: 0 auto; }
.pied a { color: var(--or); overflow-wrap: anywhere; }
.pied a:hover { color: #fff; }
.pied p { margin: 0 0 0.5rem; }
.pied-titre {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
  color: var(--or);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pied-marque { margin-bottom: 0.8rem; color: var(--or); font-family: 'Forum', Georgia, serif; font-size: 1.9rem; line-height: 1; }
.pied-liens { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.pied-liens li { margin: 0; }
.pied-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  max-width: var(--largeur);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sombre-trait);
}
.pied-logos img { display: block; height: 52px; padding: 4px; background: #fff; border-radius: 6px; }

/* ---- Encadrés repris de l'ancienne charte (articles.php, patients.php) -- */

.cta-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto;
}
.cta-box {
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 1.5rem;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 6px;
  text-align: center;
}
.cta-box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  align-self: center;
  padding: 0.6rem 1.2rem;
  background: #000;
  border: 1px solid #000;
  border-radius: 4px;
  color: var(--or);
  font-family: 'Forum', Georgia, serif;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.cta-box a:hover { background: #1c1a17; color: #fff; }

/* ---- Grille des articles (23/08), reprise telle quelle -------------------
   Le recadrage 2/1 se fait par les CÔTÉS sur des fichiers en 2,5/1 : le sujet
   d'une illustration doit tenir entre 120 et 1080 px sur un fichier de 1200. */
.bandeau-articles { max-width: 1150px; margin: 0 auto 2rem; padding: 0 1rem; }

nav.filtres-articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 1150px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}
nav.filtres-articles a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  background: var(--fond-bloc);
  border: 1px solid var(--trait);
  border-radius: 999px;
  color: var(--texte);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
nav.filtres-articles a:hover { border-color: var(--accent); color: var(--accent-fort); }
nav.filtres-articles a.actif { background: #23201c; border-color: #23201c; color: var(--or); }
nav.filtres-articles a .nb { margin-left: .4rem; font-size: .8rem; opacity: .6; }

.grille-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1150px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.carte-article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--carte);
  border: 1px solid var(--trait);
  border-radius: 6px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.carte-article:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(35, 32, 28, .10); }
.carte-article .carte-visuel { display: block; margin: 0; padding: 0; border: 0; background: var(--fond-sous-menu); text-decoration: none; }
.carte-article .carte-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 1; }
.carte-article .carte-corps { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.carte-article .carte-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; max-width: none; margin: 0 0 .7rem; font-size: .78rem; }
.carte-article .carte-meta .carte-domaine {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--accent-fort);
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.carte-article .carte-meta .carte-domaine:hover { text-decoration: underline; }
.carte-article .carte-meta .carte-date { margin-left: auto; color: var(--texte-doux); }
.carte-article .carte-titre { max-width: none; margin: 0 0 .7rem; padding: 0; border: 0; font-size: 1.25rem; line-height: 1.3; color: var(--titre); }
.carte-article .carte-titre a { padding: 0; border: 0; color: var(--titre); text-decoration: none; }
.carte-article .carte-titre a:hover { color: var(--accent-fort); text-decoration: underline; }
.carte-article .carte-resume { max-width: none; margin: 0 0 1.1rem; color: var(--texte); font-size: .95rem; line-height: 1.55; }
.carte-article .carte-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; max-width: none; margin: auto 0 0; font-size: .85rem; }
.carte-article .carte-pied .carte-lien { margin-left: auto; padding: 0; border: 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.carte-article .carte-pied .carte-lien:hover { text-decoration: underline; }
.carte-article .carte-reserve { color: var(--texte-doux); font-size: .78rem; }

.une-article { max-width: 1150px; margin: 0 auto 2.5rem; padding: 0 1rem; }
.une-article .carte-article { flex-direction: row; }
.une-article .carte-article .carte-visuel { flex: 0 0 46%; }
.une-article .carte-article .carte-visuel img { height: 100%; aspect-ratio: auto; }
.une-article .carte-article .carte-corps { justify-content: center; padding: 1.8rem 2rem; }
.une-article .carte-article .carte-titre { font-size: 1.75rem; }
.une-article .carte-article .carte-resume { font-size: 1.02rem; }
.une-article .carte-article .carte-pied { margin-top: 1rem; }
.etiquette-une { display: inline-block; margin: 0 0 .8rem; color: var(--texte-doux); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.aucun-article { max-width: 1150px; margin: 0 auto 3rem; padding: 0 1rem; color: var(--texte-doux); }

/* ---- Tablette ----------------------------------------------------------- */

@media (max-width: 1100px) {
  .grille-parcours { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .entete-in { gap: 0.75rem; }
  .connexion { margin-left: auto; }

  .nav-principale {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: var(--entete);
    border-bottom: 1px solid var(--trait);
    box-shadow: 0 18px 30px rgba(20, 20, 20, 0.12);
  }
  .nav-principale.ouvert { display: block; }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; padding: 0.4rem 16px 1rem; }
  .nav-item { border-bottom: 1px solid var(--trait); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-lien { justify-content: space-between; width: 100%; min-height: 52px; padding: 0.5rem 0.25rem; border-radius: 0; font-size: 1.05rem; }
  .nav-lien:hover,
  .nav-lien[aria-expanded="true"] { background: none; }
  .nav-lien.actif { box-shadow: none; color: var(--accent-fort); font-weight: 600; }
  .sous { position: static; min-width: 0; padding: 0 0 0.6rem 0.4rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; }

  .hero-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .garanties { max-width: 560px; }
  .be-grille, .fondatrice-in { grid-template-columns: 1fr; gap: 2rem; }
  .fondatrice-portrait { max-width: 320px; }
  .grille-domaines { grid-template-columns: repeat(2, 1fr); }
  .grille-contact { grid-template-columns: 1fr; }
  .pied-in { grid-template-columns: 1fr 1fr; }
}

/* Sans JavaScript, le bouton du menu ne ferait rien : tout reste donc affiché,
   les liens restent atteignables, à l'oeil comme pour les moteurs. */
@media (scripting: none) {
  .burger { display: none; }
  .nav-lien .ico { display: none; }
  .sous { display: block; position: static; min-width: 0; background: transparent; border: 0; box-shadow: none; }
  .connexion .sous { display: block; position: static; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .connexion > .bouton { display: none; }
  .entete-in { flex-wrap: wrap; }
  .nav-principale { display: block; position: static; order: 3; width: 100%; max-height: none; box-shadow: none; }
  .nav-liste { flex-direction: column; align-items: stretch; }
}

/* ---- Téléphone ---------------------------------------------------------- */

@media (max-width: 768px) {
  .cta-container { flex-direction: column; align-items: center; }
  .cta-box { width: 90%; margin-bottom: 1.5rem; }
  /* Cible tactile de 44 px, la règle du site depuis le 09/08. */
  nav.filtres-articles a { min-height: 44px; }
  /* Mesuré le 04/11 à 375 px : sept pages débordaient à cause de leurs tableaux,
     jusqu'à 593 px, et toute la page glissait de côté. Le tableau défile seul. */
  .content table { display: block; overflow-x: auto; }
}

@media (max-width: 860px) {
  .une-article .carte-article { flex-direction: column; }
  .une-article .carte-article .carte-visuel { flex: none; }
  .une-article .carte-article .carte-visuel img { aspect-ratio: 2 / 1; }
  .une-article .carte-article .carte-corps { padding: 1.2rem 1.3rem 1.3rem; }
  .une-article .carte-article .carte-titre { font-size: 1.35rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .entete-in { min-height: 64px; padding: 0.5rem 16px; }
  .logo-entete { width: 140px; height: 42px; }
  .logo-entete img { width: 140px; }
  .connexion > .bouton { gap: 0.35rem; padding: 0.55rem 0.7rem; font-size: 0.95rem; letter-spacing: 0.02em; }
  /* Le mot suffit à cette largeur : avec le cadenas, l'en-tête débordait de 375 px. */
  .connexion > .bouton > .ico:first-child { display: none; }
  .nav-principale { max-height: calc(100vh - 64px); }
  .section { padding: 3.2rem 16px; }
  .hero { padding: 2.6rem 16px 3.2rem; }
  .hero-actions .bouton { flex: 1 1 100%; }
  .grille-parcours, .grille-domaines, .galerie-3 { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr; }
  .pied { padding: 2.8rem 16px 1.6rem; }
  .pied-in { grid-template-columns: 1fr; }
  .contact-lieu { grid-template-columns: 1fr; gap: 0; }
}

/* Mesuré à 320 px : logo, « Se connecter » et menu dépassaient de 35 px, et toute
   la page s'élargissait. Seul le logo peut céder sans gêner la lecture. */
@media (max-width: 360px) {
  .logo-entete { width: 105px; height: 32px; }
  .logo-entete img { width: 105px; }
}

@media (max-width: 600px) {
  .grille-articles { grid-template-columns: 1fr; gap: 1.5rem; }
  nav.filtres-articles { justify-content: flex-start; }
}
