/* Styles communs — harmonisation légère du site Sammy El Ghadab */
:root {
  --site-bg: #111;
  --site-fg: #fff;
  --site-muted: #eaeaea;
  --site-panel: rgba(0,0,0,.46);
  --site-panel-strong: rgba(0,0,0,.60);
  --site-border: rgba(255,255,255,.12);
  --site-shadow: 0 12px 34px rgba(0,0,0,.28);
  --site-radius: 12px;
  --site-nav-height: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.52)),
    url('sammy-profil.jpg') center 30% / cover no-repeat fixed;
  color: var(--site-fg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.page-merci {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
    url('sammy-profil.jpg') center 30% / cover no-repeat fixed;
}

nav {
  min-height: var(--site-nav-height);
  background: rgba(17,17,17,.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
nav.is-scrolled {
  background: rgba(17,17,17,.98) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  border-bottom-color: rgba(255,255,255,.14);
}
.desktop-nav { align-items: center; }
nav a, .mobile-nav a {
  letter-spacing: .01em;
  transition: color .25s ease, opacity .25s ease;
}
nav a:hover, .mobile-nav a:hover,
nav a[aria-current="page"], .mobile-nav a[aria-current="page"] {
  color: #fff !important;
}
nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.mobile-nav {
  background: rgba(17,17,17,.86) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a[aria-current="page"] {
  background: rgba(255,255,255,.08);
}
.close-menu { line-height: 1; }

h1, .hero-content h1, main.with-background h1 {
  letter-spacing: .02em;
}

/* Blocs communs : agenda, presse, contact, bio, vidéos */
.agenda-block,
.hero-content,
article,
.glass-block,
.video-card,
.message-box,
.intro-presse,
.carousel {
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow);
  backdrop-filter: saturate(130%) blur(5px);
  -webkit-backdrop-filter: saturate(130%) blur(5px);
}
.agenda-block,
.hero-content,
article,
.glass-block,
.message-box,
.intro-presse {
  background: var(--site-panel) !important;
}

.agenda-block,
article,
.glass-block,
.video-card,
.photo-card img,
.carousel,
.btn,
button[type="submit"],
.message-box,
.hero-content {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease, opacity .45s ease;
}
.agenda-block:hover,
article:hover,
.glass-block:hover,
.video-card:hover,
.photo-card img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(0,0,0,.34);
  border-color: rgba(255,255,255,.20);
}

.btn,
button[type="submit"],
.message-box a {
  border-radius: 999px !important;
}
.btn:hover,
button[type="submit"]:hover,
.message-box a:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* Apparitions au scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Agenda : prochain événement */
.agenda-block.next-event {
  border-color: rgba(255,255,255,.42);
  background: rgba(0,0,0,.56) !important;
}
.agenda-block.next-event::before {
  content: "Prochain événement";
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Cohérence des fonds de sections plein écran */
main.with-background.full-background,
header {
  background: url('sammy-profil.jpg') center 30% / cover no-repeat !important;
}
main.with-background::before,
header::after {
  background-color: rgba(0,0,0,.62) !important;
}

/* Accueil */
.page-home .hero img[alt^="Signature"] {
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.28));
}
.page-home .hero p { color: rgba(255,255,255,.92); }

/* Médias : préserver le comportement tout en harmonisant */
.page-medias main { width: min(1200px, 100%); }
.page-medias .media-section h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  border-bottom-color: rgba(255,255,255,.22);
}

/* Contact : éviter les débordements recaptcha sur petit écran */
.page-contact .g-recaptcha { max-width: 100%; }

@media (max-width: 768px) {
  :root { --site-nav-height: 70px; }
  body.page {
    background-attachment: scroll;
    background-position: center top;
  }
  nav {
    min-height: var(--site-nav-height);
  }
  .mobile-nav {
    top: var(--site-nav-height) !important;
    height: calc(100vh - var(--site-nav-height)) !important;
  }
  main.with-background.full-background,
  header {
    background-attachment: scroll !important;
    background-position: center top !important;
  }
  .agenda-block:hover,
  article:hover,
  .glass-block:hover,
  .video-card:hover,
  .photo-card img:hover {
    transform: none;
  }
  .agenda-block,
  article,
  .glass-block,
  .hero-content,
  .message-box,
  .intro-presse {
    border-radius: 12px !important;
  }
}

@media (max-width: 480px) {
  body.page-merci { padding: 18px; }
  .message-box { padding: 28px 20px !important; }
  .message-box h1 { font-size: 2.1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   CORRECTION 2026-06-03 — homogénéisation réelle fonds/menu
   Ces règles écrasent volontairement les styles page par page
   qui créaient des différences de zoom, position et responsive.
   ========================================================= */
:root { --site-nav-height: 70px; }
html, body { width: 100%; overflow-x: hidden; }
body.page {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.56), rgba(0,0,0,.56)),
    url('sammy-profil.jpg') center 30% / cover no-repeat fixed !important;
  color: #fff;
  isolation: isolate;
}
body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,.56), rgba(0,0,0,.56)),
    url('sammy-profil.jpg') center 30% / cover no-repeat;
}
body.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0,0,0,.03);
}
body.page > * { position: relative; }

/* On neutralise les backgrounds locaux pour que toutes les pages aient exactement le même cadrage. */
body.page main.with-background.full-background,
body.page header,
body.page main.hero,
body.page main {
  background: transparent !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
body.page main.with-background::before,
body.page header::after {
  background-color: transparent !important;
}

/* Navigation unifiée desktop/tablette/mobile */
body.page nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: var(--site-nav-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  z-index: 3000 !important;
  background: rgba(17,17,17,.94) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}
body.page nav.is-scrolled {
  background: rgba(17,17,17,.985) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
}
body.page .desktop-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
}
body.page nav a,
body.page .mobile-nav a {
  display: inline-block !important;
  color: #f5f5f5 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
body.page nav a[aria-current="page"]::after,
body.page nav a:hover::after { transform: scaleX(1) !important; transform-origin: left !important; }
body.page .menu-toggle {
  display: none !important;
  width: 52px !important;
  height: 52px !important;
  padding: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  cursor: pointer !important;
  border: 0 !important;
  background: transparent !important;
  z-index: 3002 !important;
}
body.page .menu-toggle span {
  display: block !important;
  width: 26px !important;
  height: 2px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
}
body.page .mobile-nav {
  position: fixed !important;
  top: var(--site-nav-height) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: calc(100dvh - var(--site-nav-height)) !important;
  max-height: calc(100dvh - var(--site-nav-height)) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 18px 28px !important;
  background: rgba(17,17,17,.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 2999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) !important;
  pointer-events: none !important;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
}
body.page .mobile-nav.active,
body.page .mobile-nav.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
body.page .mobile-nav a {
  width: 100% !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  text-align: left !important;
  font-size: 1.05rem !important;
}
body.page .mobile-nav a[aria-current="page"] { background: rgba(255,255,255,.08) !important; border-radius: 10px !important; }
body.page .close-menu {
  display: flex !important;
  align-self: flex-end !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  font-family: Arial, sans-serif !important;
}
body.menu-open { overflow: hidden !important; }

/* Mise en page uniforme, sans zoom local de la page Presse */
body.page-presse main.with-background.full-background,
body.page-agenda main.with-background.full-background {
  width: 100% !important;
  min-height: auto !important;
  margin-top: 0 !important;
  padding: 120px 22px 80px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
body.page-bio header {
  width: 100% !important;
  min-height: auto !important;
  margin-top: 0 !important;
  padding: 120px 22px 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.page-contact main,
body.page-medias main {
  padding-top: 120px !important;
  padding-bottom: 80px !important;
}
body.page-home main.hero {
  min-height: 100svh !important;
  height: auto !important;
  padding-top: var(--site-nav-height) !important;
}

/* Presse : largeur confortable, moins d'effet zoom, meilleure lecture */
body.page-presse h1 { margin-top: 0 !important; }
body.page-presse article,
body.page-presse .intro-presse,
body.page-presse .section-title {
  width: min(100%, 860px) !important;
  max-width: 860px !important;
}
body.page-presse article { margin-bottom: 34px !important; }
body.page-presse .press-quote {
  background: rgba(255,255,255,.08) !important;
  border-left: 3px solid rgba(255,255,255,.85) !important;
}

/* Tablette : menu mobile activé plus tôt pour éviter les chevauchements */
@media (max-width: 900px) {
  :root { --site-nav-height: 66px; }
  body.page nav { justify-content: space-between !important; padding: 0 16px !important; }
  body.page .desktop-nav { display: none !important; }
  body.page .menu-toggle { display: flex !important; }
  body.page .mobile-nav { top: var(--site-nav-height) !important; height: calc(100dvh - var(--site-nav-height)) !important; }
  body.page-presse main.with-background.full-background,
  body.page-agenda main.with-background.full-background,
  body.page-bio header,
  body.page-contact main,
  body.page-medias main {
    padding-top: 100px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 64px !important;
  }
  body.page-presse article,
  body.page-presse .intro-presse,
  body.page-presse .section-title,
  .agenda-block,
  .hero-content,
  .contact-grid {
    width: 100% !important;
    max-width: 760px !important;
  }
  body.page-presse .section-title { text-align: left !important; }
}

/* Mobile : même menu, mêmes croix, mise en page stable */
@media (max-width: 600px) {
  :root { --site-nav-height: 62px; }
  body.page::before { background-position: center 30% !important; background-size: cover !important; }
  body.page-presse main.with-background.full-background,
  body.page-agenda main.with-background.full-background,
  body.page-bio header,
  body.page-contact main,
  body.page-medias main {
    padding-top: 90px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 52px !important;
  }
  body.page h1,
  body.page main.with-background h1,
  body.page .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }
  body.page-presse article,
  body.page-presse .intro-presse,
  .agenda-block,
  .hero-content,
  .glass-block,
  .message-box {
    padding: 20px 18px !important;
    border-radius: 12px !important;
  }
  body.page-presse article h2 { font-size: 1.22rem !important; }
  body.page-presse .press-quote p:nth-child(2) { font-size: 1.12rem !important; }
  .contact-grid { gap: 18px !important; }
  .agency-topline { flex-direction: column !important; gap: 12px !important; }
}/* Sélecteur de langue — capsule sobre et homogène */
.lang-switch {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  margin-left: .85rem;
  padding: 5px 9px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.lang-switch a,
.lang-switch .lang-current {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: 0 !important;
  color: rgba(255,255,255,.62) !important;
  text-decoration: none !important;
}
.lang-switch a::after { display: none !important; }
.lang-switch a:hover { color: #fff !important; }
.lang-switch .lang-current {
  color: #fff !important;
  text-shadow: 0 0 14px rgba(255,255,255,.18);
}
.lang-switch .lang-separator {
  color: rgba(255,255,255,.34);
  font-weight: 600;
  transform: translateY(-.02em);
}
.lang-switch-mobile {
  margin: 18px 20px 26px;
  align-self: flex-start;
  padding: 8px 12px;
  font-size: .9rem;
  background: rgba(255,255,255,.07);
}
.lang-switch-mobile a,
.lang-switch-mobile .lang-current {
  font-size: .9rem !important;
}
@media (max-width: 900px) {
  .desktop-nav { display: none !important; }
  .menu-toggle { display: flex !important; }
  nav { justify-content: space-between !important; padding: 0 1rem !important; }
  .mobile-nav a { display: block !important; }
}


/* Correctif navigation : hauteur homogène + sélecteur FR/EN stable sur toutes les pages */
body.page nav {
  height: var(--site-nav-height) !important;
  min-height: var(--site-nav-height) !important;
  box-sizing: border-box !important;
}
body.page .desktop-nav {
  min-height: var(--site-nav-height) !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
body.page .desktop-nav > a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
}
body.page .desktop-nav .lang-switch {
  margin-left: 0 !important;
  flex: 0 0 auto !important;
}
body.page .mobile-nav .lang-switch-mobile {
  display: inline-flex !important;
}
@media (min-width: 901px) and (max-width: 1100px) {
  body.page .desktop-nav { gap: .72rem !important; }
  body.page nav a { font-size: .95rem !important; }
}
