/* ===============================
   RESET DE BASE
   =============================== */

/* Sélecteur universel : s'applique à tous les éléments */
* {
  margin: 0;                 /* enlève les marges par défaut */
  padding: 0;                /* enlève les paddings par défaut */
  box-sizing: border-box;    /* inclut bordures/paddings dans width/height */
}

/* ===============================
   BASE DU SITE
   =============================== */

body {
  font-family: Arial, Helvetica, sans-serif; /* police simple et lisible */
  line-height: 1.6;                          /* hauteur de ligne confortable */
  color: #222;                               /* texte foncé */
  background-color: #f9f9f9;                 /* fond gris très clair */
}

/* Style par défaut des liens */
a {
  color: inherit;            /* reprend la couleur du parent */
  text-decoration: none;     /* enlève le soulignement */
}

/* ===============================
   HEADER & NAV
   =============================== */

.site-header {
  display: grid; /* grille (logo / nav / logo droite) */
  grid-template-columns: 180px 1fr 180px; /* 3 colonnes */
  align-items: center; /* aligne verticalement */
  padding: 1.2rem 2rem; /* espace interne */
  background-color: #fff; /* fond blanc */

  /* ===== STICKY ===== */
  position: sticky; /* le header “colle” au scroll */
  top: 0; /* colle en haut de la fenêtre */
  z-index: 1000; /* passe au-dessus du contenu */

  /* ===== OMBRE ===== */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); /* séparation */
  border-bottom: none; /* enlève la bordure */
}

/* ===============================
   HEADER — ANIMATION AU SCROLL
   =============================== */

/* État normal */
.site-header {
  transition: 
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

/* Logo normal */
.logo img {
  transition: height 0.3s ease, transform 0.3s ease;
}

/* Menu normal */
.nav a {
  transition: font-size 0.3s ease;
}

/* ===============================
   HEADER COMPACT (scroll down)
   =============================== */

.site-header.is-compact {
  padding: 0.6rem 2rem; /* header plus fin */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); /* ombre un peu plus marquée */
}

/* Logo plus petit */
.site-header.is-compact .logo img {
  height: 70px; /* avant : 100px */
}

/* Menu légèrement plus petit */
.site-header.is-compact .nav a {
  font-size: 0.95rem;
}



/* ===============================
   LOGO
   =============================== */

.logo {
  display: flex;              /* permet un alignement simple */
  align-items: center;        /* centre verticalement */
  justify-content: flex-start;/* colle à gauche */
}

/* Image du logo */
.logo img {
  height: 115px;              /* taille du logo */
  width: auto;                /* garde proportions */
  display: block;             /* enlève l'espace blanc sous l'image */
  transition: transform 0.25s ease; /* animation douce */
}

/* Survol logo : petit zoom */
.logo:hover img {
  transform: scale(1.08);     /* agrandit légèrement */
}

/* ===============================
   NAVIGATION PRINCIPALE (PROPRE)
   =============================== */

/* ===============================
   NAVIGATION SIMPLE & PROPRE
   =============================== */

.nav {
  grid-column: 2;             /* menu centré dans le header */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6.5rem;                /* espace entre liens */
}

/* Liens du menu */
.nav a {
  position: relative;
  display: inline-block;

  padding: 0.6rem 0.3rem; /* un peu plus d’air */

  font-size: 1.15rem; /* 🔥 PLUS GROS (avant ~1rem) */
  font-weight: 500;

  color: #5b4a3b; /* marron doux, cohérent avec le site */

  transition: 
    transform 220ms ease,
    color 220ms ease;
}

/* Ligne sous le lien (cachée au départ) */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

/* Hover : couleur + petit lift */
.nav a:hover {
  color: #111;
  transform: translateY(-2px);
}

/* Hover : underline visible */
.nav a:hover::after {
  transform: scaleX(1);
}

/* Lien actif (page courante, optionnel) */
.nav a.active {
  color: #111;
}

.nav a.active::after {
  transform: scaleX(1);
}

/* ===============================
   CONTENEUR
   =============================== */

.container {
  max-width: 1100px;         /* largeur max */
  margin: 0 auto;            /* centré */
  padding: 2rem;             /* espace intérieur */
}

/* ===============================
   HERO
   =============================== */

.hero {
  padding: 3.2rem 0;         /* espace vertical */
}

/* Grille hero (texte + carte) */
.hero-grid {
  display: flex;                 /* flex plus simple ici */
  justify-content: center;       /* centre horizontalement */
}

.hero-left {
  max-width: 700px;              /* largeur confortable */
  text-align: center;            /* texte centré */
}

.kicker {
  text-transform: uppercase; /* majuscules */
  letter-spacing: 0.12em;    /* espacement */
  font-size: 0.8rem;         /* petit texte */
  color: #777;               /* gris */
  margin-bottom: 0.7rem;     /* espace dessous */
}

.hero h1 {
  font-size: 2.4rem;         /* grand titre */
  margin-bottom: 1rem;       /* espace dessous */
}

.lead {
  max-width: 60ch;        /* largeur confortable et lisible */
  margin: 0 auto 1.8rem; /* centre horizontalement + espace dessous */
  text-align: center;    /* centre le texte */
  color: #444;           /* gris lisible */
}


/* Zone boutons */
.hero-actions {
  display: flex;
  justify-content: center;       /* centre les boutons */
  gap: 1rem;
  margin-top: 1.5rem;
}


/* Boutons */
.btn {
  padding: 0.75rem 1.2rem;   /* taille */
  border: 1px solid #222;    /* bordure */
  font-size: 0.95rem;        /* texte */
  display: inline-block;     /* permet padding */
  transition: transform 180ms ease, opacity 180ms ease; /* animation */
}

/* Bouton principal */
.btn.primary {
  background-color: #222;    /* noir */
  color: #fff;               /* blanc */
}

/* Hover bouton */
.btn:hover {
  opacity: 0.92;             /* léger effet */
  transform: translateY(-1px);/* petit lift */
}


/* ===============================
   CARTES INFOS
   =============================== */

.cards {
  display: grid; /* grille */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* responsive */
  gap: 1.5rem; /* espace entre cartes */
  margin: 3rem 0; /* espace vertical */
}

.card {
  background-color: #fff; /* fond blanc */
  padding: 1.5rem; /* espace intérieur */
  border: 1px solid #ddd; /* bordure */
}

/* ===============================
   SECTIONS
   =============================== */

.section {
  margin: 4rem 0; /* espace vertical */
}

.section-head {
  margin-bottom: 1.5rem; /* espace sous titre */
}

.muted {
  color: #777; /* texte secondaire */
}

.small {
  font-size: 0.85rem; /* petit texte */
}

/* ===============================
   GALERIE
   =============================== */

.gallery {
  display: grid;                                   /* grille */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;                                     /* espace entre images */
}

.thumb {
  width: 100%;
  height: 160px;          /* 👈 hauteur identique pour toutes */
  overflow: hidden;       /* cache ce qui dépasse */
  border-radius: 6px;     /* coins légèrement arrondis */
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 👈 recadre sans déformer */
  display: block;
}


/* ===============================
   CTA
   =============================== */

.cta {
  background-color: #222; /* fond sombre */
  color: #fff; /* texte blanc */
  padding: 3rem 2rem; /* padding */
  text-align: center; /* centré */
}

.cta-inner {
  max-width: 600px; /* limite */
  margin: 0 auto; /* centre */
}

/* ===============================
   FOOTER
   =============================== */

.site-footer {
  text-align: center; /* centré */
  padding: 1.5rem; /* espace */
  font-size: 0.85rem; /* petit */
  color: #777; /* gris */
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {

  .hero-grid {
    grid-template-columns: 1fr; /* 1 colonne */
  }

  .nav {
    display: none; /* caché (menu burger) */
    flex-direction: column; /* vertical */
    gap: 1rem; /* espace */
  }

  .burger {
    display: block; /* burger visible si tu l'utilises */
  }
}

/* ===============================
   VISITE 3D (A-FRAME)
   =============================== */

.vr-frame {
  width: 100%;                 /* prend toute la largeur du container */
  height: 520px;               /* hauteur de la zone 3D */
  border: 1px solid #ddd;      /* bordure légère */
  border-radius: 10px;         /* coins arrondis */
  overflow: hidden;            /* cache ce qui dépasse */
  background: #fff;            /* fond blanc si chargement */
}

/* Sur mobile : un peu moins haut */
@media (max-width: 768px) {
  .vr-frame {
    height: 380px;
  }
}

/* ===============================
   HEADER STICKY + COMPACT AU SCROLL - Page visite3D
   =============================== */

/* Header collé en haut de l'écran */
.site-header {
  position: sticky;                 /* le header "colle" en haut */
  top: 0;                           /* positionné tout en haut */
  z-index: 1000;                    /* passe au-dessus du contenu */
  transition:                       /* transitions douces */
    padding 220ms ease,             /* animation du resserrage */
    box-shadow 220ms ease,          /* ombre douce */
    background-color 220ms ease;    /* (au cas où) */
}

/* Ombre légère quand on commence à scroller (effet séparation) */
.site-header.is-scrolled {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* ombre douce */
}

/* État "compact" : quand on scroll vers le bas */
.site-header.is-compact {
  padding-top: 0.6rem;              /* réduit le padding haut */
  padding-bottom: 0.6rem;           /* réduit le padding bas */
}

/* Logo Halles : transition sur la taille */
.logo img {
  transition: transform 220ms ease, height 220ms ease; /* animation fluide */
}

/* Quand header compact : logo un peu plus petit */
.site-header.is-compact .logo img {
  height: 70px;                     /* baisse la hauteur du logo */
}

/* Logo Béziers (si tu as une classe à droite) */
.logo--right img {
  transition: height 220ms ease;    /* animation taille */
}

/* Quand compact : logo Béziers un peu plus petit aussi */
.site-header.is-compact .logo--right img {
  height: 60px;                     /* ajuste si besoin */
}

/* Menu : un chouïa plus resserré en compact */
.site-header.is-compact .nav a {
  padding: 0.25rem 0.2rem;          /* moins de hauteur */
}

/* ===============================
   LOGO BÉZIERS (DROITE)
   =============================== */

.logo--right {
  display: flex;               /* bon alignement */
  align-items: center;         /* centre verticalement */
  justify-content: flex-end;   /* colle à droite */
}

/* Image du logo Béziers */
.logo--right img {
  height: 80px;                /* TAILLE NORMALE */
  width: auto;                 /* conserve les proportions */
  max-width: 160px;            /* empêche tout débordement */
  object-fit: contain;         /* image toujours visible */
  display: block;

  transition: height 220ms ease;
}

/* ===============================
   HEADER COMPACT → LOGOS RÉDUITS
   =============================== */

/* Logo Halles (déjà chez toi mais je le rappelle) */
.site-header.is-compact .logo img {
  height: 65px;
}

/* Logo Béziers en mode compact */
.site-header.is-compact .logo--right img {
  height: 55px;
}

/* ===============================
   CONTACT PAGE
   (ajout, ne touche pas le header)
   =============================== */

.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.8rem;
}

.contact-card{
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5rem;
}

.contact-title{
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.contact-form .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label{
  font-weight: 600;
  color: #222;
}

.form-field input,
.form-field textarea{
  border: 1px solid rgba(0,0,0,0.18);
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: rgba(0,0,0,0.45);
}

.form-check{
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.2rem 0 1.2rem;
  color: #444;
}

.form-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.info-block{
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.info-block:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.info-block h3{
  margin-bottom: 0.35rem;
}

.map-placeholder{
  margin-top: 1.2rem;
  border: 1px dashed rgba(0,0,0,0.25);
  padding: 1rem;
  background: #fafafa;
}

/* Responsive */
@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .contact-form .form-row{
    grid-template-columns: 1fr;
  }
}

/* ===============================
   GOOGLE MAPS (CONTACT)
   =============================== */

.map-embed {
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;

  /* 👇 taille maîtrisée */
  max-width: 100%;
  height: 200px; /* ⬅️ ajuste ici (180 / 200 / 220) */
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===============================
   MODAL IMAGES (GALERIE)
   =============================== */

.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

/* Affichage quand ouvert */
.img-modal.is-open {
  display: block;
}

/* Fond sombre */
.img-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: zoom-out;
}

/* Contenu centré */
.img-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(900px, 92vw);
  max-height: 86vh;

  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

/* Image */
.img-modal__content img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
}

/* Légende */
.img-modal__caption {
  padding: 0.8rem 1rem;
  color: #444;
  font-size: 0.95rem;
  background: #fff;
}

/* Bouton fermer */
.img-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 18px;
  cursor: pointer;

  display: grid;
  place-items: center;
}

.img-modal__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ===============================
   FOND PAGE D’ACCUEIL
   =============================== */

body.home {
  background-image: url("../img/home.jpg");
  background-size: cover;          /* l’image couvre tout l’écran */
  background-position: center top; /* bien centrée */
  background-repeat: no-repeat;
  background-attachment: fixed;    /* effet léger au scroll */
}

/* Le contenu reste lisible */
body.home .container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}

body.home .container {
  background: rgba(255, 255, 255, 0.9);
}

/* ===============================
   FAUSSES PUBLICITÉS
   =============================== */

.fake-ad {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 190px;              /* largeur de tes pubs */
  background: rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  font-weight: 600;

  z-index: 1; /* 👈 IMPORTANT : FAIBLE */
}

.fake-ad--left {
  left: 0;
}

.fake-ad--right {
  right: 0;
}


body.home .fake-ad {
  font-style: italic;
  opacity: 0.6;
}

/* ===============================
   FOOTER
   =============================== */

.site-footer {
  position: relative;
  z-index: 10;
  background-color: #111;
  color: #fff;
  margin-top: 4rem;
}

/* Contenu principal */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

/* Colonnes */
.footer-col h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
}

/* Liens */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ddd;
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Bas du footer */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

/* ===============================
   COMMERCANTS — GRID
   =============================== */

.merchants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Chaque carte focusable (clavier) */
.merchant {
  outline: none;
}

/* ===============================
   EFFET LIVRE (hover/focus)
   =============================== */

.book {
  position: relative;
  height: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;

  /* 3D */
  perspective: 1200px;
}

/* Couverture (face avant) */
.book__cover {
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 550ms ease;
  z-index: 2;

  display: grid;
  grid-template-rows: 180px 1fr;
}

.book__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book__meta {
  padding: 1rem;
}

.book__meta h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.book__meta p {
  color: #666;
}

/* Intérieur (produits) */
.book__inside {
  position: absolute;
  inset: 0;
  padding: 1rem;
  background: #fff;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.book__inside h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.book__inside ul {
  margin-left: 1.1rem;
  color: #333;
}

/* Hover/focus = ouverture */
.merchant:hover .book__cover,
.merchant:focus-within .book__cover,
.merchant:focus .book__cover {
  transform: rotateY(-140deg);
}

/* Petit “lift” au hover */
.merchant:hover .book,
.merchant:focus-within .book {
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Accessibilité : réduction d’animations */
@media (prefers-reduced-motion: reduce) {
  .book__cover,
  .merchant:hover .book,
  .merchant:focus-within .book {
    transition: none !important;
    transform: none !important;
  }
}

/* ===============================
   COMMERCANTS — RESPONSIVE
   =============================== */

/* Desktop/tablette : la grille est déjà OK avec auto-fit.
   On ajuste surtout la hauteur des cartes si besoin. */
@media (max-width: 1024px) {
  .book {
    height: 300px;
  }
}

/* TABLETTE (2 colonnes propres) */
@media (max-width: 900px) {
  .merchants-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .book {
    height: 300px;
  }

  .book__meta h2 {
    font-size: 1.05rem;
  }
}

/* MOBILE (1 colonne, + confortable) */
@media (max-width: 600px) {
  /* Container un peu plus serré */
  .container {
    padding: 1.2rem;
  }

  /* Grille en 1 colonne */
  .merchants-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Cartes moins hautes + texte plus lisible */
  .book {
    height: 280px;
    border-radius: 12px;
  }

  .book__cover {
    grid-template-rows: 160px 1fr;
  }

  .book__meta {
    padding: 0.9rem;
  }

  .book__meta h2 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .book__meta p {
    font-size: 0.95rem;
  }

  .book__inside {
    padding: 0.95rem;
  }

  .book__inside ul {
    margin-left: 1rem;
  }

  /* Sur mobile, pas de hover :
     on laisse l’ouverture au "tap" via focus (tabindex=0 sur article) */
  .merchant:hover .book__cover {
    transform: none;
  }

  /* Tap/click = focus => ouverture */
  .merchant:focus .book__cover,
  .merchant:focus-within .book__cover {
    transform: rotateY(-140deg);
  }
}

/* FOOTER responsive (au cas où tu ne l’as pas encore) */
@media (max-width: 800px) {
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-links {
    padding-left: 0;
    list-style: none;
  }

  .footer-col p,
  .footer-links a {
    font-size: 0.95rem;
  }
}

/* ===============================
   FILTRES COMMERÇANTS
   =============================== */
.merchant-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin: 1.2rem 0 1.6rem;
}

.filter-btn{
  border:1px solid #222;
  background:#fff;
  color:#222;
  padding:.55rem .9rem;
  font-size:.95rem;
  cursor:pointer;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.filter-btn:hover{
  transform: translateY(-1px);
  opacity:.95;
}

.filter-btn.is-active{
  background:#222;
  color:#fff;
}

/* ===============================
   NAV — ÉTAT ACTIF (compat)
   (tu utilises "is-active" dans le HTML)
   =============================== */
.nav a.is-active{
  color:#111;
}
.nav a.is-active::after{
  transform: scaleX(1);
}

/* Empêche le scroll derrière quand le menu mobile est ouvert */
body.menu-open{ overflow: hidden; }

/* ===============================
   HEADER + BURGER (RESPONSIVE PROPRE)
   =============================== */

/* Bouton burger (caché sur desktop) */
.burger{
  display:none;
  justify-self:end;
  width:46px;
  height:46px;
  border:1px solid rgba(0,0,0,0.18);
  background:#fff;
  border-radius:10px;
  cursor:pointer;

  place-items:center;
  gap:6px;
  padding:10px;

  transition: transform 160ms ease, box-shadow 160ms ease;
}

.burger:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

.burger:hover{
  transform: translateY(-1px);
}

.burger__bar{
  display:block;
  width:100%;
  height:2px;
  background:#111;
  border-radius:999px;
}

/* NAV mobile : menu déroulant sous le header */
@media (max-width: 768px){

  /* Header plus compact et lisible */
  .site-header{
    grid-template-columns: 140px 1fr 140px;
    padding: 0.9rem 1.1rem;
  }

  /* Logos un peu plus petits */
  .logo img{ height: 82px; }
  .logo--right img{ height: 62px; max-width: 120px; }

  /* Burger visible */
  .burger{ display:grid; }

  /* Placement : burger au centre de la colonne du milieu */
  .burger{
    grid-column: 2;
    justify-self: center;
  }
  .logo--right{
    grid-column: 3;
  }

  /* Nav devient un panneau */
  .nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;            /* fermé par défaut */
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 18px 28px rgba(0,0,0,0.10);

    padding: 0.6rem 1.1rem 1rem;
  }

  /* Quand ouvert (JS) */
  .nav.is-open{
    display: flex;
  }

  /* Liens du menu en "liste" */
  .nav a{
    padding: 0.95rem 0.2rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: none; /* annule le lift */
  }

  .nav a:last-child{
    border-bottom: 0;
  }

  /* Underline pas nécessaire en mobile -> plus propre */
  .nav a::after{
    display:none;
  }

  /* Pubs blague : on les cache sur mobile (sinon ça gêne) */
  .fake-ad{
    display:none;
  }

  /* Body home : sur mobile, pas de background-attachment fixed (souvent buggy) */
  body.home{
    background-attachment: scroll;
  }

  /* Boutons en colonne dans le hero */
  .hero-actions{
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn{
    width: 100%;
    max-width: 360px;
    text-align: center;
  }
}

/* Très petit mobile */
@media (max-width: 420px){
  .site-header{
    grid-template-columns: 120px 1fr 120px;
  }
  .logo img{ height: 74px; }
  .logo--right img{ height: 56px; }
}
