/*
Theme Name:   AVMD 2026
Description:  Thème de la refonte AVMD — transposition fidèle des maquettes validées (charte bleu #4F84A6 / #24465F, Montserrat + Inter, chevrons ›). Léger : zéro builder, zéro slider JS, contenu critique en HTML statique.
Author:       Julien BOUTET
Version:      0.1.0
Text Domain:  avmd
*/

  /* ===== L'identité AVMD actuelle, évoluée =====
     - le bleu historique #4F84A6 conservé (icônes, liens, motifs) + décliné en profond pour le contraste
     - Montserrat conservée (titres) — l'uppercase systématique abandonné, l'échelle agrandie
     - le chevron › des titres de sections conservé comme motif de marque
     - structure de homepage = celle du site actuel, section par section              */
  :root {
    --marque: #24465F;      /* bleu profond dérivé du bleu AVMD — titres, footer */
    --avmd: #4F84A6;        /* LE bleu historique — icônes, chevrons, liens */
    --cta: #2F6C99;         /* bleu d'action (blanc dessus : 4,8:1 AA) */
    --fond: #F4F7F9; --paper: #FFFFFF; --ink: #22313D; --muted: #5A6B77; --ligne: #DCE4EA;
    --navy: #16283A;     /* navy-900 — fonds hero + footer (acté 24/07, plus profond que --marque) */
    --r: 14px;
  }
  * { box-sizing: border-box; margin: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: var(--paper); color: var(--ink); font-size: 16.5px; line-height: 1.65; }
  h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; line-height: 1.15; color: var(--marque); }
  img { max-width: 100%; display: block; }
  .container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
  .btn { display: inline-block; padding: 13px 26px; border-radius: 8px; /* rayon boutons 8px assumé vs 14px cartes (acté 24/07) */ font-size: 15px; font-weight: 600; text-decoration: none; font-family: 'Montserrat'; transition: all .3s; }
  .btn-bleu { background: var(--cta); color: #fff; }
  .btn-bleu:hover { background: var(--marque); }
  .btn-blanc { border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
  .btn-blanc:hover { background: #fff; color: var(--marque); }
  .btn-ligne { border: 1.5px solid var(--marque); color: var(--marque); }
  .btn-ligne:hover { background: var(--marque); color: #fff; }

  /* header — l'actuel, raffiné : fond blanc, mêmes entrées, tel + CTA */
  header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
  .nav { display: flex; align-items: center; gap: 26px; padding: 15px clamp(20px,4vw,40px); max-width: 1240px; margin: 0 auto; }
  .logo { font-family: 'Montserrat'; font-weight: 700; font-size: 24px; color: var(--marque); letter-spacing: .04em; }
  .logo i { font-style: normal; color: var(--avmd); }
  nav ul { display: flex; gap: 24px; list-style: none; margin-left: auto; }
  nav a { text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color .3s; }
  nav a:hover { border-color: var(--avmd); }
  nav li.actif > a { border-color: var(--avmd); color: var(--marque); font-weight: 600; }
  .tel { font-size: 14px; font-weight: 600; color: var(--marque); text-decoration: none; white-space: nowrap; }

  /* liens éditoriaux (corps de texte uniquement — jamais nav, footer ni cartes) */
  main p a, main li a:not([class]), .contenu a, .art-prose a, .cas-prose a { color: var(--avmd); text-decoration: underline; text-decoration-color: #BAD0DF; text-underline-offset: 3px; transition: color .2s; }
  main p a:hover, main li a:not([class]):hover, .contenu a:hover, .art-prose a:hover, .cas-prose a:hover { color: var(--cta); text-decoration-color: var(--cta); }

  /* focus clavier visible et charté, partout */
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 4px; }

  /* hero — carrousel de réalisations : les PHOTOS défilent en fond, le texte (H1, CTA) reste
     statique en HTML — robuste, lisible par Google, compatible reduced-motion. */
  .hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
  /* Carrousel 5 slides : cycle 30 s (6 s par slide), fenêtres de visibilité en % du cycle */
  .hero-bg .slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0;
    animation: heroFade 30s infinite, kenburns 30s infinite; will-change: opacity, transform; }
  .hero-bg .slide:nth-child(2) { animation-delay: 6s, 6s; animation-name: heroFade, kenburnsOut; }
  .hero-bg .slide:nth-child(3) { animation-delay: 12s, 12s; transform-origin: 30% 60%; }
  .hero-bg .slide:nth-child(4) { animation-delay: 18s, 18s; animation-name: heroFade, kenburnsOut; transform-origin: 70% 40%; }
  .hero-bg .slide:nth-child(5) { animation-delay: 24s, 24s; transform-origin: 60% 30%; }
  @keyframes heroFade { 0% {opacity:0} 3% {opacity:1} 20% {opacity:1} 26% {opacity:0} 100% {opacity:0} }
  /* Ken Burns léger : zoom lent pendant la fenêtre de visibilité — l'impression vidéo, sans vidéo */
  @keyframes kenburns { 0% {transform: scale(1.03)} 27% {transform: scale(1.10)} 100% {transform: scale(1.10)} }
  @keyframes kenburnsOut { 0% {transform: scale(1.10)} 27% {transform: scale(1.03)} 100% {transform: scale(1.03)} }
  .hero-veil { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,37,52,.9) 0%, rgba(24,52,74,.62) 55%, rgba(31,66,92,.32) 100%); }
  .hero .container { position: relative; z-index: 2; }
  @media (prefers-reduced-motion: reduce) { .hero-bg .slide { animation: none; } .hero-bg .slide:first-child { opacity: 1; } }
  .hero-in { color: #fff; max-width: 640px; }
  .hero .avant { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #A8C6DB; margin-bottom: 18px; font-family: 'Montserrat'; }
  .hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; }
  .hero h1 em { font-style: normal; color: #8FC1E3; }
  .hero .sub { margin-top: 18px; font-size: 17.5px; color: rgba(255,255,255,.88); max-width: 52ch; }
  .hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
  /* fourchette tarifaire indicative sous le hero (réceptacle SXO E9 ; rien si non renseignée) */
  .tarif-indic { margin-top: 18px; color: #fff; font-size: 15px; }
  .tarif-indic .ti-lab { font-family: 'Montserrat'; font-weight: 700; color: #8FC1E3; margin-right: 4px; }
  .tarif-indic .ti-note { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.6); }

  /* titres de sections — le chevron AVMD conservé, modernisé */
  section { padding: clamp(60px, 8vw, 96px) 0; }
  .sec-t { display: flex; align-items: baseline; gap: 10px; }
  .sec-t .chev { color: var(--avmd); font-family: 'Montserrat'; font-weight: 700; font-size: 26px; }
  section h2 { font-size: clamp(26px, 3vw, 38px); }
  .sec-sub { color: var(--muted); margin-top: 10px; max-width: 62ch; }

  /* qui sommes-nous — l'actuel « AVMD digitalise votre environnement » sans le fondu blanc */
  .qsn { background: var(--fond); }
  .qsn-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; margin-top: 34px; }
  .qsn-grid img { border-radius: var(--r); box-shadow: 0 24px 60px rgba(36,70,95,.16); }
  .qsn h3 { font-size: 24px; }
  .qsn h3 em { font-style: normal; color: var(--avmd); }
  .qsn p { margin-top: 14px; color: var(--muted); }

  /* nos services — les 6 icônes actuelles, sorties du bloc bleu muet : cartes claires + texte + lien */
  .sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
  .sv { position: relative; background: var(--paper); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
  .sv:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(36,70,95,.10); border-color: #BAD0DF; }
  /* Hauteur d'image STRICTEMENT identique sur toutes les cartes (retour client 03/08 :
     « faut qu'elles s'arrêtent au même niveau »). Technique padding-bottom + absolu :
     fiable sur tous les navigateurs, y compris ceux qui ignorent aspect-ratio. */
  .sv .ph { position: relative; height: 0; padding-bottom: 56.25%; overflow: hidden; } /* 16:9 — images agrandies (retour client) */
  .sv .ph img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .sv { display: flex; flex-direction: column; }
  .sv .bd { padding: 26px 22px 22px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
  .sv .bd > a { margin-top: auto; }
  .sv .ic { position: absolute; left: 18px; bottom: -18px; width: 52px; height: 52px; border-radius: 12px; background: #E8F0F6; color: var(--avmd); display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(36,70,95,.14); }
  .sv .ic svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .sv h3 { font-size: 17.5px; }
  .sv p { font-size: 14px; color: var(--muted); margin: 8px 0 12px; }
  .sv a { font-size: 14px; font-weight: 600; color: var(--avmd); text-decoration: none; }
  .sv a::after { content: ""; position: absolute; inset: 0; }
  .sv a:focus-visible::after { outline: 2px solid var(--cta); outline-offset: -2px; border-radius: var(--r); }

  /* dernière réalisation — comme aujourd'hui (Cheops) mais photo pleine, texte posé sur carte */
  .real { background: var(--fond); }
  .real-wrap { position: relative; margin-top: 36px; border-radius: var(--r); overflow: hidden; }
  .real-wrap > img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
  .real-card { position: absolute; left: clamp(16px,3vw,40px); bottom: clamp(16px,3vw,40px); background: rgba(255,255,255,.96); border-radius: var(--r); padding: 26px 28px; max-width: 430px; box-shadow: 0 18px 44px rgba(20,37,52,.25); }
  .real-card .tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--avmd); font-weight: 600; font-family: 'Montserrat'; }
  .real-card h3 { font-size: 22px; margin-top: 4px; }
  .real-card p { font-size: 14px; color: var(--muted); margin: 8px 0 14px; }

  /* chiffres — le bandeau sombre actuel, avec les VRAIS chiffres en dur */
  .chiffres { background: linear-gradient(120deg, #1B3A52, #24465F); color: #fff; }
  .ch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
  .ch .n { font-family: 'Montserrat'; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); }
  .ch .n em { font-style: normal; color: #8FC1E3; font-size: .6em; }
  .ch .l { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 4px; }

  /* équipe — les gérants, comme aujourd'hui, photos réparées */
  .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 22px; justify-content: center; margin-top: 36px; }
  .tm { background: var(--paper); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; text-align: center; }
  .tm .ph { aspect-ratio: 1/1; background: linear-gradient(160deg, #E8F0F6, #CFE0EC); display: flex; align-items: center; justify-content: center; color: var(--avmd); font-family: 'Montserrat'; font-weight: 700; font-size: 42px; }
  .tm .bd { padding: 18px; }
  .tm h3 { font-size: 17px; }
  .tm p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

  /* confiance — les VRAIS logos clients, en défilement continu (pause au survol) */
  .conf .marquee-wrap { margin-top: 36px; overflow: hidden; position: relative; padding: 10px 0; }
  .conf .marquee-wrap::before, .conf .marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; }
  .conf .marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--fond), transparent); }
  .conf .marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--fond), transparent); }
  /* 66s (au lieu de 42s) : défilement ralenti ~50 % — demande client, logos agrandis = vitesse perçue accrue */
  .conf .marquee { display: flex; align-items: center; gap: 48px; width: max-content; animation: mq 66s linear infinite; }
  /* Logos agrandis (retour AVMD 03/08 : « trop petits » sur la homepage) */
  .conf .marquee img { height: 104px; width: auto; padding: 18px 26px; background: #fff;
    border: 1px solid var(--ligne); border-radius: 12px; box-shadow: 0 4px 14px rgba(36,70,95,.06);
    filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s, transform .3s, box-shadow .3s; }
  .conf .marquee img:hover { filter: none; opacity: 1; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(36,70,95,.12); }
  @keyframes mq { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .conf .marquee { animation: none; flex-wrap: wrap; width: auto; } }
  .conf .cta-row { text-align: center; margin-top: 46px; }

  /* contact — bandeau bleu (l'appel à l'action final) */
  .ccta { background: linear-gradient(120deg, #24465F, #2F6C99); color: #fff; text-align: center; }
  .ccta h2 { color: #fff; }
  .ccta p { color: rgba(255,255,255,.8); margin-top: 10px; }
  .ccta .hero-ctas { justify-content: center; }
  .ccta .btn-bleu { background: #fff; color: var(--marque); }
  .ccta .btn-bleu:hover { background: #E8F0F6; }

  footer { background: var(--navy); color: #B9C7D2; padding: 46px 0 30px; font-size: 13.5px; }
  .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
  footer .logo { color: #fff; font-size: 20px; }
  footer b { color: #fff; }
  footer a { color: #B9C7D2; text-decoration: none; }
  footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  footer ul { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 5px; }
  .f-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8299AB; }

  @media (max-width: 900px) {
    nav ul, .tel { display: none; }
    .qsn-grid { grid-template-columns: 1fr; }
    .sv-grid { grid-template-columns: 1fr; }
    .ch-row { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .conf .logos { grid-template-columns: repeat(2, 1fr); }
    .f-grid { grid-template-columns: 1fr; }
    .real-card { position: static; max-width: none; border-radius: 0 0 var(--r) var(--r); }
    .real-wrap > img { aspect-ratio: 4/3; }
  }

/* ===== gabarit page générique ===== */
.page-plain { padding: 46px 0 70px; }
.fil { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.fil a { color: var(--avmd); text-decoration: none; }
.page-plain h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 22px; }
.page-plain .contenu { max-width: 820px; }
.page-plain .contenu p { margin: 12px 0; }

/* portraits gérants : médaillons compacts (sources 240px — nets à 150px), N&B doux en attendant les originaux HD */
.tm-c { padding: 30px 20px 8px; }
.tm-c .avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block;
  filter: grayscale(.85) contrast(1.02); border: 4px solid #E8F0F6; box-shadow: 0 10px 26px rgba(36,70,95,.14);
  image-rendering: auto; transition: filter .4s; }
.tm-c:hover .avatar { filter: grayscale(0); }

/* ===== hero v2 — « effet wahou » (validé Julien : points 1-4 de l'analyse) ===== */
.hero { min-height: 95vh; min-height: 95svh; }
/* Voile volontairement léger (demande Julien : images naturelles, effet wow) —
   la lisibilité du texte repose sur le halo local .hero-in::before, pas sur le voile. */
.hero-veil { background: linear-gradient(100deg, rgba(20,37,52,.58) 0%, rgba(20,37,52,.26) 42%, rgba(22,40,58,.06) 70%, rgba(22,40,58,0) 100%); }
/* Protection du texte, indépendante du viewport : halo sombre local derrière le bloc
   + ombre portée compositée (drop-shadow d'ancêtre = insensible aux masques overflow
   du h1-reveal, contrairement à text-shadow). Sans ça, les écrans blancs des photos
   (CAREIT, Bredin Prat) passent sous le titre blanc en fenêtre étroite (cover recentre). */
.hero-in { position: relative; }
/* Ombre portée sur les enfants (pas sur .hero-in : elle dupliquerait le halo ::before) ;
   drop-shadow et non text-shadow, que les masques overflow du h1-reveal rogneraient. */
.hero-in > * { filter: drop-shadow(0 2px 8px rgba(10,22,33,.55)) drop-shadow(0 10px 28px rgba(10,22,33,.3)); }
/* Halo en pur radial-gradient « closest-side » : il atteint 0 STRICTEMENT à l'intérieur
   de sa boîte → impossible à tronquer (Safari coupe les gros filter:blur, d'où l'ancien
   liseré vu par Julien). Décroissance multi-stops ~gaussienne = aucun bord perceptible. */
.hero-in::before { content: ""; position: absolute; inset: -120px -230px -130px -150px; z-index: -1;
  background: radial-gradient(ellipse closest-side at 50% 50%,
    rgba(16,30,44,.50) 0%, rgba(16,30,44,.47) 28%, rgba(16,30,44,.41) 50%,
    rgba(16,30,44,.31) 65%, rgba(16,30,44,.19) 78%, rgba(16,30,44,.09) 88%,
    rgba(16,30,44,.03) 95%, rgba(16,30,44,0) 100%); }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); }
.hero .sub { max-width: 46ch; }
/* Ken Burns plus perceptible */
@keyframes kenburns { 0% {transform: scale(1.06)} 27% {transform: scale(1.14)} 100% {transform: scale(1.14)} }
@keyframes kenburnsOut { 0% {transform: scale(1.14)} 27% {transform: scale(1.06)} 100% {transform: scale(1.06)} }
/* chorégraphie d'entrée : kicker → H1 mot à mot (masque + montée) → sous-titre → CTA */
.hero .avant { opacity: 0; animation: heroFadeIn .5s ease .05s forwards; }
.h1-reveal .wm { display: inline-block; overflow: hidden; vertical-align: bottom; }
.h1-reveal .w { display: inline-block; transform: translateY(112%); animation: heroWordUp .7s cubic-bezier(.22,1,.36,1) forwards; }
.h1-reveal .wm:nth-child(1) .w { animation-delay: .15s; }
.h1-reveal .wm:nth-child(2) .w { animation-delay: .23s; }
.h1-reveal .wm:nth-child(3) .w { animation-delay: .31s; }
.h1-reveal .wm:nth-child(4) .w { animation-delay: .39s; }
.h1-reveal .wm:nth-child(5) .w { animation-delay: .47s; }
.h1-reveal .wm:nth-child(6) .w { animation-delay: .55s; }
.hero .sub { opacity: 0; animation: heroFadeUp .6s ease .8s forwards; }
.hero-ctas { opacity: 0; animation: heroFadeUp .6s ease 1s forwards; }
@keyframes heroFadeIn { to { opacity: 1; } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroWordUp { to { transform: translateY(0); } }
/* points de carrousel synchronisés avec le cycle 30 s (5 slides × 6 s) */
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 44px; display: flex; gap: 2px; z-index: 3; }
.hero-dots button { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); animation: dotOn 30s infinite; }
.hero-dots button:nth-child(2)::after { animation-delay: 6s; }
.hero-dots button:nth-child(3)::after { animation-delay: 12s; }
.hero-dots button:nth-child(4)::after { animation-delay: 18s; }
.hero-dots button:nth-child(5)::after { animation-delay: 24s; }
/* mode manuel après clic : l'animation s'arrête, la slide choisie reste */
.hero.manuel .hero-bg .slide, .hero.manuel .hero-dots button::after { animation: none; }
.hero.manuel .hero-bg .slide { opacity: 0; transition: opacity .6s; }
.hero.manuel .hero-bg .slide.on { opacity: 1; }
.hero.manuel .hero-dots button::after { background: rgba(255,255,255,.35); }
.hero.manuel .hero-dots button.on::after { background: #fff; }
@keyframes dotOn { 0% {background: rgba(255,255,255,.35)} 3% {background: #fff} 20% {background: #fff} 26% {background: rgba(255,255,255,.35)} 100% {background: rgba(255,255,255,.35)} }
/* flèche de scroll */
.hero-scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 3; }
.hero-scroll span { display: block; width: 12px; height: 12px; border-right: 2px solid rgba(255,255,255,.75); border-bottom: 2px solid rgba(255,255,255,.75); transform: rotate(45deg); animation: scrollNudge 2.2s ease-in-out infinite; }
@keyframes scrollNudge { 0%, 100% { transform: rotate(45deg) translate(0,0); opacity: .75; } 50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero .avant, .hero .sub, .hero-ctas { opacity: 1; animation: none; }
  .h1-reveal .w { transform: none; animation: none; }
  .hero-dots span, .hero-scroll span { animation: none; }
}

/* ===== header : répartition pleine largeur (demande Julien) =====
   logo fixe à gauche · liens espacés régulièrement · CTA au bord droit */
.nav > nav { flex: 1; }
nav ul { width: 100%; justify-content: space-evenly; margin-left: 0; }
@media (max-width: 1100px) { nav ul { justify-content: flex-end; gap: 20px; } }

/* ===== homepage : « Nos dernières réalisations » (vedette auto + 3 mini) ===== */
.sec-head-real { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.real-wrap { margin-top: 30px; }
.real-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.rmini { display: block; background: var(--paper); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.rmini:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(36,70,95,.10); }
.rmini .ph { aspect-ratio: 16/9; overflow: hidden; }
.rmini .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rmini:hover .ph img { transform: scale(1.04); }
.rmini .bd { padding: 14px 16px 16px; }
.rmini .rtag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--avmd); font-weight: 600; font-family: 'Montserrat'; }
.rmini .rt { font-family: 'Montserrat'; font-weight: 600; font-size: 16.5px; color: var(--marque); margin-top: 3px; }
@media (max-width: 900px) { .real-mini { grid-template-columns: 1fr; } }

/* ===== Menu mobile (burger) — correction Lot 1 : la nav était masquée <900px sans alternative ===== */
.nav-burger { display: none; }
.nav-cta-m { display: none; }
@media (max-width: 900px) {
  .nav-cta-d { display: none; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 10px; background: none; border: 0; cursor: pointer; }
  .nav-burger span { display: block; width: 100%; height: 2px; background: var(--marque); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease; }
  header.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  header.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--ligne);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  header.nav-open #primary-nav { max-height: 80vh; box-shadow: 0 20px 40px rgba(36,70,95,.10); }
  .nav-overlay { display: none; }
  header.nav-open ~ .nav-overlay { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(36,70,95,.4); }
  body.nav-verrou { overflow: hidden; }
  #primary-nav ul { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 0; padding: 6px 0; }
  #primary-nav li { width: 100%; }
  #primary-nav a { display: block; padding: 14px clamp(20px,5vw,40px); font-size: 16px;
    border-bottom: 0; border-left: 3px solid transparent; }
  #primary-nav a:hover { border-color: transparent; border-left-color: var(--avmd); background: var(--fond); }
  #primary-nav .nav-cta-m { display: block; }
  #primary-nav .nav-cta-m a { margin: 10px clamp(20px,5vw,40px); padding: 12px 18px; background: var(--cta);
    color: #fff; text-align: center; border-radius: 8px; font-weight: 600; border-left: 0; }
  #primary-nav .nav-cta-m a:hover { background: var(--marque); }
}

  /* pages héritées (WPBakery) — neutralise les marges négatives des vc_row sur mobile
     (débordement horizontal constaté sur /mentions-legales/ en 390px) */
  .contenu { overflow-x: clip; }
  .page-plain { padding: 34px 0 70px; }
  .page-plain .contenu { max-width: 800px; }
  .page-plain .contenu h2, .page-plain .contenu h3 { font-size: 20px; margin: 36px 0 10px; }
  .page-plain .contenu h2::before, .page-plain .contenu h3::before { content: '› '; color: var(--avmd); }
  @media (max-width: 767px) {
    .contenu .vc_row { margin-left: 0 !important; margin-right: 0 !important; }
  }
