/* =====================================================================
   avocatfiscalistecasablanca.com — feuille de style unique
   Conçue d'abord pour mobile. Polices du système, aucun framework.
   Palette : pierre de Casablanca, encre, pétrole, émeraude (WhatsApp).
   ===================================================================== */

:root {
  --fond: #f3f5f4;
  --surface: #ffffff;
  --encre: #13262b;
  --encre-douce: #45585d;
  --petrole: #1c4a50;
  --petrole-fonce: #12363b;
  --petrole-clair: #e3ecec;
  --emeraude: #0e6b4c;
  --emeraude-fonce: #0a5239;
  --trait: #d3dbd8;
  --alerte: #9b2c2c;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur: 1240px;
  --mesure: 68ch;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
  --rayon: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--petrole); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--petrole-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--emeraude); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; margin: 0 0 0.6em; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--encre); color: #fff; padding: 0.6rem 1rem; border-radius: var(--rayon);
}
.lien-evitement:focus { top: 1rem; color: #fff; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.3rem;
  border: 1px solid transparent; border-radius: var(--rayon);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bouton svg { width: 1.2em; height: 1.2em; flex: none; }
.bouton-principal { background: var(--petrole); color: #fff; }
.bouton-principal:hover { background: var(--petrole-fonce); color: #fff; }
.bouton-whatsapp { background: var(--emeraude); color: #fff; }
.bouton-whatsapp:hover { background: var(--emeraude-fonce); color: #fff; }
.bouton-contour { background: transparent; color: var(--petrole); border-color: currentColor; }
.bouton-contour:hover { background: var(--petrole-clair); color: var(--petrole-fonce); }
.bouton-clair { background: #fff; color: var(--petrole-fonce); }
.bouton-clair:hover { background: var(--petrole-clair); color: var(--petrole-fonce); }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- En-tête ---------- */
.entete { background: var(--surface); border-bottom: 1px solid var(--trait); position: relative; z-index: 20; }
.entete-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; min-height: 72px; }
.navigation { flex-basis: 100%; order: 3; }
.marque { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); margin-right: auto; }
.marque:hover { color: var(--encre); }
.marque-nom { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.marque-activite { font-size: 0.8125rem; color: var(--encre-douce); }
.entete-actions { display: none; gap: 0.6rem; }
.menu-bouton { display: none; }

.navigation ul { list-style: none; margin: 0; padding: 0; }
.navigation a { text-decoration: none; color: var(--encre); }
.navigation a:hover { color: var(--petrole); text-decoration: underline; }
.nav-niveau1 > li > a, .nav-niveau1 > li > .sous-menu-bouton {
  display: flex; align-items: center; min-height: 48px; padding: 0 0.15rem;
  font: 500 1rem var(--sans); color: var(--encre); background: none; border: 0; cursor: pointer;
}
.sous-menu-bouton svg { width: 0.75rem; height: 0.75rem; margin-left: 0.35rem; transform-origin: 50% 50%; transition: transform 0.15s ease; }
.sous-menu-titre { font-size: 0.875rem; color: var(--encre-douce); margin: 0.75rem 0 0.25rem; }
.sous-menu a { display: block; padding: 0.45rem 0; }

/* Sans JavaScript (mobile) : la navigation reste visible sous l'en-tête. */
.navigation { padding-bottom: 1rem; }
.nav-niveau1 > li { border-top: 1px solid var(--trait); }
.sous-menu { padding: 0 0 0.75rem 0.75rem; }

/* Avec JavaScript (mobile) : navigation repliée derrière le bouton Menu. */
.js .menu-bouton {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem;
  font: 600 0.95rem var(--sans); color: var(--encre); background: var(--fond);
  border: 1px solid var(--trait); border-radius: var(--rayon); cursor: pointer;
}
.menu-bouton svg { width: 1.1rem; height: 1.1rem; }
.js .navigation { display: none; }
.js .navigation.est-ouverte { display: block; }
.js .sous-menu { display: none; }
.js .sous-menu-bouton[aria-expanded="true"] + .sous-menu { display: block; }
.js .sous-menu-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.navigation-actions { display: grid; gap: 0.6rem; padding-top: 1rem; }

@media (min-width: 1200px) {
  .js .menu-bouton, .menu-bouton { display: none; }
  .entete-barre { min-height: 84px; gap: 2rem; }
  .entete-actions { display: flex; }
  .entete-barre { flex-wrap: nowrap; }
  .navigation, .js .navigation { display: block; padding: 0; flex-basis: auto; order: 0; margin-left: auto; }
  .marque { margin-right: 0; }
  .navigation-actions { display: none; }
  .nav-niveau1 { display: flex; gap: 1.6rem; }
  .nav-niveau1 > li > a, .nav-niveau1 > li > .sous-menu-bouton { white-space: nowrap; }
  .marque-activite, .entete-actions .bouton { white-space: nowrap; }
  .nav-niveau1 > li { border: 0; position: relative; }
  .sous-menu, .js .sous-menu {
    display: none; position: absolute; top: 100%; left: -1.25rem; padding: 1.25rem 1.5rem;
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
    box-shadow: 0 18px 40px -24px rgba(19, 38, 43, 0.45);
  }
  .sous-menu-large, .js .sous-menu-large { display: none; grid-template-columns: repeat(2, minmax(13rem, 1fr)); gap: 0 2.25rem; }
  li:hover > .sous-menu, li:focus-within > .sous-menu,
  .js .sous-menu-bouton[aria-expanded="true"] + .sous-menu { display: block; }
  li:hover > .sous-menu-large, li:focus-within > .sous-menu-large,
  .js .sous-menu-bouton[aria-expanded="true"] + .sous-menu-large { display: grid; }
  .js li.est-ferme > .sous-menu { display: none; }
  .sous-menu-titre:first-child { margin-top: 0; }
}

/* ---------- Fil d'Ariane ---------- */
.fil-ariane { padding-top: 1.5rem; font-size: 0.9rem; color: var(--encre-douce); }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fil-ariane li + li::before { content: "/"; margin: 0 0.55rem; color: var(--trait); }
.fil-ariane a { color: var(--encre-douce); }
.fil-ariane [aria-current="page"] { color: var(--encre); }


/* ---------- Ouverture de page (accueil) ---------- */
.ouverture { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.ouverture-grille { display: grid; gap: 2.5rem; align-items: center; }
.ouverture-texte h1 { max-width: 15ch; margin-bottom: 0.45em; }
.chapeau { font-size: 1.1875rem; color: var(--encre-douce); max-width: 46ch; }

/* L'arc : panneau d'orientation inspiré des arcades du centre de Casablanca. */
.arc {
  position: relative; background: var(--petrole); color: #fff;
  padding: clamp(4.5rem, 9vw, 6.5rem) clamp(1.5rem, 4vw, 2.5rem) 2rem;
  border-radius: 50% 50% var(--rayon) var(--rayon) / 190px 190px var(--rayon) var(--rayon);
}
.arc::before {
  content: ""; position: absolute; inset: 12px 12px auto;
  height: calc(100% - 24px); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50% 50% 3px 3px / 178px 178px 3px 3px; pointer-events: none;
}
.arc h2 { color: #fff; font-size: 1.5rem; text-align: center; margin-bottom: 1.25rem; }
.arc-liste { list-style: none; margin: 0 0 1.5rem; padding: 0; position: relative; }
.arc-liste li + li { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.arc-liste a {
  display: grid; gap: 0.15rem; padding: 0.95rem 0.25rem; color: #fff; text-decoration: none;
}
.arc-liste a:hover .arc-situation { text-decoration: underline; }
.arc-situation { font-family: var(--serif); font-size: 1.2rem; }
.arc-domaine { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.arc .bouton { width: 100%; position: relative; }

@media (min-width: 900px) {
  .ouverture-grille { grid-template-columns: 1.25fr 0.85fr; gap: 4rem; }
}

/* ---------- En-tête des pages intérieures ---------- */
.tete-page { padding: 0 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--trait); }
.tete-page h1 { margin-top: 1.25rem; max-width: 28ch; }
.tete-page .chapeau { max-width: 58ch; }
.bandeau-action {
  margin-top: 2rem; padding: 1.25rem 1.5rem; display: grid; gap: 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--petrole);
  border-radius: var(--rayon);
}
.bandeau-action-texte { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
@media (min-width: 760px) { .bandeau-action { grid-template-columns: 1fr auto; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--trait); }
.section-intro { max-width: var(--mesure); color: var(--encre-douce); }
.texte { max-width: var(--mesure); }
.conteneur.texte { max-width: var(--largeur); }
.conteneur.texte > * { max-width: var(--mesure); }
.texte h2 { margin-top: 2.25rem; }
.texte h2:first-child { margin-top: 0; }
.texte h3 { margin-top: 1.5rem; }

.colonnes { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .colonnes { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4.5rem; } }
.encart {
  align-self: start; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--trait); border-radius: var(--rayon);
}
.encart h2 { font-size: 1.3rem; }
.encart p { font-size: 0.975rem; color: var(--encre-douce); }
.encart .bouton { width: 100%; }
.encart .bouton + .bouton { margin-top: 0.6rem; }
@media (min-width: 1024px) { .encart { position: sticky; top: 1.5rem; } }

/* ---------- Index des domaines ---------- */
.index-domaines { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .index-domaines { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.index-titre { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--encre-douce); margin-bottom: 0.5rem; }
.index-liste { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--trait); }
.index-liste li { border-top: 1px solid var(--trait); }
.index-liste a { display: block; padding: 1rem 0; text-decoration: none; color: var(--encre); }
.index-nom { display: block; font-family: var(--serif); font-size: 1.3rem; }
.index-desc { display: block; color: var(--encre-douce); font-size: 0.95rem; margin-top: 0.15rem; }
.index-liste a:hover .index-nom { color: var(--petrole); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.duo { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-element { padding: 1.75rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
.duo-element p { color: var(--encre-douce); }

.zones { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .zones { grid-template-columns: repeat(4, 1fr); } }
.zones a {
  height: 100%; display: flex; align-items: center; min-height: 56px; padding: 0.75rem 1rem;
  border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--surface);
  text-decoration: none; color: var(--encre); font-family: var(--serif); font-size: 1.125rem;
}
.zones a:hover { border-color: var(--petrole); color: var(--petrole); }

.liens-lies { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.liens-lies a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem;
  border: 1px solid var(--trait); border-radius: 999px; background: var(--surface);
  text-decoration: none; color: var(--encre); font-size: 0.95rem;
}
.liens-lies a:hover { border-color: var(--petrole); color: var(--petrole); }

/* ---------- Bloc rendez-vous et formulaires ---------- */
.rendez-vous { background: var(--petrole-fonce); color: #fff; }
.rendez-vous h2 { color: #fff; }
.rendez-vous .section-intro { color: rgba(255, 255, 255, 0.82); }
.rendez-vous a:not(.bouton) { color: #fff; }
.rendez-vous .formulaire a:not(.bouton) { color: var(--petrole); }
.rendez-vous-grille { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .rendez-vous-grille { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.rendez-vous-etapes { margin: 1.5rem 0 2rem; padding-left: 1.25rem; color: rgba(255, 255, 255, 0.88); }
.rendez-vous-etapes li + li { margin-top: 0.4rem; }

.formulaire {
  background: var(--surface); color: var(--encre); border-radius: var(--rayon);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.formulaire h3 { font-size: 1.4rem; }
.champ { margin-bottom: 1.15rem; }
.champ label, .champ legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.champ .facultatif { font-weight: 400; color: var(--encre-douce); }
.champ input[type="text"], .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  font: inherit; color: var(--encre); background: #fff;
  border: 1px solid #9aa9a6; border-radius: var(--rayon);
}
.champ textarea { min-height: 8rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--petrole); }
.champ-aide { font-size: 0.875rem; color: var(--encre-douce); margin: 0.35rem 0 0; }
.champ-erreur { font-size: 0.9rem; color: var(--alerte); margin: 0.35rem 0 0; }
.champ-erreur:empty { display: none; }
.champ [aria-invalid="true"] { border-color: var(--alerte); }
.champ-case { display: flex; gap: 0.7rem; align-items: flex-start; }
.champ-case input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--petrole); }
.champ-case label { font-weight: 400; margin: 0; }
.formulaire .bouton { width: 100%; }
.formulaire-statut:empty { display: none; }
.formulaire-statut {
  margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--rayon);
  background: var(--petrole-clair); color: var(--petrole-fonce);
}
.formulaire-statut p { margin: 0 0 0.4rem; }
.formulaire-statut p:last-child { margin: 0; }
.formulaire-sans-js { padding: 1rem; background: var(--petrole-clair); border-radius: var(--rayon); }
.lien-contact { margin-top: 1rem; font-size: 0.95rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: rgba(255, 255, 255, 0.82); padding: 3.5rem 0 6rem; font-size: 0.95rem; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-grille { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 0.9fr; } }
.pied-marque { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 0.3rem; }
.pied-titre { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 0.3rem 0; }
.pied-bas {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.pied-bas ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (min-width: 1200px) { .pied { padding-bottom: 3rem; } }

/* ---------- Barre de contact mobile ---------- */
.barre-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.6rem var(--marge);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--trait);
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
}
.barre-contact .bouton { min-height: 48px; padding: 0.6rem 0.75rem; }
@media (min-width: 1200px) { .barre-contact { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .entete-actions, .menu-bouton, .barre-contact, .rendez-vous, .bandeau-action { display: none !important; }
}
.groupe-boutons-tete { margin-top: 1.5rem; }

/* ---------- Sommaire des pages de procédure ---------- */
.lecture { display: grid; gap: 2.5rem; }
@media (min-width: 1100px) { .lecture { grid-template-columns: minmax(0, 1fr) 17rem; gap: 5rem; } }
.sommaire { display: none; }
@media (min-width: 1100px) {
  .sommaire { display: block; align-self: start; position: sticky; top: 1.5rem; padding-left: 1.25rem; border-left: 1px solid var(--trait); }
}
.sommaire-titre { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--encre-douce); margin-bottom: 0.6rem; }
.sommaire ol { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.sommaire li { padding: 0.3rem 0; font-size: 0.95rem; line-height: 1.4; }
.sommaire a { color: var(--encre); text-decoration: none; }
.sommaire a:hover { color: var(--petrole); text-decoration: underline; }
.sommaire a.bouton, .sommaire a.bouton:hover { color: #fff; text-decoration: none; }
.sommaire .bouton { width: 100%; }

/* ---------- Adresse et coordonnées ---------- */
.adresse { font-style: normal; margin: 0 0 1em; }
.pied .adresse { margin-bottom: 1em; }
.libelle-coordonnee { font-weight: 600; margin: 1.25rem 0 0.25rem; }
.libelle-coordonnee:first-of-type { margin-top: 0; }


/* ---------- Coordonnées, fiche et horaires ---------- */
.ouverture-adresse { margin-top: 1.25rem; font-size: 0.95rem; color: var(--encre-douce); }
/* Repères de confiance sous le titre de l'accueil (faits vérifiés uniquement) */
.confiance { list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--trait);
  display: grid; gap: 1rem; max-width: 40rem; }
.confiance li { font-size: 0.95rem; line-height: 1.45; color: var(--encre-douce); }
.confiance strong { display: block; font-weight: 600; color: var(--encre); }
@media (min-width: 640px) { .confiance { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
/* Date de publication des articles */
.article-meta { margin: -0.25rem 0 0; font-size: 0.95rem; color: var(--encre-douce); }
.coordonnees, .fiche { margin: 1.25rem 0 1.5rem; display: grid; gap: 1rem; }
.coordonnees div, .fiche div { display: grid; gap: 0.15rem; }
.coordonnees dt, .fiche dt { font-weight: 600; }
.coordonnees dd, .fiche dd { margin: 0; }
.coordonnees .adresse { margin: 0; }
@media (min-width: 640px) {
  .texte .fiche div { grid-template-columns: 11rem 1fr; gap: 1rem; }
  .fiche { gap: 0.6rem; padding: 1.25rem 0; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
}
.horaires { border-collapse: collapse; margin: 0 0 1rem; font-variant-numeric: tabular-nums; }
.horaires th { text-align: left; font-weight: 400; padding: 0.2rem 1.5rem 0.2rem 0; }
.horaires td { padding: 0.2rem 0; white-space: nowrap; }
.encart .coordonnees { margin-bottom: 0; }
.encart .horaires { font-size: 0.95rem; margin: 0; }
.pied-horaires { margin-top: 0.75rem; }

/* ---------- Étapes d'un dossier ---------- */
.etapes { margin: 1rem 0 1.5rem; padding-left: 1.4rem; }
.etapes li { padding-left: 0.3rem; }
.etapes li + li { margin-top: 0.6rem; }
.etapes strong { font-weight: 600; }

/* ---------- Choix des cookies ---------- */
.lien-bouton { font: inherit; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; }
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--trait);
  box-shadow: 0 -18px 40px -28px rgba(19, 38, 43, 0.5);
  padding: 1.25rem var(--marge) calc(1.25rem + env(safe-area-inset-bottom));
}
.cookies-contenu { max-width: var(--largeur); margin: 0 auto; display: grid; gap: 1rem; }
.cookies h2 { font-size: 1.25rem; margin: 0; }
.cookies p { margin: 0; font-size: 0.95rem; color: var(--encre-douce); max-width: var(--mesure); }
.cookies fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.cookies legend { font-weight: 600; margin-bottom: 0.4rem; }
.cookies .bouton { min-height: 44px; }
@media (min-width: 960px) {
  .cookies-contenu { grid-template-columns: 1fr auto; align-items: center; column-gap: 2.5rem; }
  .cookies-contenu > .groupe-boutons { grid-column: 2; grid-row: 1 / span 2; }
}
@media print { .cookies { display: none !important; } }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.colonnes > * { min-width: 0; }
.texte .liens-lies { margin-bottom: 1.25rem; }

/* ---------- Renvois en fin de page de service ---------- */
.renvois { margin-top: 2.25rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--petrole); border-radius: var(--rayon); }
.renvois p { margin: 0 0 0.6rem; }
.renvois p:last-child { margin: 0; font-weight: 600; }

/* ---------- Logo officiel ---------- */
/* Couleurs du logo : pétrole très foncé #032931, or #9b6e24. */
:root { --dore: #9b6e24; }
.marque { flex-direction: row; align-items: center; padding: 0.5rem 0; }
.logo { display: block; width: auto; height: 38px; max-width: 100%; }
@media (min-width: 400px) { .entete .logo { height: 44px; } }
@media (min-width: 1200px) { .entete .logo { height: 52px; } }
@media (min-width: 1400px) { .entete .logo { height: 58px; } }
.pied-logo {
  display: inline-block; margin-bottom: 1rem; padding: 0.7rem 0.9rem;
  background: #fff; border-radius: var(--rayon); border-bottom: 2px solid var(--dore);
}
.pied-logo .logo { height: 48px; }
.pied-logo:focus-visible { outline-color: #fff; }
@media print { .logo { height: 40px; } }
.entete .marque { flex: none; }
.entete .logo { max-width: none; }
@media (min-width: 1200px) and (max-width: 1399px) { .entete .logo { height: 48px; } .nav-niveau1 { gap: 1.25rem; } .entete-barre { gap: 1.5rem; } }
.navigation a.bouton, .navigation a.bouton:hover { color: #fff; text-decoration: none; }

/* ---------- Sélecteur de langue (FR / AR / EN) ----------
   Ajout du 24/11/2026 pour les versions arabe et anglaise. Bloc autonome :
   il ne modifie aucune règle existante ; les propriétés logiques (inline)
   le rendent valable dans les deux sens d'écriture. */
.langues { position: relative; flex: none; }
.langues summary {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.65rem;
  font: 600 0.875rem var(--sans); color: var(--encre); background: var(--surface);
  border: 1px solid var(--trait); border-radius: var(--rayon); cursor: pointer; list-style: none;
}
.langues summary::-webkit-details-marker { display: none; }
.langues summary:hover { border-color: var(--petrole); }
.drapeau { width: 1.3rem; height: 0.9rem; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(19, 38, 43, 0.15); }
.langues-chevron { width: 0.7rem; height: 0.7rem; transition: transform 0.15s ease; }
.langues[open] .langues-chevron { transform: rotate(180deg); }
.langues-liste {
  position: absolute; inset-block-start: calc(100% + 0.4rem); inset-inline-end: 0; z-index: 40;
  min-width: 11.5rem; margin: 0; padding: 0.35rem; list-style: none;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: 0 18px 40px -24px rgba(19, 38, 43, 0.45);
}
.langues-liste a {
  display: flex; align-items: center; gap: 0.65rem; min-height: 44px; padding: 0 0.7rem;
  color: var(--encre); text-decoration: none; border-radius: 4px;
}
.langues-liste a:hover { background: var(--fond); color: var(--petrole); }
.langues-liste a[aria-current] { background: var(--petrole-clair); font-weight: 600; }
.langues-liste a[lang="ar"] { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif; }
/* Écrans de moins de 400 px : drapeau seul et bouton Menu réduit à son icône
   (le mot « Menu » reste lu par les lecteurs d'écran), pour garder l'en-tête sur une ligne. */
@media (max-width: 399px) {
  .entete-barre { gap: 0 0.6rem; }
  .langues summary { padding: 0 0.55rem; gap: 0; }
  .langues-code, .langues-chevron { display: none; }
  .js .menu-bouton { padding: 0 0.7rem; }
  .js .menu-bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1200px) { .langues { order: 1; } }
/* 1200 à 1299 px : en-tête plus serré pour accueillir le sélecteur. */
@media (min-width: 1200px) and (max-width: 1299px) {
  .entete-barre { gap: 1rem; }
  .nav-niveau1 { gap: 1.1rem; }
  .langues summary { padding: 0 0.55rem; }
  .langues-code { display: none; }
}
