/* ============================================================
   MARINEGALLERY — Feuille de style principale
   Design moderne + 100% responsive mobile
   ============================================================ */

:root {
  /* Nouvelle palette plus moderne — bleu marine profond + accents dorés */
  --blue:     #1a4a7a;
  --blue-dk:  #0f2f52;
  --blue-lt:  #e8f2fb;
  --blue-md:  #c5ddf5;
  --bg:       #f0f4f8;       /* fond gris-bleu moderne, remplace le sable */
  --white:    #ffffff;
  --border:   #d5e4f0;
  --text:     #1e2d3d;
  --muted:    #6b88a0;
  --amber:    #d4901a;
  --red:      #e05555;
  --green:    #22a066;
  --card-bg:  #ffffff;
  --card-shadow: 0 2px 16px rgba(15,47,82,.08);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family:'Nunito',sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(15,47,82,.1);
}

.logo { display:flex; align-items:center; gap:.55rem; text-decoration:none; }
.logo-icon { font-size:1.4rem; }
.logo-text { font-family:'Lora',serif; font-size:1.3rem; font-weight:700; color:var(--blue); }
.logo-text span { color:var(--amber); }

/* Navigation desktop */
nav { display:flex; align-items:center; gap:1.25rem; }
nav a { color:var(--muted); text-decoration:none; font-size:.88rem; font-weight:600; transition:color .15s; white-space:nowrap; }
nav a:hover { color:var(--blue); }

/* Burger mobile */
.burger {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:.4rem;
  z-index:210;
}
.burger span {
  display:block;
  width:24px;
  height:2px;
  background:var(--blue);
  border-radius:2px;
  transition:all .25s;
}
.burger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity:0; }
.burger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Menu mobile overlay */
.nav-mobile {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,47,82,.97);
  z-index:199;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2rem;
}
.nav-mobile.open { display:flex; }
.nav-mobile a {
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-size:1.4rem;
  font-weight:700;
  font-family:'Lora',serif;
  transition:color .15s;
}
.nav-mobile a:hover { color:#fff; }

/* ── BOUTONS ──────────────────────────────────────────── */
.btn-primary {
  background:var(--blue);
  color:var(--white) !important;
  padding:.45rem 1.1rem;
  border-radius:8px;
  border:none;
  font-family:'Nunito',sans-serif;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  transition:background .15s, transform .1s;
  text-decoration:none;
  display:inline-block;
  white-space:nowrap;
}
.btn-primary:hover { background:var(--blue-dk); transform:translateY(-1px); }

.btn-outline {
  background:transparent;
  color:var(--blue) !important;
  padding:.45rem 1.1rem;
  border-radius:8px;
  border:2px solid var(--blue);
  font-family:'Nunito',sans-serif;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  transition:all .15s;
  text-decoration:none;
  display:inline-block;
}
.btn-outline:hover { background:var(--blue-lt); }

.btn-like {
  background:var(--white);
  border:1.5px solid var(--border);
  color:var(--red);
  padding:.5rem 1.25rem;
  border-radius:8px;
  font-family:'Nunito',sans-serif;
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  transition:all .15s;
}
.btn-like:hover { background:#fdf0f0; border-color:var(--red); }

/* ── HERO PLEIN ÉCRAN ─────────────────────────────────── */
.hero-band { display:none; }

.hero-full {
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:5rem 1.5rem 4rem;
}

.hero-bg-img {
  position:absolute;
  inset:0;
  background: url('https://images.unsplash.com/photo-1500514966906-fe245eea9344?w=1800&q=85') center/cover no-repeat;
  transform:scale(1.03);
  animation:heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform:scale(1.03); }
  to   { transform:scale(1.09); }
}

.hero-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(10,25,55,.5) 0%,
    rgba(10,25,55,.68) 50%,
    rgba(10,25,55,.88) 100%
  );
}

.hero-content {
  position:relative;
  z-index:2;
  text-align:center;
  max-width:740px;
  width:100%;
}

.hero-badge {
  display:inline-block;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  color:rgba(255,255,255,.88);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  padding:.38rem 1rem;
  border-radius:30px;
  margin-bottom:1.2rem;
  backdrop-filter:blur(8px);
}

.hero-big-title {
  font-family:'Lora',serif;
  font-size:clamp(1.8rem,5vw,3.4rem);
  font-weight:700;
  color:var(--white);
  line-height:1.2;
  margin-bottom:.85rem;
}
.hero-big-title em { font-style:italic; color:#9dcff5; }

.hero-lead {
  color:rgba(255,255,255,.7);
  font-size:clamp(.88rem,2.5vw,1rem);
  line-height:1.75;
  max-width:500px;
  margin:0 auto 2rem;
}

/* Barre de recherche hero */
.hero-search-form { width:100%; max-width:600px; margin:0 auto 1.5rem; }

.hero-search-box {
  display:flex;
  align-items:center;
  background:var(--white);
  border-radius:50px;
  padding:.3rem .3rem .3rem 1.1rem;
  box-shadow:0 8px 40px rgba(0,0,0,.3);
  gap:.4rem;
}

.hero-search-icon { font-size:1rem; flex-shrink:0; color:var(--muted); }

.hero-search-input {
  flex:1;
  border:none;
  outline:none;
  font-family:'Nunito',sans-serif;
  font-size:.92rem;
  color:var(--text);
  background:transparent;
  min-width:0;
}
.hero-search-input::placeholder { color:#b0c4d4; }

.hero-search-btn {
  background:var(--blue);
  color:var(--white);
  border:none;
  border-radius:40px;
  padding:.6rem 1.3rem;
  font-family:'Nunito',sans-serif;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  flex-shrink:0;
  transition:background .15s;
  white-space:nowrap;
}
.hero-search-btn:hover { background:var(--blue-dk); }

.hero-quick-links {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  margin-top:.8rem;
  flex-wrap:wrap;
}
.hero-quick-links span { color:rgba(255,255,255,.45); font-size:.75rem; }
.hero-quick-links a {
  color:rgba(255,255,255,.8);
  font-size:.75rem;
  font-weight:600;
  text-decoration:none;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);
  padding:.18rem .6rem;
  border-radius:20px;
  transition:background .15s;
}
.hero-quick-links a:hover { background:rgba(255,255,255,.2); }

/* Stats hero */
.hero-stats { display:flex; align-items:center; justify-content:center; }
.hero-stat { text-align:center; padding:0 1.75rem; }
.hero-stat-sep { width:1px; height:32px; background:rgba(255,255,255,.2); }
.hero-stat .stat-num {
  font-family:'Lora',serif;
  font-size:1.7rem;
  font-weight:700;
  color:var(--white);
  display:block;
  line-height:1;
}
.hero-stat .stat-lbl {
  font-size:.67rem;
  color:rgba(255,255,255,.5);
  text-transform:uppercase;
  letter-spacing:1px;
  display:block;
  margin-top:.2rem;
}

/* Flèche scroll */
.hero-scroll-hint {
  position:absolute;
  bottom:1.75rem;
  left:50%;
  transform:translateX(-50%);
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.3rem;
  color:rgba(255,255,255,.45);
  font-size:.68rem;
  letter-spacing:1.5px;
  text-transform:uppercase;
  cursor:pointer;
  animation:scrollBounce 2s ease infinite;
}
.hero-scroll-arrow { font-size:1.1rem; color:rgba(255,255,255,.55); }
@keyframes scrollBounce {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50%      { transform:translateX(-50%) translateY(6px); }
}

/* ── ADS ──────────────────────────────────────────────── */
.ad-bar {
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:.5rem 1.5rem;
  text-align:center;
}
.ad-tag { font-size:.6rem; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:3px; }
.ad-slot {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  background:var(--blue-lt);
  border:1.5px dashed var(--blue-md);
  border-radius:6px;
  color:var(--muted);
  font-size:.75rem;
}
.ad-728 { width:100%; max-width:728px; height:78px; }
.ad-300 { width:100%; height:250px; flex-direction:column; gap:.3rem; font-size:.7rem; }
.ad-160 { width:100%; height:600px; flex-direction:column; gap:.3rem; font-size:.7rem; }
.ad-468 { width:100%; max-width:468px; height:58px; }

/* ── LAYOUT PRINCIPAL ─────────────────────────────────── */
.wrap {
  max-width:1280px;
  margin:0 auto;
  padding:1.75rem 1.5rem;
  display:grid;
  grid-template-columns:1fr 220px;
  gap:2rem;
  align-items:start;
}

/* ── SIDEBAR ──────────────────────────────────────────── */
.sidebar { display:flex; flex-direction:column; gap:1.5rem; position:sticky; top:80px; }

.sb-card {
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:12px;
  padding:1.1rem;
  box-shadow:var(--card-shadow);
}
.sb-title {
  font-family:'Lora',serif;
  font-size:.95rem;
  font-weight:700;
  color:var(--blue);
  margin-bottom:.85rem;
  padding-bottom:.5rem;
  border-bottom:1px solid var(--border);
}

.flag-row {
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .4rem;
  border-radius:6px;
  text-decoration:none;
  font-size:.83rem;
  color:var(--text);
  transition:background .12s;
  margin-bottom:.1rem;
}
.flag-row:hover { background:var(--blue-lt); }
.flag-row.on { background:var(--blue-lt); color:var(--blue); font-weight:700; }
.flag-row .cnt { margin-left:auto; color:var(--muted); font-size:.73rem; }

/* ── FORMULAIRE ───────────────────────────────────────── */
.form-card {
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1.75rem;
  margin-bottom:2rem;
  box-shadow:var(--card-shadow);
}
.form-title {
  font-family:'Lora',serif;
  font-size:1.25rem;
  font-weight:700;
  color:var(--blue);
  margin-bottom:1.25rem;
  display:flex;
  align-items:center;
  gap:.5rem;
}

.row2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1rem; margin-bottom:1rem; }

.field { display:flex; flex-direction:column; gap:.3rem; }
.lbl { font-size:.76rem; font-weight:700; color:var(--blue); text-transform:uppercase; letter-spacing:.4px; }
.inp, .sel, .txta {
  border:1.5px solid var(--border);
  border-radius:8px;
  padding:.55rem .75rem;
  font-family:'Nunito',sans-serif;
  font-size:.88rem;
  color:var(--text);
  background:var(--bg);
  outline:none;
  transition:border-color .15s, background .15s;
  width:100%;
}
.inp:focus, .sel:focus, .txta:focus { border-color:var(--blue); background:var(--white); }
.inp::placeholder { color:#b0c4d4; }
.txta { resize:vertical; min-height:60px; }
.sel { appearance:none; -webkit-appearance:none; }

/* Drop zone */
.dz {
  border:2px dashed var(--blue-md);
  border-radius:10px;
  background:var(--blue-lt);
  padding:1.75rem 1rem;
  text-align:center;
  cursor:pointer;
  transition:border-color .15s, background .15s;
  margin-bottom:.75rem;
}
.dz:hover, .dz.over { border-color:var(--blue); background:#daedf8; }
.dz-icon { font-size:2rem; margin-bottom:.35rem; }
.dz-text { font-size:.84rem; color:var(--muted); }
.dz-text strong { color:var(--blue); }

/* Alertes */
.alert-success {
  background:#edfaf1;
  border:1.5px solid #a8e6bb;
  border-radius:12px;
  padding:2rem;
  text-align:center;
  margin-bottom:1.5rem;
}
.alert-error {
  background:#fdf0f0;
  border:1.5px solid #f5c0c0;
  border-radius:8px;
  padding:.85rem 1rem;
  font-size:.86rem;
  color:#c0392b;
  margin-bottom:1.25rem;
}

/* ── AD MID ───────────────────────────────────────────── */
.ad-mid { text-align:center; margin-bottom:2rem; }

/* ── GALERIE ──────────────────────────────────────────── */
.gal-header { display:flex; align-items:center; gap:1rem; margin-bottom:1.25rem; flex-wrap:wrap; }
.gal-title { font-family:'Lora',serif; font-size:1.4rem; font-weight:700; color:var(--blue); flex:1; }
.gal-count { color:var(--muted); font-size:.82rem; }

.chips { display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.chip {
  padding:.3rem .82rem;
  border-radius:20px;
  border:1.5px solid var(--border);
  background:var(--white);
  font-size:.78rem;
  font-weight:600;
  color:var(--muted);
  cursor:pointer;
  text-decoration:none;
  transition:all .15s;
  display:inline-block;
}
.chip:hover { border-color:var(--blue); color:var(--blue); }
.chip.on { background:var(--blue); border-color:var(--blue); color:var(--white); }

.search-row { display:flex; align-items:center; gap:.5rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.search-wrap { position:relative; flex:1; min-width:200px; }
.search-ic { position:absolute; left:.65rem; top:50%; transform:translateY(-50%); color:var(--muted); font-size:.85rem; }
.search-inp {
  width:100%;
  border:1.5px solid var(--border);
  border-radius:8px;
  padding:.45rem .75rem .45rem 2rem;
  font-family:'Nunito',sans-serif;
  font-size:.85rem;
  color:var(--text);
  background:var(--white);
  outline:none;
  transition:border-color .15s;
}
.search-inp:focus { border-color:var(--blue); }

/* ── MASONRY ──────────────────────────────────────────── */
.masonry { columns:3; column-gap:1.1rem; }

.card {
  break-inside:avoid;
  margin-bottom:1.1rem;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:box-shadow .2s, transform .2s;
  cursor:pointer;
  display:block;
  text-decoration:none;
  color:inherit;
  box-shadow:var(--card-shadow);
}
.card:hover {
  box-shadow:0 8px 32px rgba(15,47,82,.14);
  transform:translateY(-3px);
}

.card-img-wrap { position:relative; }
.card-img { width:100%; display:block; object-fit:cover; height:200px; }
.card-body { padding:.85rem .95rem .95rem; }
.card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:.25rem; }
.card-name { font-family:'Lora',serif; font-size:1rem; font-weight:700; color:var(--text); }
.card-flag-em { font-size:1.3rem; }
.card-sub { font-size:.75rem; color:var(--muted); margin-bottom:.65rem; }
.card-foot {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding-top:.6rem;
  border-top:1px solid var(--border);
}
.like-btn {
  background:none;
  border:none;
  cursor:pointer;
  font-size:.8rem;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:.3rem;
  transition:color .15s;
  font-family:'Nunito',sans-serif;
  padding:0;
}
.like-btn:hover { color:var(--red); }
.like-btn.liked { color:var(--red); }
.like-hint { font-size:.8rem; color:var(--muted); display:flex; align-items:center; gap:.3rem; }
.card-author { margin-left:auto; font-size:.73rem; color:var(--muted); display:flex; align-items:center; gap:.35rem; }
.av {
  width:20px; height:20px; border-radius:50%;
  background:var(--blue); color:var(--white);
  font-size:.6rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  text-decoration:none;
}

.badge-new {
  position:absolute; top:.6rem; left:.6rem;
  background:var(--amber); color:var(--white);
  font-size:.6rem; font-weight:700; letter-spacing:.8px; text-transform:uppercase;
  padding:.18rem .45rem; border-radius:4px;
}

.feed-ad {
  break-inside:avoid; margin-bottom:1.1rem;
  background:var(--blue-lt); border:1.5px dashed var(--blue-md);
  border-radius:12px; height:140px;
  display:flex; align-items:center; justify-content:center;
  font-size:.75rem; color:var(--muted); text-align:center; flex-direction:column; gap:.4rem;
}

.empty-msg { color:var(--muted); font-size:.9rem; padding:2rem 0; }

/* ── PAGINATION ───────────────────────────────────────── */
.pagination { display:flex; gap:.4rem; margin-top:2rem; flex-wrap:wrap; }
.page-btn {
  padding:.4rem .85rem; border-radius:6px;
  border:1.5px solid var(--border); background:var(--white);
  font-size:.85rem; font-weight:600; color:var(--muted); text-decoration:none; transition:all .15s;
}
.page-btn:hover { border-color:var(--blue); color:var(--blue); }
.page-btn.on { background:var(--blue); border-color:var(--blue); color:var(--white); }

/* ── PAGE PHOTO ───────────────────────────────────────── */
.photo-page-img { border-radius:12px; overflow:hidden; margin-bottom:1.5rem; border:1px solid var(--border); }
.photo-page-img img { width:100%; display:block; max-height:520px; object-fit:contain; background:#f0f4f8; }
.photo-page-flag { font-size:2.5rem; margin-bottom:.25rem; }
.photo-page-name { font-family:'Lora',serif; font-size:2rem; font-weight:700; color:var(--blue); margin-bottom:.25rem; }
.photo-page-sub { font-size:.88rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.6px; margin-bottom:1rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.photo-page-desc { font-size:.92rem; line-height:1.8; margin-bottom:1.25rem; }
.photo-page-meta { font-size:.85rem; color:var(--muted); line-height:2.2; padding:.9rem 1rem; background:var(--blue-lt); border-radius:8px; }
.photo-page-meta strong { color:var(--text); }

/* ── LANG SWITCH ──────────────────────────────────────── */
.lang-switch { display:flex; gap:.25rem; align-items:center; }
.lang-btn { font-size:1.1rem; padding:.2rem .3rem; border-radius:5px; text-decoration:none; transition:background .15s; line-height:1; opacity:.5; }
.lang-btn:hover { opacity:.8; background:var(--blue-lt); }
.lang-btn.on { opacity:1; background:var(--blue-lt); }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, var(--blue-dk) 0%, var(--blue) 100%);
  color:rgba(255,255,255,.75);
  padding:2.5rem 1.5rem 1.5rem;
  margin-top:3rem;
}
.foot-inner { max-width:1280px; margin:0 auto; }
.foot-ad { margin-bottom:1.5rem; text-align:center; }
.foot-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:2rem; margin-bottom:2rem; padding-bottom:2rem; border-bottom:1px solid rgba(255,255,255,.12); }
.foot-logo { font-family:'Lora',serif; font-size:1.25rem; color:var(--white); font-weight:700; margin-bottom:.6rem; }
.foot-logo span { color:#f5c842; }
.foot-desc { font-size:.82rem; line-height:1.75; }
.foot-col h5 { color:var(--white); font-size:.78rem; text-transform:uppercase; letter-spacing:.8px; margin-bottom:.75rem; }
.foot-col a { display:block; color:rgba(255,255,255,.55); text-decoration:none; font-size:.82rem; margin-bottom:.4rem; transition:color .15s; }
.foot-col a:hover { color:var(--white); }
.foot-bottom { display:flex; justify-content:space-between; font-size:.72rem; opacity:.5; flex-wrap:wrap; gap:.5rem; }
.foot-bottom a { color:rgba(255,255,255,.55); text-decoration:none; }
.foot-bottom a:hover { color:#fff; }

/* ── PAGES LÉGALES ────────────────────────────────────── */
.legal-wrap { max-width:820px; margin:3rem auto; padding:0 1.5rem; }
.legal-wrap h1 { font-family:'Lora',serif; color:var(--blue); font-size:2rem; margin-bottom:.4rem; }
.legal-wrap .subtitle { color:var(--muted); font-size:.85rem; margin-bottom:2.5rem; padding-bottom:1.5rem; border-bottom:1px solid var(--border); }
.legal-wrap h2 { font-family:'Lora',serif; color:var(--blue); font-size:1.15rem; margin:2rem 0 .75rem; }
.legal-wrap p, .legal-wrap li { font-size:.92rem; line-height:1.85; color:var(--text); }
.legal-wrap ul { padding-left:1.4rem; margin:.5rem 0; }
.legal-wrap li { margin-bottom:.35rem; }
.info-box { background:var(--blue-lt); border:1px solid var(--blue-md); border-radius:8px; padding:1rem 1.25rem; margin:.75rem 0; font-size:.88rem; line-height:1.8; }
.info-box strong { color:var(--blue); }
.back-link { display:inline-block; margin-bottom:1.5rem; color:var(--muted); font-size:.85rem; text-decoration:none; }
.back-link:hover { color:var(--blue); }
.table-rgpd, .table-cookies { width:100%; border-collapse:collapse; margin:1rem 0; font-size:.84rem; }
.table-rgpd th, .table-cookies th { background:var(--blue); color:#fff; padding:.6rem .85rem; text-align:left; font-weight:600; }
.table-rgpd td, .table-cookies td { padding:.6rem .85rem; border-bottom:1px solid var(--border); vertical-align:top; line-height:1.6; }
.table-rgpd tr:last-child td, .table-cookies tr:last-child td { border-bottom:none; }
.table-rgpd tr:nth-child(even) td, .table-cookies tr:nth-child(even) td { background:var(--blue-lt); }
.cookie-badge { display:inline-block; padding:.15rem .5rem; border-radius:4px; font-size:.72rem; font-weight:700; }
.badge-essential { background:#edfaf1; color:#1a7a3a; }
.badge-optional { background:#fff8e1; color:#7a6000; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — breakpoints
   ══════════════════════════════════════════════════════════ */

/* ── TABLETTE (max 1024px) ────────────────────────────── */
@media (max-width:1024px) {
  .wrap { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .masonry { columns:2; }
  .foot-top { grid-template-columns:1fr 1fr; }
  .hero-stat { padding:0 1.25rem; }
}

/* ── MOBILE (max 640px) ───────────────────────────────── */
@media (max-width:640px) {

  /* Header mobile */
  header { padding:0 1rem; height:56px; }
  .logo-text { font-size:1.15rem; }

  /* Cacher nav desktop, montrer burger */
  nav > a, nav > .lang-switch, nav > .btn-primary { display:none; }
  .burger { display:flex; }

  /* Hero mobile */
  .hero-full { min-height:90vh; padding:4rem 1.1rem 3rem; }
  .hero-big-title { font-size:1.75rem; }
  .hero-lead { font-size:.85rem; margin-bottom:1.5rem; }
  .hero-badge { font-size:.65rem; padding:.3rem .8rem; }

  /* Barre recherche mobile */
  .hero-search-box {
    border-radius:12px;
    flex-direction:column;
    padding:.6rem;
    gap:.5rem;
    align-items:stretch;
  }
  .hero-search-icon { display:none; }
  .hero-search-input {
    padding:.55rem .75rem;
    font-size:.9rem;
    border-radius:8px;
    border:1.5px solid var(--border);
    background:var(--bg);
  }
  .hero-search-btn {
    border-radius:8px;
    padding:.65rem;
    font-size:.88rem;
    text-align:center;
  }

  /* Stats hero mobile */
  .hero-stat { padding:0 .9rem; }
  .hero-stat .stat-num { font-size:1.35rem; }
  .hero-stat .stat-lbl { font-size:.6rem; }

  /* Quick links mobile */
  .hero-quick-links { gap:.35rem; }
  .hero-quick-links a { font-size:.7rem; padding:.15rem .5rem; }

  /* Layout mobile */
  .wrap { padding:1.25rem 1rem; gap:1.25rem; }

  /* Galerie mobile */
  .masonry { columns:1; }
  .gal-title { font-size:1.2rem; }
  .chips { gap:.35rem; }
  .chip { font-size:.74rem; padding:.28rem .7rem; }
  .search-row { flex-direction:column; align-items:stretch; }
  .search-wrap { min-width:unset; width:100%; }

  /* Formulaire mobile */
  .form-card { padding:1.25rem 1rem; }
  .form-title { font-size:1.1rem; }
  .row2, .row3 { grid-template-columns:1fr; }

  /* Footer mobile */
  .foot-top { grid-template-columns:1fr; gap:1.5rem; }
  .foot-bottom { flex-direction:column; align-items:center; text-align:center; gap:.4rem; }

  /* Pages légales mobile */
  .legal-wrap { padding:0 1rem; margin:1.5rem auto; }
  .legal-wrap h1 { font-size:1.5rem; }
  .table-rgpd, .table-cookies { font-size:.76rem; }
  .table-rgpd th, .table-cookies th,
  .table-rgpd td, .table-cookies td { padding:.45rem .6rem; }

  /* Ad mobile */
  .ad-bar { padding:.4rem 1rem; }
  .ad-728 { height:60px; font-size:.68rem; }
}

/* ── TRÈS PETIT MOBILE (max 380px) ───────────────────── */
@media (max-width:380px) {
  .hero-big-title { font-size:1.5rem; }
  .hero-stat-sep { display:none; }
  .hero-stat { padding:0 .6rem; }
  .card-img { height:180px; }
}

/* ── CORRECTIF DOUBLE NAVBAR ─────────────────────────── */
/* Le menu mobile est caché sur desktop */
.burger { display:none; }
.nav-mobile { display:none !important; }

/* ── LIGHTBOX ─────────────────────────────────────────── */
.lightbox-overlay {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(5,15,35,.93);
  z-index:999;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
}
.lightbox-overlay.open { display:flex; animation:lbFadeIn .2s ease; }
@keyframes lbFadeIn { from{opacity:0} to{opacity:1} }

.lightbox-img-wrap {
  position:relative;
  max-width:1100px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.lightbox-img-wrap img {
  max-width:100%;
  max-height:88vh;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  display:block;
}
.lightbox-caption {
  color:rgba(255,255,255,.75);
  font-size:.85rem;
  margin-top:.75rem;
  text-align:center;
}
.lightbox-close {
  position:fixed;
  top:1.25rem; right:1.25rem;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  width:40px; height:40px;
  border-radius:50%;
  font-size:1.1rem;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
  z-index:1000;
}
.lightbox-close:hover { background:rgba(255,255,255,.25); }

/* Icône zoom au survol des cartes */
.card-zoom-hint {
  position:absolute;
  bottom:.6rem; right:.6rem;
  background:rgba(0,0,0,.5);
  color:#fff;
  font-size:.7rem;
  padding:.2rem .5rem;
  border-radius:6px;
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
}
.card:hover .card-zoom-hint { opacity:1; }

/* ── PHOTO PAGE MOBILE — image plus grande ─────────────── */
@media (max-width:640px) {
  .photo-page-img img {
    max-height:320px;
    object-fit:cover;
    width:100%;
  }
  .photo-page-name { font-size:1.4rem; }
  .photo-page-flag { font-size:2rem; }
  /* Layout page photo : empile sur mobile */
  .wrap[style*="grid-template-columns:1fr 300px"] {
    grid-template-columns:1fr !important;
  }
}

/* ── MOBILE RESPONSIVE — burger visible ───────────────── */
@media (max-width:640px) {
  .burger { display:flex !important; }
  .nav-mobile { display:none; }
  .nav-mobile.open { display:flex !important; }
  nav > a, nav > .lang-switch, nav > .btn-primary { display:none; }
}
