/* ============================================================
   BAGAD DE VANNES MELINERION — Charte graphique officielle
   Couleurs : #1C233A (navy) · #91B7C8 (bleu acier) · #FFFFFF
   Police   : Raleway (Extra Light titres / Regular corps / Bold sous-titres)
   Titres   : MAJUSCULES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;1,300&display=swap');

/* ===== TOKENS ===== */
:root {
  --navy:        #1C233A;
  --navy-light:  #253050;
  --navy-card:   #1f2a42;
  --blue:        #91B7C8;
  --blue-light:  #aecfdc;
  --blue-dim:    rgba(145,183,200,.12);
  --blue-border: rgba(145,183,200,.25);
  --blue-hover:  rgba(145,183,200,.45);
  --white:       #FFFFFF;
  --off-white:   #f0f4f7;
  --muted:       #8fa3b4;
  --subtle:      #4d6070;

  --font: 'Raleway', system-ui, sans-serif;

  --max-w: 1120px;
  --radius-sm: 3px;
  --radius:    8px;
  --radius-lg: 14px;
  --transition: 200ms ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 640px) { .container { padding: 0 1rem; } }

/* ===== NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28,35,58,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-links > li > span {
  display: block;
  color: var(--muted);
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > span:hover {
  color: var(--white);
  background: var(--blue-dim);
}

/* ===== DROPDOWN — FIX gap bug with ::before pseudo-element ===== */
/* Hover zone starts at top: 100% (no gap). Visual box starts 8px lower via ::before.
   Mouse stays over the element during the 8px transparent padding — no hover loss. */
.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 220px;
  z-index: 100;
  list-style: none;
}
.nav-links .dropdown::before {
  content: '';
  position: absolute;
  top: 8px; left: 0; right: 0; bottom: 0;
  background: #1a2236;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  z-index: -1;
}
.nav-links li:hover .dropdown { display: block; }
.nav-links .dropdown li a {
  display: block;
  position: relative;
  z-index: 1;
  color: var(--muted);
  padding: .6rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-sm);
}
.nav-links .dropdown li a:hover {
  color: var(--white);
  background: var(--blue-dim);
}

/* CTA nav item */
.nav-cta > a {
  color: var(--navy) !important;
  background: var(--blue) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  padding: .4rem 1rem !important;
}
.nav-cta > a:hover { background: var(--blue-light) !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--white); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #141d30;
    border-bottom: 1px solid var(--blue-border);
    padding: .75rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a,
  .nav-links > li > span { padding: .65rem 1.5rem; border-radius: 0; width: 100%; }
  .nav-links .dropdown { position: static; padding-top: 0; display: none !important; background: #101828; border: none; box-shadow: none; border-radius: 0; padding-left: 1rem; }
  .nav-links .dropdown::before { display: none; }
  .nav-links li.open .dropdown { display: block !important; }
  .nav-cta > a { margin: .4rem 1.5rem; display: inline-block !important; border-radius: var(--radius-sm) !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 6rem 1.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--blue-border);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(145,183,200,.1) 0%, transparent 65%), var(--navy);
}

.hero-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue-hover);
  padding: .3rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 200;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== STATS ===== */
.stat-row {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--blue-border);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  color: var(--blue);
  letter-spacing: .04em;
  display: block;
  line-height: 1;
}
.stat-desc {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: .4rem;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--navy); }
.btn-primary:hover { background: var(--blue-light); color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(145,183,200,.3); }
.btn-outline { border: 1px solid var(--blue-hover); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* ===== PAGE TITLE ===== */
.page-title {
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--blue-border);
  background: linear-gradient(180deg, rgba(145,183,200,.06) 0%, transparent 100%);
}
.page-title .breadcrumb {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1rem;
}
.page-title .breadcrumb a { color: var(--subtle); }
.page-title .breadcrumb a:hover { color: var(--blue); }
.page-title h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
}

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--blue-border); }

.section-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

section h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 200;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

section h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 2rem 0 .75rem;
}

section p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 68ch;
  line-height: 1.8;
  font-weight: 300;
}

section ul { list-style: none; margin: 1rem 0; }
section ul li {
  color: var(--muted);
  padding: .6rem 0 .6rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--blue-border);
  font-weight: 300;
}
section ul li:first-child { border-top: 1px solid var(--blue-border); }
section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .7;
}

/* ===== CARDS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.news-card {
  background: var(--navy-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.news-card:hover { border-color: var(--blue-hover); transform: translateY(-3px); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card-body { padding: 1.5rem; }
.news-card-body h3 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 .75rem;
}
.news-card-body p { font-size: .875rem; color: var(--muted); margin: 0; max-width: none; font-weight: 300; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--blue-border);
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-grid img:hover { border-color: var(--blue-hover); transform: scale(1.02); }

/* ===== PARTNERS ===== */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 2.5rem;
  background: var(--navy-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
}
.partners-grid img {
  height: 50px; width: auto;
  filter: grayscale(100%) brightness(1.8) opacity(.5);
  transition: filter var(--transition);
}
.partners-grid img:hover { filter: grayscale(0%) brightness(1) opacity(1); }

/* ===== VIDEOS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--blue-border);
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-label { margin-top: .5rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }

/* ===== CONTACT BLOCK ===== */
.contact-block {
  background: var(--navy-card);
  border: 1px solid var(--blue-border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.contact-block:hover { border-color: var(--blue-hover); }
.contact-block h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); margin: 0 0 1rem;
}
.contact-block p { font-size: .875rem; color: var(--muted); margin-bottom: .4rem; max-width: none; font-weight: 300; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: rgba(145,183,200,.08);
  border: 1px solid var(--blue-hover);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.highlight-box p { color: var(--off-white); max-width: none; }

/* ===== TABLE ===== */
.table-simple { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .875rem; }
.table-simple th {
  background: rgba(145,183,200,.1);
  border: 1px solid var(--blue-border);
  color: var(--blue); font-weight: 700;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  padding: .75rem 1rem; text-align: left;
}
.table-simple td { padding: .75rem 1rem; border-bottom: 1px solid var(--blue-border); color: var(--muted); font-weight: 300; }
.table-simple tr:last-child td { border-bottom: none; }
.table-simple tr:hover td { background: var(--blue-dim); }

/* ===== FOOTER ===== */
footer {
  background: #131926;
  border-top: 1px solid var(--blue-border);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-brand {
  font-size: 1.6rem; font-weight: 200; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); margin-bottom: .3rem;
}
.footer-tagline {
  font-size: .65rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--blue-border);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-col h4 {
  font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.footer-col p, .footer-col address {
  font-size: .85rem; color: var(--subtle); line-height: 1.9; font-style: normal; font-weight: 300;
}
.footer-col a { color: var(--muted); font-size: .85rem; font-weight: 300; }
.footer-col a:hover { color: var(--blue); }

.footer-nav { list-style: none; }
.footer-nav li + li { margin-top: .4rem; }

.footer-compliance {
  background: rgba(145,183,200,.05);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: .75rem;
  color: var(--subtle);
  line-height: 2;
  font-weight: 300;
}
.footer-compliance strong { color: var(--muted); font-weight: 600; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* ===== UTIL ===== */
.text-muted { color: var(--muted); font-size: .875rem; font-weight: 300; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
