/* ==========================================================================
   GENDARMERIE ABBATIALE — Principauté du Sabourg
   Charte graphique inspirée du logo officiel :
   • bleu marine du fond et de l'écu inférieur
   • bleu ciel d'écu (lumière)
   • or de la mitre (pierres rouges, bleues, vertes)
   • pourpre/violet épiscopal du cadre
   • rouge bordeaux du bandeau "Gendarmeria Abbaziale"
   • blanc pur de la croix
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Italianno&display=swap');

/* ==========================================================================
   VARIABLES — couleurs extraites du logo
   ========================================================================== */
:root {
  /* Bleus (écu et fond) */
  --bleu-marine: #1c3a5e;
  --bleu-marine-fonce: #122842;
  --bleu-nuit: #0d1d33;
  --bleu-ciel-ecu: #8fb4d4;
  --bleu-ciel-clair: #b8d3e6;
  --bleu-ciel-pale: #dde9f1;

  /* Pourpre / violet épiscopal du cadre */
  --pourpre: #6b4f8c;
  --pourpre-clair: #8a6caa;
  --pourpre-fonce: #4a3567;

  /* Rouge bordeaux du bandeau & pierres précieuses */
  --rouge-bandeau: #8b1e2d;
  --rouge-clair: #b53446;
  --rouge-mitre: #c0392b;

  /* Or de la mitre */
  --or: #d4a93c;
  --or-clair: #ecd084;
  --or-fonce: #a87f1d;
  --or-pale: #f4e6b6;

  /* Vert émeraude (pierres mitre) */
  --vert-pierre: #2e7d5b;

  /* Neutres */
  --blanc-pur: #ffffff;
  --ivoire: #f5f1e8;
  --gris-clair: #e5e5e5;
  --gris: #6b6b6b;
  --gris-fonce: #2a2a2a;
  --noir: #0a0a0a;

  /* Typographies */
  --font-display: 'Cinzel', 'Trajan Pro', serif;
  --font-body: 'Cormorant Garamond', 'Garamond', serif;
  --font-script: 'Italianno', cursive;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Largeurs */
  --max-width: 1280px;
  --max-width-narrow: 880px;

  /* Transitions */
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET & BASES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gris-fonce);
  background: var(--ivoire);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--bleu-marine);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--rouge-bandeau); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--bleu-nuit);
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: 0.06em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin-bottom: 1.2rem; }

/* ==========================================================================
   UTILITAIRES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section { padding: var(--space-xl) 0; position: relative; }

.surtitre {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rouge-bandeau);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: inline-block;
  position: relative;
}

.surtitre::before,
.surtitre::after {
  content: '✠';
  display: inline-block;
  margin: 0 0.8rem;
  color: var(--or);
  font-size: 0.85rem;
  vertical-align: middle;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  max-width: 240px;
  gap: 1rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-fonce), transparent);
}

.section-divider .ornament {
  font-size: 1.2rem;
  color: var(--or);
}

/* ==========================================================================
   BARRE DE LANGUE
   ========================================================================== */
.lang-bar {
  background: var(--bleu-nuit);
  color: var(--bleu-ciel-pale);
  padding: 0.5rem 0;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--or-fonce);
}

.lang-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0 2.5rem;
}

.lang-bar-left {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--or-clair);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  align-items: center;
}

.lang-switch a {
  color: var(--bleu-ciel-pale);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid transparent;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--or-clair);
  border-color: var(--or-fonce);
  background: rgba(212, 169, 60, 0.08);
}

.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  vertical-align: middle;
}
.flag-fr { background: linear-gradient(90deg, #002395 33%, #fff 33% 66%, #ed2939 66%); }
.flag-it { background: linear-gradient(90deg, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
.flag-en { background:
  linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%) ,
  linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%) ,
  linear-gradient(0deg, transparent 45%, #fff 45% 55%, transparent 55%) ,
  linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%) ,
  #012169; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, var(--bleu-marine) 0%, var(--bleu-marine-fonce) 100%);
  color: var(--ivoire);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--or);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.site-header::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--or-clair) 30%, var(--or-pale) 50%, var(--or-clair) 70%, transparent 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  max-width: 100%;
  margin: 0 auto;
  gap: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform var(--transition);
}

.brand:hover img { transform: scale(1.04); }

.brand-text { line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--or-clair);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bleu-ciel-clair);
  display: block;
  margin-top: 3px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivoire);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--or);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--or-clair);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.burger {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--or-fonce);
  color: var(--or-clair);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.burger:hover { background: rgba(212,169,60,0.15); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(143, 180, 212, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(107, 79, 140, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, var(--bleu-marine-fonce) 0%, var(--bleu-nuit) 100%);
  color: var(--ivoire);
}

/* Motif damassé subtil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 70px, rgba(212, 169, 60, 0.025) 70px, rgba(212, 169, 60, 0.025) 71px),
    repeating-linear-gradient(-45deg, transparent, transparent 70px, rgba(143, 180, 212, 0.03) 70px, rgba(143, 180, 212, 0.03) 71px);
  pointer-events: none;
}

/* Étoiles dorées discrètes */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(236, 208, 132, 0.5) 1px, transparent 2px),
    radial-gradient(circle at 88% 28%, rgba(236, 208, 132, 0.35) 1px, transparent 2px),
    radial-gradient(circle at 25% 78%, rgba(236, 208, 132, 0.4) 1px, transparent 2px),
    radial-gradient(circle at 78% 68%, rgba(236, 208, 132, 0.3) 1px, transparent 2px),
    radial-gradient(circle at 55% 38%, rgba(236, 208, 132, 0.4) 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 200px 200px, 260px 260px, 320px 320px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  animation: heroIn 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-blason {
  width: clamp(160px, 18vw, 230px);
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.45)) drop-shadow(0 0 40px rgba(212, 169, 60, 0.25));
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: var(--space-sm);
  color: var(--or-pale);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--bleu-ciel-pale);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  padding: 0 1.5rem;
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-fonce), transparent);
}

.hero-subtitle::before { right: 100%; }
.hero-subtitle::after { left: 100%; }

.hero-intro {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-style: italic;
  color: var(--bleu-ciel-clair);
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  line-height: 1.85;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--or);
  background: transparent;
  color: var(--or-clair);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--or);
  color: var(--bleu-marine-fonce);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 169, 60, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--or) 0%, var(--or-fonce) 100%);
  color: var(--bleu-marine-fonce);
  border-color: var(--or-clair);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--or-clair) 0%, var(--or) 100%);
  color: var(--bleu-marine-fonce);
}

.btn-rouge {
  background: linear-gradient(135deg, var(--rouge-bandeau) 0%, #6d1623 100%);
  color: #fff;
  border-color: var(--rouge-clair);
}

.btn-rouge:hover {
  background: linear-gradient(135deg, var(--rouge-clair) 0%, var(--rouge-bandeau) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 30, 45, 0.4);
}

.btn-outline-dark {
  border-color: var(--bleu-marine);
  color: var(--bleu-marine);
}

.btn-outline-dark:hover {
  background: var(--bleu-marine);
  color: var(--ivoire);
  box-shadow: 0 8px 24px rgba(28, 58, 94, 0.3);
}

/* ==========================================================================
   SECTION "QUI SOMMES-NOUS"
   ========================================================================== */
.about {
  background: var(--ivoire);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bleu-marine) 0%, var(--pourpre) 25%, var(--rouge-bandeau) 50%, var(--or) 75%, var(--bleu-marine) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1rem;
  color: var(--bleu-nuit);
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--gris-fonce);
}

.about-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  float: left;
  line-height: 1;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--rouge-bandeau);
  font-weight: 700;
}

.about-image {
  position: relative;
  padding: 2rem;
}

.about-image::before,
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
}

.about-image::before {
  background: var(--pourpre);
  transform: translate(15px, 15px);
  z-index: 0;
}

.about-image::after {
  border: 2px solid var(--or);
  z-index: 2;
  pointer-events: none;
}

.about-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-list {
  list-style: none;
  margin-top: 1.5rem;
}

.values-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  font-size: 1.08rem;
}

.values-list li::before {
  content: '✠';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rouge-bandeau);
  font-size: 1.2rem;
  font-weight: bold;
}

/* ==========================================================================
   COMMANDANT GÉNÉRAL
   ========================================================================== */
.commander {
  background:
    linear-gradient(180deg, rgba(28, 58, 94, 0.97) 0%, rgba(13, 29, 51, 0.97) 100%);
  color: var(--ivoire);
  position: relative;
  overflow: hidden;
}

.commander::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 79, 140, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.commander::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 169, 60, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.commander .section-header h2,
.commander .section-header .surtitre {
  color: var(--or-clair);
}

.commander .section-header .surtitre {
  color: var(--bleu-ciel-pale);
}

.commander-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-lg);
  align-items: start;
  position: relative;
  z-index: 2;
}

.commander-photo {
  position: relative;
}

.commander-photo img {
  width: 100%;
  border: 3px solid var(--or);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  filter: brightness(1.05);
}

.commander-photo::before {
  content: '';
  position: absolute;
  inset: -15px;
  border: 1px solid var(--or-fonce);
  z-index: -1;
}

.commander-titles {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--or-clair);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.commander-text h3 {
  color: var(--or-pale);
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.commander-text .role {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bleu-ciel-pale);
  margin-bottom: 1.5rem;
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--or-fonce);
}

.commander-text p {
  color: var(--bleu-ciel-clair);
  font-size: 1.08rem;
  line-height: 1.8;
}

.commander-quote {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--or);
  background: rgba(255,255,255,0.04);
  font-style: italic;
  color: var(--or-pale);
  font-size: 1.1rem;
}

/* ==========================================================================
   CHEF D'ÉTAT-MAJOR — section compacte, fond ivoire
   ========================================================================== */
.chief-of-staff {
  background:
    linear-gradient(180deg, #ede4d0 0%, var(--ivoire) 100%);
  position: relative;
}

.chief-of-staff::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
}

.chief-of-staff .section-header h2 {
  color: var(--bleu-nuit);
}

.chief-of-staff .section-header .surtitre {
  color: var(--rouge-bandeau);
}

.chief-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-md);
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(212, 169, 60, 0.4);
  padding: var(--space-md);
  position: relative;
  box-shadow: 0 12px 40px rgba(28, 58, 94, 0.12);
}

.chief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--or) 0%, var(--rouge-bandeau) 50%, var(--bleu-marine) 100%);
}

.chief-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid var(--or);
  background: var(--bleu-marine-fonce);
}

.chief-photo::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--pourpre);
  z-index: -1;
  transform: translate(10px, 10px);
}

.chief-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.02);
}

.chief-text { padding-left: 1rem; }

.chief-rank {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rouge-bandeau);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.chief-text h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--bleu-nuit);
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.chief-role {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--bleu-marine);
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 169, 60, 0.35);
}

.chief-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gris-fonce);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .chief-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .chief-photo {
    max-width: 240px;
    margin: 0 auto;
  }
  .chief-text { padding-left: 0; text-align: center; }
}


.divisions-section {
  background:
    linear-gradient(180deg, var(--ivoire) 0%, #ede4d0 100%);
  position: relative;
}

.divisions-intro {
  max-width: 920px;
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-size: 1.12rem;
  color: var(--gris-fonce);
  line-height: 1.85;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.division-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--bleu-ciel-pale) 100%);
  border: 1px solid var(--bleu-ciel-ecu);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pourpre), var(--or), var(--pourpre));
}

.division-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--or);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(28, 58, 94, 0.18);
  border-color: var(--or);
}

.division-card:hover::after { width: 70%; }

.division-emblem {
  width: 150px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.2));
  transition: transform 0.5s var(--transition);
}

.division-card:hover .division-emblem {
  transform: scale(1.06) rotate(-2deg);
}

/* Carte de division cliquable */
a.division-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.division-link {
  display: inline-block;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 58, 94, 0.2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rouge-bandeau);
  font-weight: 600;
  transition: all var(--transition);
}

a.division-card-link:hover .division-link {
  color: var(--bleu-marine);
  letter-spacing: 0.32em;
}

.division-card h3 {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bleu-marine);
  margin-bottom: 0.4rem;
}

.division-card .division-grade {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rouge-bandeau);
  margin-bottom: 1.2rem;
  display: block;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--bleu-ciel-ecu);
}

.division-mission {
  font-size: 1rem;
  color: var(--gris-fonce);
  line-height: 1.7;
  font-style: italic;
}

/* ==========================================================================
   ORGANISATION (subdivisions)
   ========================================================================== */
.organization {
  background: var(--bleu-marine-fonce);
  color: var(--ivoire);
  position: relative;
}

.organization::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(212, 169, 60, 0.04) 80px, rgba(212, 169, 60, 0.04) 81px);
  pointer-events: none;
}

.organization .section-header h2,
.organization .section-header .surtitre {
  color: var(--or-clair);
}

.org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.org-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212, 169, 60, 0.3);
  padding: var(--space-md);
  position: relative;
  transition: all var(--transition);
}

.org-block:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--or);
}

.org-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--or-fonce);
}

.org-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--or) 0%, var(--or-fonce) 100%);
  color: var(--bleu-marine-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: bold;
  border-radius: 4px;
  flex-shrink: 0;
}

.org-block h3 {
  color: var(--or-clair);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.org-block ul {
  list-style: none;
}

.org-block li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(212, 169, 60, 0.15);
  color: var(--bleu-ciel-clair);
  font-size: 1.05rem;
  position: relative;
  padding-left: 1.6rem;
}

.org-block li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--or);
  font-size: 0.7rem;
  top: 1rem;
}

.org-block li:last-child { border-bottom: 0; }

.conservatory-note {
  margin-top: var(--space-md);
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(107, 79, 140, 0.3) 0%, rgba(212, 169, 60, 0.15) 100%);
  border-left: 4px solid var(--or);
  font-style: italic;
  text-align: center;
  color: var(--bleu-ciel-pale);
  font-size: 1.08rem;
}

/* ==========================================================================
   ORG-BLOCK CLIQUABLE (liens vers sous-divisions)
   ========================================================================== */
a.org-block-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

a.org-block-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--or-clair), var(--or-fonce));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--transition);
}

a.org-block-link:hover::before { transform: scaleY(1); }

a.org-block-link:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--or-clair);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.org-block-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 169, 60, 0.25);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 600;
  transition: all var(--transition);
}

a.org-block-link:hover .org-block-cta {
  color: var(--or-clair);
  letter-spacing: 0.32em;
}

/* ==========================================================================
   PAGES SUBDIVISIONS — galerie photos
   ========================================================================== */
.subdivision-intro {
  background: var(--ivoire);
  padding: var(--space-lg) 0;
}

.subdivision-intro .container-narrow {
  text-align: center;
}

.subdivision-intro p.lead-text {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--gris-fonce);
  margin-bottom: 1.5rem;
}

.subdivision-gallery {
  background: linear-gradient(180deg, var(--ivoire) 0%, #ede4d0 100%);
  padding: var(--space-xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 1080px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bleu-marine-fonce);
  border: 2px solid var(--or);
  padding: 10px;
  transition: all var(--transition);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--pourpre);
  z-index: -1;
  transform: translate(10px, 10px);
  transition: transform var(--transition);
}

.gallery-item:hover::before { transform: translate(14px, 14px); }

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--or-clair);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--transition);
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 1rem 1.3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 29, 51, 0.95) 100%);
  color: var(--or-pale);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Concert à l'Abbaye (sous-division académique) ---- */
.concert-showcase {
  background:
    linear-gradient(180deg, var(--bleu-nuit) 0%, var(--bleu-marine-fonce) 100%);
  color: var(--ivoire);
  padding: var(--space-xl) 0;
}
.concert-showcase .section-header h2,
.concert-showcase .section-header .surtitre {
  color: var(--or-clair);
}
.concert-lead {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  color: var(--bleu-ciel-clair);
  font-size: 1.05rem;
  line-height: 1.85;
}
.concert-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-lg) auto 0;
}
.concert-media video {
  display: block;
  aspect-ratio: 9 / 16;       /* portrait phone footage — pin the box ratio */
  width: min(100%, 338px);    /* so it never inherits the 3:4 poster ratio  */
  height: auto;
  object-fit: cover;          /* video fills exactly; poster is centre-cropped */
  border: 3px solid var(--or);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.concert-caption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-pale);
  text-align: center;
}
.concert-stills {
  margin-top: var(--space-lg);
}
/* stills sit on the dark section: give the tiles a lighter plinth so the
   navy padding doesn't melt into the background */
.concert-stills.gallery-item,
.concert-stills .gallery-item {
  background: var(--bleu-marine);
}

.subdivision-cards {
  background: var(--bleu-marine-fonce);
  color: var(--ivoire);
  padding: var(--space-xl) 0;
  position: relative;
}

.subdivision-cards::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(212, 169, 60, 0.04) 80px, rgba(212, 169, 60, 0.04) 81px);
  pointer-events: none;
}

.subdivision-cards .section-header h2,
.subdivision-cards .section-header .surtitre {
  color: var(--or-clair);
}

.entities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 2;
}

.entity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212, 169, 60, 0.3);
  padding: var(--space-md);
  transition: all var(--transition);
  position: relative;
}

.entity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.entity-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--or);
  transform: translateY(-4px);
}

.entity-card:hover::before { opacity: 1; }

.entity-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--or) 0%, var(--or-fonce) 100%);
  color: var(--bleu-marine-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}

.entity-card h3 {
  color: var(--or-clair);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.entity-card p {
  color: var(--bleu-ciel-clair);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Placeholder galerie en attente */
.photo-placeholder {
  background: linear-gradient(135deg, var(--bleu-marine-fonce) 0%, var(--pourpre-fonce) 100%);
  border: 2px dashed var(--or-fonce);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--ivoire);
  position: relative;
}

.photo-placeholder::before,
.photo-placeholder::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--or);
}

.photo-placeholder::before {
  top: -2px;
  left: -2px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.photo-placeholder::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 3px solid;
  border-right: 3px solid;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: grayscale(1);
  opacity: 0.6;
}

.photo-placeholder h3 {
  color: var(--or-clair);
  margin-bottom: 1rem;
}

.photo-placeholder p {
  color: var(--bleu-ciel-clair);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
}


/* ==========================================================================
   STATUT / VOLONTARIAT — CTA bandeau
   ========================================================================== */
.cta-band {
  padding: var(--space-lg) 0;
  background:
    linear-gradient(135deg, var(--rouge-bandeau) 0%, #6d1623 50%, var(--rouge-bandeau) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,0.03) 30px, rgba(255,255,255,0.03) 31px);
  pointer-events: none;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.cta-band p {
  color: rgba(255,255,255,0.95);
  font-size: 1.15rem;
  line-height: 1.8;
}

.cta-band-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-band-buttons .btn {
  background: #fff;
  color: var(--rouge-bandeau);
  border-color: #fff;
}

.cta-band-buttons .btn:hover {
  background: var(--or-pale);
  color: var(--bleu-marine-fonce);
  border-color: var(--or-pale);
}

.cta-band-buttons .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.cta-band-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ==========================================================================
   VOLONTARIAT — page complète
   ========================================================================== */
.volunteer-section {
  background: var(--ivoire);
}

.volunteer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.volunteer-text h2 { margin-bottom: 1.5rem; }

.volunteer-text p {
  font-size: 1.12rem;
  line-height: 1.85;
}

.volunteer-text .highlight {
  background: linear-gradient(180deg, transparent 60%, var(--or-pale) 60%);
  padding: 0 4px;
  font-weight: 600;
}

.chaplain-card {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border: 1px solid var(--bleu-ciel-ecu);
  border-top: 4px solid var(--pourpre);
  padding: var(--space-md);
  position: relative;
}

.chaplain-card h3 {
  color: var(--pourpre-fonce);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.chaplain-card .salutation {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--rouge-bandeau);
  margin-bottom: 1rem;
}

.chaplain-card p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.85;
}

.chaplain-card .signature {
  margin-top: 1.5rem;
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--pourpre-fonce);
  text-align: right;
}

/* ==========================================================================
   PAGE DIVISION MER — Yacht Club
   ========================================================================== */

/* Section Yacht Club + emblèmes */
.yacht-club {
  background:
    linear-gradient(180deg, var(--bleu-marine-fonce) 0%, var(--bleu-nuit) 100%);
  color: var(--ivoire);
  position: relative;
  overflow: hidden;
}

.yacht-club::before {
  content: '⚓';
  position: absolute;
  font-size: 22rem;
  color: var(--or);
  opacity: 0.03;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: serif;
}

.yacht-club .section-header h2,
.yacht-club .section-header .surtitre { color: var(--or-clair); }
.yacht-club .section-header .surtitre { color: var(--bleu-ciel-pale); }

.yacht-emblems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
}

.yacht-emblem {
  text-align: center;
}

.yacht-emblem img {
  max-height: 180px;
  width: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
  margin: 0 auto;
}

.yacht-emblem figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-clair);
}

.yacht-emblems-separator {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--or);
  line-height: 1;
  opacity: 0.7;
}

.yacht-intro p.lead-text {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--bleu-ciel-clair);
  margin-bottom: 1.4rem;
  text-align: center;
}

.yacht-intro strong { color: var(--or-clair); }

/* Catégories de membres */
.memberships {
  background:
    linear-gradient(180deg, var(--ivoire) 0%, #ede4d0 100%);
  position: relative;
}

.memberships::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--or), var(--rouge-bandeau), var(--or), transparent);
}

.memberships-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1180px;
  margin: 0 auto;
}

.membership-card {
  background: #fff;
  border: 1px solid rgba(212, 169, 60, 0.4);
  padding: var(--space-md) var(--space-md) 0;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.membership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bleu-marine), var(--or), var(--bleu-marine));
}

.membership-card:hover {
  transform: translateY(-6px);
  border-color: var(--or);
  box-shadow: 0 24px 60px rgba(28, 58, 94, 0.18);
}

.membership-featured {
  border: 2px solid var(--or);
  background: linear-gradient(180deg, #fff 0%, #fff8e8 100%);
  position: relative;
}

.membership-featured::before {
  height: 6px;
  background: linear-gradient(90deg, var(--or-fonce), var(--or-clair), var(--or-fonce));
}

.membership-rank {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rouge-bandeau);
  margin-bottom: 1.2rem;
  display: inline-block;
  font-weight: 600;
}

.membership-card h3 {
  color: var(--bleu-nuit);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.membership-desc {
  font-size: 1rem;
  color: var(--gris-fonce);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.membership-details {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-top: 1px solid rgba(212, 169, 60, 0.25);
  padding-top: 1rem;
}

.membership-details li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  color: var(--gris-fonce);
}

.membership-details li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--or);
  font-size: 0.7rem;
  top: 0.5rem;
}

.membership-price {
  margin: auto -2rem 0;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, var(--bleu-marine) 0%, var(--bleu-marine-fonce) 100%);
  color: var(--or-pale);
  text-align: center;
}

.price-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--or-clair);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.price-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bleu-ciel-pale);
  margin-top: 0.4rem;
}

.price-extra {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--or-pale);
  opacity: 0.85;
  margin-top: 0.4rem;
}

/* Activités */
.activities {
  background: var(--bleu-marine-fonce);
  color: var(--ivoire);
  position: relative;
}

.activities::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(212, 169, 60, 0.04) 80px, rgba(212, 169, 60, 0.04) 81px);
  pointer-events: none;
}

.activities .section-header h2 { color: var(--or-clair); }
.activities .section-header .surtitre { color: var(--bleu-ciel-pale); }

.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.activity-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 169, 60, 0.3);
  padding: var(--space-md);
  transition: all var(--transition);
}

.activity-block:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--or);
}

.activity-icon {
  font-size: 2.5rem;
  color: var(--or);
  margin-bottom: 1rem;
  line-height: 1;
}

.activity-block h3 {
  color: var(--or-clair);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 169, 60, 0.3);
}

.activity-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-block li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 169, 60, 0.12);
  padding-left: 1.4rem;
  position: relative;
}

.activity-block li:last-child { border-bottom: none; }

.activity-block li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: var(--or);
  font-size: 0.7rem;
}

.activity-block li strong {
  display: block;
  color: var(--or-pale);
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.activity-block li span {
  display: block;
  color: var(--bleu-ciel-clair);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Valeurs / Vision */
.yacht-values {
  background:
    linear-gradient(180deg, var(--ivoire) 0%, #ede4d0 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1180px;
  margin: 0 auto;
}

.value-block {
  text-align: center;
  padding: var(--space-md);
  background: #fff;
  border: 1px solid rgba(212, 169, 60, 0.3);
  transition: all var(--transition);
  position: relative;
}

.value-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--or);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.value-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 58, 94, 0.15);
  border-color: var(--or);
}

.value-block:hover::after { width: 70%; }

.value-symbol {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--or) 0%, var(--or-fonce) 100%);
  color: var(--bleu-marine-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: 50%;
  font-weight: bold;
}

.value-block h3 {
  color: var(--bleu-nuit);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.value-block p {
  color: var(--gris-fonce);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
}

@media (max-width: 1024px) {
  .memberships-grid { grid-template-columns: 1fr; max-width: 480px; }
  .values-grid { grid-template-columns: 1fr; max-width: 480px; }
  .activities-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .yacht-emblems { flex-direction: column; gap: 1.5rem; }
  .yacht-emblems-separator { display: none; }
  .yacht-emblem img { max-height: 140px; }
}


.site-footer {
  background: var(--bleu-nuit);
  color: var(--bleu-ciel-pale);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pourpre) 0%, var(--rouge-bandeau) 25%, var(--or) 50%, var(--rouge-bandeau) 75%, var(--pourpre) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-brand img {
  width: 90px;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.footer-brand h4 {
  color: var(--or-clair);
  font-size: 1rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.4rem;
}

.footer-brand .footer-tagline {
  color: var(--bleu-ciel-clair);
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--bleu-ciel-pale);
  opacity: 0.85;
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 169, 60, 0.25);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  font-size: 0.98rem;
  color: var(--bleu-ciel-pale);
  opacity: 0.85;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--or-clair);
  opacity: 1;
  padding-left: 6px;
}

.footer-contact {
  font-size: 0.95rem;
  line-height: 1.85;
}

.footer-contact strong {
  display: block;
  color: var(--or-clair);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.footer-contact strong:first-child { margin-top: 0; }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(212, 169, 60, 0.15);
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.75;
}

.footer-bottom p { margin-bottom: 0.4rem; }

.footer-cf {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--or-clair);
  opacity: 0.9;
}

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */
.page-hero {
  background:
    linear-gradient(180deg, rgba(28, 58, 94, 0.95) 0%, rgba(13, 29, 51, 0.97) 100%),
    radial-gradient(ellipse at center, rgba(143, 180, 212, 0.15) 0%, transparent 60%);
  color: var(--ivoire);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-bottom: 4px solid var(--or);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-clair), transparent);
}

.page-hero h1 {
  color: var(--or-pale);
  margin-bottom: 1rem;
}

.page-hero .surtitre { color: var(--bleu-ciel-pale); }

.page-hero .lead {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--bleu-ciel-clair);
  max-width: 720px;
  margin: 1rem auto 0;
  line-height: 1.8;
}

.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--bleu-ciel-clair); }
.breadcrumb a:hover { color: var(--or-clair); }
.breadcrumb .separator { margin: 0 0.6rem; opacity: 0.5; }

.content-area {
  padding: var(--space-lg) 0;
  background: var(--ivoire);
}

.content-area h2 {
  margin: var(--space-md) 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--or);
  display: inline-block;
  padding-right: 2rem;
}

.content-area h3 {
  margin: var(--space-md) 0 0.8rem;
  color: var(--rouge-bandeau);
}

.content-area p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.content-area ul:not(.values-list) {
  list-style: none;
  margin-left: 1rem;
  margin-bottom: 1.5rem;
}

.content-area ul:not(.values-list) li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.content-area ul:not(.values-list) li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--or);
  font-size: 0.7rem;
  top: 0.55rem;
}

/* ==========================================================================
   ANIMATIONS scroll-reveal
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .commander-card { grid-template-columns: 1fr; gap: var(--space-md); }
  .commander-photo { max-width: 360px; margin: 0 auto; }
  .org-grid { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-buttons { flex-direction: row; flex-wrap: wrap; }
  .volunteer-grid { grid-template-columns: 1fr; }
  .divisions-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 1500px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bleu-nuit);
    border-bottom: 2px solid var(--or);
    padding: var(--space-sm) 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  }
  .main-nav.open ul {
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    gap: 0;
    align-items: stretch;
  }
  .main-nav.open li { 
    width: 100%; 
    padding: 0.7rem 0; 
    border-bottom: 1px solid rgba(212, 169, 60, 0.15); 
  }
  .main-nav.open a { display: block; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .header-inner { padding: 1rem; gap: 1rem; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand img { height: 56px; }
  .brand-name { font-size: 0.85rem; white-space: normal; }
  .brand-tagline { font-size: 0.85rem; white-space: normal; }
  .brand-text { min-width: 0; }

  .hero { min-height: auto; padding: var(--space-lg) var(--space-md); }
  .hero-blason { width: 140px; }

  .footer-grid { grid-template-columns: 1fr; }

  section { padding: var(--space-lg) 0; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .lang-bar-left { display: none; }
  .cta-band-buttons { flex-direction: column; }
}
