/* ==========================================================================
   Salons Funéraires Lecreux – Père-Lachaise
   Feuille de style principale — mobile-first, accessible (WCAG 2.1 AA)
   Charte graphique issue de l'identité visuelle Lecreux (juillet 2026).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Variables de charte graphique
   --------------------------------------------------------------------------- */
:root {
  /* Couleurs principales */
  --vert-foret:   #2b4637;  /* texte, fonds foncés  */
  --terracotta:   #934635;  /* titres, accents      */
  --abricot:      #D17A50;  /* accent décoratif (grands textes uniquement) */

  /* Fonds */
  --beige-clair:  #F9F2E8;
  --sable-rose:   #F9D9C4;
  --peche:        #F3B792;
  --or:           #DFB56D;
  --gris-lin:     #E8E4DE;
  --noir-foret:   #111513;
  --blanc:        #FFFFFF;

  /* Couleurs de service (contraste AA vérifié sur fonds clairs) */
  --texte:        #26302B;  /* vert forêt légèrement foncé pour le corps */
  --texte-doux:   #55605A;

  /* Typographie (Google Fonts, chargées dans le <head>)
     Titres H1/H2 : Poppins (déclarée en ligne sur h1, h2 et le titre du hero).
     Surtitres (eyebrow) + libellés : Geom → var(--police-titre) ci-dessous.
     H3 + texte courant : Merriweather → var(--police-corps) ci-dessous.
     Chaque variable inclut une pile de repli si les polices ne chargent pas
     (hébergement hors-ligne, etc.). */
  --police-titre: "Geom", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-corps: "Merriweather", Georgia, "Times New Roman", "Book Antiqua", serif;

  /* Rythme et formes */
  --largeur-max: 1140px;
  --gouttiere: 1.25rem;
  --rayon: 4px;
  --transition: 200ms ease;
}

/* ---------------------------------------------------------------------------
   2. Réinitialisation légère et bases
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Respect des préférences de réduction d'animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--police-corps);
  font-size: 1rem;           /* 16 px sur mobile (typographie allégée) */
  line-height: 1.6;
  color: var(--texte);
  background: var(--beige-clair);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--terracotta); }
a:hover { color: var(--abricot); }

h1, h2, h3 {
  color: var(--terracotta);
  line-height: 1.25;
  font-weight: 700;
}
/* H1 / H2 : Poppins (titrage), en minuscules (charte V4) */
h1, h2 { font-family: "Poppins", var(--police-titre); letter-spacing: 0.005em; }
/* Titres H1 / H2 : medium (charte graphique V4) */
h1, h2 { font-weight: 500; }
/* H3 (sous-titres) : Merriweather, taille unifiée, vert forêt (charte V4) */
h3 { font-family: var(--police-corps); font-size: 1.2rem; color: var(--vert-foret); }

/* Décalage d'ancre pour tenir compte de l'en-tête fixe */
:target { scroll-margin-top: 90px; }

/* ---------------------------------------------------------------------------
   3. Utilitaires
   --------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Contenu réservé aux lecteurs d'écran */
.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;
}

/* Lien d'évitement (visible au focus clavier) */
.lien-evitement {
  position: absolute; left: 0.5rem; top: -3rem;
  background: var(--terracotta); color: var(--blanc);
  padding: 0.6rem 1rem; border-radius: var(--rayon);
  z-index: 200; transition: top var(--transition);
}
.lien-evitement:focus { top: 0.5rem; }

/* Style de focus visible et homogène (accessibilité clavier) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--vert-foret);
  outline-offset: 2px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--police-titre);          /* Geom — surtitre en capitales */
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 0.5rem;
}

.bouton {
  font-family: "Poppins", var(--police-titre);
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--rayon);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
@media (min-width: 800px) {
  .bouton { padding: 0.85rem 1.6rem; font-size: 1rem; }
}
.bouton-clair {
  background: var(--beige-clair);
  color: var(--vert-foret);
}
.bouton-clair:hover { background: var(--blanc); color: var(--terracotta); }

/* ---------------------------------------------------------------------------
   4. En-tête et navigation
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--beige-clair);
  border-bottom: 1px solid var(--gris-lin);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 78px;
}
.logo { display: inline-flex; align-items: center; flex: none; }
/* Logo agrandi : ~210 px sur mobile, jusqu'à ~260 px sur grand écran
   (taille plafonnée pour laisser la place à la navigation, sans chevauchement) */
.logo img { width: clamp(210px, 40vw, 260px); height: auto; }

/* Bouton hamburger (mobile) */
.menu-toggle {
  position: relative;
  width: 44px; height: 44px;      /* cible tactile ≥ 44px */
  background: transparent; border: 0; cursor: pointer;
  padding: 0;
}
.menu-toggle-barre,
.menu-toggle-barre::before,
.menu-toggle-barre::after {
  content: ""; position: absolute; left: 10px;
  width: 24px; height: 2px; background: var(--terracotta);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle-barre { top: 21px; }
.menu-toggle-barre::before { top: -7px; }
.menu-toggle-barre::after  { top: 7px; }
/* État ouvert : transformation en croix */
.menu-toggle[aria-expanded="true"] .menu-toggle-barre { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-barre::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-barre::after  { transform: translateY(-7px) rotate(-45deg); }

.nav-principale { display: none; }              /* masqué par défaut (mobile) */
.nav-principale.est-ouvert { display: block; }
.menu {
  list-style: none; margin: 0; padding: 0.5rem 0 1rem;
}
.menu li { border-top: 1px solid var(--gris-lin); }
.menu a {
  font-family: "Poppins", var(--police-titre);
  display: block; padding: 0.85rem var(--gouttiere);
  color: var(--vert-foret); text-decoration: none; font-weight: 550;
}
.menu a:hover, .menu a[aria-current="true"] { color: var(--terracotta); }

/* Tant que le menu hamburger est utilisé (< 1100 px), le menu ouvert se déploie
   en superposition, pleine largeur, sous l'en-tête */
@media (max-width: 1099px) {
  .nav-principale.est-ouvert {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--beige-clair);
    border-bottom: 1px solid var(--gris-lin);
    box-shadow: 0 8px 16px rgba(17,21,19,0.08);
  }
}

/* ---------------------------------------------------------------------------
   5. Hero (accueil)
   --------------------------------------------------------------------------- */
/* Le hero grandit avec son contenu : l'image est un fond en couverture,
   le texte est dans le flux normal → aucun risque de rognage sous l'en-tête. */
.hero { position: relative; }
.hero-image {
  position: absolute; inset: 0; z-index: 0; display: block; margin: 0;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Voile dégradé renforcé pour garantir un fort contraste du texte sur l'image. */
.hero-contenu {
  position: relative; z-index: 1;
  min-height: 60vh;
  display: flex; align-items: center;
  background: linear-gradient(180deg,
              rgba(17,21,19,0.60) 0%,
              rgba(17,21,19,0.38) 40%,
              rgba(17,21,19,0.85) 100%);
}
.hero-contenu .conteneur { padding-block: 3rem 2.5rem; }
/* Ombre portée subtile : renforce encore la lisibilité quel que soit le fond */
.hero h1,
.hero-chapo { text-shadow: 0 1px 14px rgba(17,21,19,0.65); }
.hero h1 {
  color: var(--beige-clair);
  /* Titre du hero en Poppins (charte V4), medium */
  font-family: "Poppins", var(--police-titre);
  font-weight: 500;
  font-size: clamp(1.55rem, 5vw, 3rem);
  /* Largeur calée pour que le titre tienne en 2 lignes ; balance = coupe équilibrée */
  max-width: 28ch; margin: 0 0 0.85rem;
  text-wrap: balance;
}
.hero-chapo {
  color: var(--beige-clair);
  max-width: 55ch; margin: 0 0 1.4rem;
  font-size: 1rem;
}

/* ---------------------------------------------------------------------------
   6. Sections génériques
   --------------------------------------------------------------------------- */
.section { padding-block: 3rem; }
/* Pages légales (mentions légales, politique de confidentialité) : le <main>
   porte la classe .section — on réduit l'espace au-dessus du titre. */
main.section { padding-top: 1.5rem; }
/* Fonds « alternés » : texture pêche (charte V4) en remplacement du bloc
   monochrome pêche, pour donner plus de caractère au site. */
.section-alt {
  background-image: url('../img/texture-horizontale.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section h2 {
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  margin: 0 0 1rem; max-width: 40ch;
  text-wrap: balance;   /* coupe équilibrée : mêmes retours à la ligne pour tous les titres */
}
.section p { max-width: 65ch; }

.section-duo { display: grid; gap: 1.75rem; }
/* Cadrage uniforme (3:2) : les photos des sections « duo » s'alignent
   entre elles, quelle que soit la proportion du fichier source. */
.section-media { margin: 0; }
.section-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: 0 6px 20px rgba(17,21,19,0.10);
}
.section-media figcaption,
.plan figcaption {
  font-size: 0.85rem; color: var(--texte-doux);
  font-style: italic; margin-top: 0.5rem;
}

.bandeau-images {
  display: grid; gap: 1rem; margin-top: 1rem;
  grid-template-columns: 1fr;
}
.bandeau-images figure { margin: 0; }
/* Tuiles uniformes (mêmes proportions, hauteurs égales) : évite l'espace perdu */
.bandeau-images img {
  width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: 0 6px 20px rgba(17,21,19,0.10);
}

/* ---------------------------------------------------------------------------
   8. Cartes (espaces)
   --------------------------------------------------------------------------- */
.cartes { display: grid; gap: 1.25rem; margin: 1.5rem 0 2.5rem; }
.carte {
  background: var(--beige-clair);
  border: 1px solid var(--gris-lin);
  border-left: 4px solid var(--vert-foret);
  border-radius: var(--rayon);
  padding: 1.5rem;
}
.carte h3 { margin-top: 0; }
.section-alt .carte { background: var(--blanc); }

.badge {
  display: inline-block; vertical-align: middle;
  background: var(--or); color: var(--noir-foret);
  font-family: var(--police-titre);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem; border-radius: 999px; margin-left: 0.4rem;
}

/* ---------------------------------------------------------------------------
   9. Galerie et lightbox
   --------------------------------------------------------------------------- */
/* Titre de galerie : balise h3 stylée exactement comme un titre de section h2
   (« Un lieu pensé… ») — demande utilisatrice : Poppins 500, terracotta, minuscules. */
.galerie-titre {
  margin: 0 0 1rem;
  max-width: 40ch;
  color: var(--terracotta);
  font-family: "Poppins", var(--police-titre);
  font-weight: 500;
  letter-spacing: 0.005em;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  text-wrap: balance;
}

/* --- Carrousel de galerie : une grande photo mise en avant + défilement auto --- */
.carrousel { margin-top: 0; margin-bottom: 2.5rem; }
@media (min-width: 800px) { .carrousel { max-width: 960px; margin-inline: auto; } }

.carrousel-scene {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--rayon); background: var(--noir-foret);
}
.carrousel-piste { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; }

/* Fondu enchaîné (crossfade) doux entre les photos */
.carrousel-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 800ms ease-in-out, visibility 0s linear 800ms;
}
.carrousel-slide.est-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 800ms ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .carrousel-slide { transition: none; }
}
.carrousel-photo {
  display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in;
}
.carrousel-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.carrousel-legende {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  color: var(--blanc); font-family: var(--police-corps);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.9rem 1rem; pointer-events: none;
  text-shadow:
    0 0 3px rgba(17,21,19,0.9),
    0 1px 2px rgba(17,21,19,0.95),
    0 0 8px rgba(17,21,19,0.7);
}

/* Flèches précédent / suivant — au-dessus de la photo (z-index) pour rester cliquables */
.carrousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(249,242,232,0.9); color: var(--terracotta);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(17,21,19,0.25);
  transition: background var(--transition);
}
.carrousel-nav:hover { background: var(--blanc); }
.carrousel-prec { left: 0.75rem; }
.carrousel-suiv { right: 0.75rem; }

/* Bouton lecture / pause du défilement automatique */
.carrousel-lecture {
  position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(17,21,19,0.55); color: var(--blanc);
  cursor: pointer; font-size: 0.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.carrousel-lecture:hover { background: rgba(17,21,19,0.85); }

/* Boutons de navigation : miniatures cliquables (accès direct à une photo) */
.carrousel-miniatures {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  list-style: none; margin: 0.9rem 0 0; padding: 0;
}
.carrousel-mini {
  display: block; padding: 0; border: 0; cursor: pointer; background: none;
  border-radius: var(--rayon); overflow: hidden; line-height: 0;
  opacity: 0.55; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity var(--transition), outline-color var(--transition);
}
.carrousel-mini img { width: 84px; height: 53px; object-fit: cover; display: block; }
.carrousel-mini:hover { opacity: 0.85; }
.carrousel-mini[aria-current="true"] { opacity: 1; outline-color: var(--terracotta); }

/* Boîte modale d'agrandissement */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem;
  background: rgba(17,21,19,0.92);
}
.lightbox[hidden] { display: none; }
/* Mode « image seule » (ex. plan agrandi) : masque les flèches de navigation */
.lightbox.est-simple .lightbox-prec,
.lightbox.est-simple .lightbox-suiv { display: none; }
/* Le plan agrandi occupe une large surface lisible (source 2400×1588, ratio ~3:2) */
.lightbox.est-simple .lightbox-figure { max-width: 96vw; }
.lightbox img.est-plan {
  background: var(--blanc); border-radius: var(--rayon);
  /* Contraintes uniquement en max- + dimensions auto : le ratio d'origine est
     préservé (pas d'étirement) et l'image n'est jamais agrandie au-delà du natif */
  width: auto; height: auto; max-width: min(1200px, 94vw); max-height: 78vh;
}
.lightbox-figure {
  margin: 0; max-width: 92vw; max-height: 92vh; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
/* La hauteur de l'image laisse toujours la place à la légende (adresse) */
.lightbox-figure img { max-width: 100%; max-height: 78vh; border-radius: var(--rayon); }
.lightbox-figure figcaption { color: var(--beige-clair); margin-top: 0.75rem; flex: none; }
.lightbox button {
  background: rgba(249,242,232,0.12); color: var(--blanc);
  border: 0; cursor: pointer; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.75rem; line-height: 1; flex: none;
}
.lightbox button:hover { background: rgba(249,242,232,0.28); }
.lightbox-fermer { position: absolute; top: 1rem; right: 1rem; }

/* ---------------------------------------------------------------------------
   10. Plan d'accès
   --------------------------------------------------------------------------- */
/* Plan d'accès : format réduit, agrandissable au clic */
.plan { margin: 2rem auto 0; max-width: 560px; text-align: center; }
.plan-agrandir {
  display: block; width: 100%; padding: 0; cursor: zoom-in; overflow: hidden;
  border: 1px solid var(--gris-lin); border-radius: var(--rayon);
  background: var(--blanc); transition: border-color var(--transition);
}
.plan-agrandir img { width: 100%; display: block; }
.plan-agrandir:hover { border-color: var(--terracotta); }
.plan-hint { display: block; color: var(--texte-doux); }

/* ---------------------------------------------------------------------------
   11. Informations pratiques
   --------------------------------------------------------------------------- */
.infos-grille { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
/* Plan (gauche) + accès (droite) sous les colonnes Coordonnées / Horaires */
/* Bloc « Accès » calé en haut, à côté du plan. « Accès » et le bouton
   « Votre itinéraire avec Google Maps » suivent le flux normal : même bord
   gauche, sans décalage. */
.acces-plan { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
.acces-plan .plan { margin: 0; max-width: none; text-align: left; }
.acces-plan .plan-agrandir img { margin-inline: auto; }
.acces-plan .infos-bloc p:last-child { margin-bottom: 0; }
.infos-bloc h3 { margin-top: 0; }
.infos-bloc address { font-style: normal; }
.infos-bloc address p { margin: 0 0 0.85rem; }
.horaires { border-collapse: collapse; width: 100%; }
.horaires th, .horaires td {
  text-align: left; vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--gris-lin);
}
.horaires th { font-weight: 600; color: var(--vert-foret); white-space: nowrap; }

/* --- Lisibilité & affordance de la section « Informations pratiques » ---
   Le fond sable-rose restait proche du vert du texte : on pose chaque bloc
   sur une carte claire (contraste franc, zones bien délimitées) et on
   transforme le lien d'itinéraire en véritable bouton cliquable. */
#informations .infos-bloc {
  background: var(--beige-clair);
  border: 1px solid var(--gris-lin);
  border-radius: var(--rayon);
  padding: 1.5rem 1.6rem;
}
/* Sous-titres en vert forêt (charte V4) : on ne force plus le terracotta ici,
   ils héritent de la couleur globale des h3. */
/* Le plan garde son cadre blanc : on ajoute la même ombre douce que les cartes */
#informations .plan-agrandir { box-shadow: 0 6px 18px rgba(17, 21, 19, 0.12); }
/* Bouton d'itinéraire : plein terracotta pour signaler clairement l'action */
#informations .bouton {
  background: var(--terracotta);
  color: var(--blanc);
  box-shadow: 0 2px 6px rgba(17, 21, 19, 0.18);
}
#informations .bouton:hover { background: var(--vert-foret); color: var(--blanc); }

/* Numéro/adresse rendus cliquables par JS : conserver l'aspect lien */
.js-tel--lien, .js-email--lien { color: var(--terracotta); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   12. Pied de page
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--terracotta);
  color: var(--beige-clair);
  padding-block: 2.5rem 1.5rem;
  font-size: 0.9rem;
}
.footer-inner { display: grid; gap: 1.5rem; }
.footer-marque img { width: 220px; height: auto; margin-bottom: 0.75rem; }
.footer-adresse { margin: 0; line-height: 1.6; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-nav a { color: var(--beige-clair); text-decoration: underline; }
.footer-nav a:hover { color: var(--peche); }
.footer-bas {
  margin: 1.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(249,242,232,0.18);
  font-size: 0.85rem; color: rgba(249,242,232,0.75);
}

/* ---------------------------------------------------------------------------
   13. Points de rupture (tablette / desktop)
   --------------------------------------------------------------------------- */

/* Sur petit écran : miniatures de la galerie sur une seule ligne, défilable au doigt */
@media (max-width: 599px) {
  .carrousel-miniatures {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 4px;
  }
  .carrousel-mini { flex: 0 0 auto; scroll-snap-align: center; }
  .carrousel-mini img { width: 72px; height: 45px; }
  /* Flèches un peu plus compactes sur mobile */
  .carrousel-nav { width: 42px; height: 42px; font-size: 1.6rem; }
}

@media (min-width: 600px) {
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .bandeau-images { grid-template-columns: 1fr 1fr; }
  .infos-grille { grid-template-columns: repeat(2, 1fr); }
  /* Mêmes colonnes que .infos-grille : « Accès » (et son bouton) s'aligne
     exactement sous « Horaires », sur le même bord vertical. */
  .acces-plan { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  /* Confort de lecture accru à partir de la tablette */
  body { font-size: 1.0625rem; }
}

@media (min-width: 800px) {
  .section { padding-block: 4.5rem; }
  .section-duo {
    grid-template-columns: 1fr 1fr;
    align-items: center; gap: 3rem;
  }
  /* « Le lieu » : mêmes colonnes et même écart que le bandeau d'images du
     dessous (1rem), pour que la façade tombe pile au-dessus du hall — bords
     gauche et droit alignés — et le texte au-dessus de la verrière. */
  #le-lieu .section-duo { column-gap: 1rem; }
  /* Variante média à gauche */
  .section-duo-inverse .section-media { order: -1; }
}

/* Navigation en ligne seulement à partir de 1100 px (en-dessous : menu hamburger).
   Ce seuil garantit de la place pour le logo agrandi ET le menu, sans chevauchement,
   même lorsque les polices définitives (plus larges) sont chargées. */
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .nav-principale { display: block !important; }
  .menu { display: flex; gap: 0.1rem; padding: 0; }
  .menu li { border-top: 0; }
  .menu a { padding: 0.5rem 0.55rem; white-space: nowrap; font-size: 0.95rem; }
}

@media (min-width: 1000px) {
  .hero-contenu { min-height: 66vh; }
}
