/* ===== A.G.I.R - styles COMMUNS (nav, footer, base) ===== */

/* ══════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════ */
:root {
  --rouge:   #e63329;
  --jaune:   #f5c200;
  --bleu:    #1a6bbf;
  --vert:    #2da84a;
  --noir:    #080808;
  --blanc:   #ffffff;
  --creme:   #f7f5f0;
  --or:      #c9a227;
  --gris:    #888;
  --texte:   #111;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--blanc); color: var(--texte); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }


/* ══════════════════════════════════════════
   BARRE COULEUR AGIR
══════════════════════════════════════════ */
.agir-bar { display: flex; height: 4px; width: 100%; }
.agir-bar span { flex: 1; }
.agir-bar span:nth-child(1) { background: var(--rouge); }
.agir-bar span:nth-child(2) { background: var(--jaune); }
.agir-bar span:nth-child(3) { background: var(--bleu); }
.agir-bar span:nth-child(4) { background: var(--vert); }


/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  height: 70px;
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.nav-logo img { height: 42px; display: block; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.nav-links a:hover { color: var(--blanc); }
.nav-links .nav-cta {
  background: var(--rouge); color: var(--blanc) !important;
  padding: 0.5rem 1.4rem; font-weight: 600;
}
.nav-links .nav-cta:hover { background: #c42820; }
.nav-links .nav-brochure {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75) !important;
  padding: 0.45rem 1.1rem;
}
.nav-links .nav-brochure:hover { border-color: var(--blanc); color: var(--blanc) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--blanc); display: block; transition: all 0.3s; }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; background: var(--noir); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-size: 1.6rem; font-family: var(--font-display); font-weight: 700; color: var(--blanc); }
.mobile-menu a:hover { color: var(--rouge); }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--blanc); font-size: 2rem; cursor: pointer; }


/* ══════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════
   SECTION COMMUNE
══════════════════════════════════════════ */
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--rouge);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.1;
  color: var(--texte);
}
.section-title.white { color: var(--blanc); }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--noir);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.75rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-logo img { height: 28px; opacity: 0.4; }



/* ===== Responsive commun (nav + footer) ===== */
@media (max-width: 768px){
  nav{ padding:0 1.5rem; }
  .nav-links{ display:none; }
  .hamburger{ display:flex; }
  footer{ padding:1.5rem; flex-direction:column; align-items:flex-start; }
}

/* ===== Pages intérieures (hors accueil) ===== */
.agir-bar-top{ position:fixed; top:0; left:0; right:0; z-index:101; }
body.interior{ background:var(--creme); padding-top:74px; }
body.interior nav{ background:var(--noir); top:4px; }

/* ===== Mise en avant menu : Exclu A.G.I.R ===== */
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.22); align-self: center; padding: 0; }
.nav-exclu { position: relative; }
.nav-exclu-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--or) !important; font-weight: 600 !important;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-exclu-link:hover { color: #e0be55 !important; }
.nav-exclu-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--or); flex-shrink: 0; animation: navPulse 1.8s ease-in-out infinite; }
@keyframes navPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,162,39,0.55); }
  50%     { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(201,162,39,0); }
}
.nav-exclu-chev { transition: transform 0.25s; }
.nav-exclu:hover .nav-exclu-chev { transform: rotate(180deg); }
.nav-exclu-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 290px; background: #0f1533; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 0.6rem;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 120;
}
.nav-exclu:hover .nav-exclu-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-exclu-head { display: block; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or); padding: 0.5rem 0.7rem 0.6rem; }
.nav-exclu-item { display: block; padding: 0.6rem 0.7rem; border-radius: 8px; transition: background 0.2s; }
.nav-exclu-item:hover { background: rgba(255,255,255,0.06); }
.nav-exclu-item strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.nav-exclu-item span { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 1px; }

/* Mise en avant dans le menu mobile */
.mobile-exclu { margin-top: 1rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; display: flex; flex-direction: column; gap: 0.8rem; }
.mobile-exclu-head { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or); }
.mobile-exclu a { font-family: var(--font-display); font-size: 1.15rem !important; font-weight: 700; color: var(--or) !important; }
@media (prefers-reduced-motion: reduce){ .nav-exclu-dot { animation: none; } }
.mobile-exclu a small { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.45); letter-spacing: normal; margin-top: 2px; }

.mobile-exclu a.m-actu { font-family: 'DM Sans', system-ui, sans-serif; font-size: 1.4rem !important; font-weight: 600; color: #fff !important; margin-bottom: 0.7rem; }

/* Footer collé en bas (sticky footer) */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; width: 100%; }
footer { flex-shrink: 0; }

/* Sélecteur de langue */
.nav-lang { display:inline-flex; align-items:center; gap:8px; margin-left:4px; }
.nav-lang a { font-size:0.78rem; font-weight:700; letter-spacing:0.03em; color:rgba(255,255,255,0.5); }
.nav-lang a.on, .nav-lang a:hover { color:#fff; }
.mobile-lang { margin-top:1.6rem; display:flex; gap:16px; justify-content:center; }
.mobile-lang a { font-size:1.05rem; font-weight:700; color:rgba(255,255,255,0.5); }
.mobile-lang a.on, .mobile-lang a:hover { color:#fff; }

/* Libellés de groupe dans la navigation */
.nav-group-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-right: -14px; align-self: center; }
@media (max-width: 1200px){ .nav-group-label { display: none; } }

/* ===== Passe responsive - global ===== */
/* Images et médias ne débordent jamais */
img, video, svg, iframe { max-width: 100%; }
/* Mots très longs (URLs, noms) coupés proprement */
p, li, h1, h2, h3, td { overflow-wrap: break-word; }

@media (max-width: 768px){
  .mobile-menu a { padding: 0.55rem 0; }
  footer { gap: 1rem; }
}

/* Texte lu par Google et les lecteurs d'écran, invisible à l'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
