/* ===== ILMA — Charte Graphique ===== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --bordeaux:   #4C283C;
  --bordeaux-light: #5a3049;
  --mauve:      #B1A1AA;
  --gris-clair: #D9D0D5;
  --bleu:       #7A99BA;
  --nuit:       #001126;
  --blanc:      #FAF8F9;
  --texte:      #2a1a22;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--blanc);
  color: var(--texte);
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 76px;
  background: rgba(250, 248, 249, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 40, 60, 0.1);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 4px 30px rgba(76, 40, 60, 0.12);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

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

.nav-logo-text {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  color: var(--bordeaux);
  letter-spacing: 0.12em;
}

.nav-articles-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Anton', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blanc);
  background: var(--bordeaux);
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  box-shadow: 0 2px 14px rgba(76,40,60,0.28);
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-articles-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}
.nav-articles-btn:hover {
  background: var(--bordeaux-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(76,40,60,0.38);
}

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

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texte);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--bordeaux);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--bordeaux); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--bordeaux); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--bordeaux);
  color: var(--blanc) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--bordeaux-light) !important; color: var(--blanc) !important; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bordeaux);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--nuit);
  padding-top: 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(76,40,60,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(122,153,186,0.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 76px);
}

.hero-text { animation: fadeUp 0.9s ease both; }

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  border: 1px solid rgba(177,161,170,0.4);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--blanc);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-title span { color: var(--mauve); }

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(217, 208, 213, 0.85);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

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

.btn-primary {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--blanc);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--bordeaux-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(76,40,60,0.28); }

.btn-secondary {
  display: inline-block;
  color: var(--gris-clair);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(217,208,213,0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-secondary:hover { border-color: var(--mauve); color: var(--blanc); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-logo-wrap {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(76, 40, 60, 0.25);
  border: 1px solid rgba(177, 161, 170, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(177, 161, 170, 0.1);
}

.hero-logo-wrap img {
  width: 180px;
  opacity: 0.95;
}

/* Hero avec photo de mission */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(76,40,60,0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid rgba(177,161,170,0.2);
  z-index: 0;
  pointer-events: none;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-photo-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(217,208,213,0.85);
  background: rgba(0,17,38,0.6);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-left: 2px solid var(--bordeaux);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bordeaux);
  padding: 2.5rem 4rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 1rem 2rem;
  border-right: 1px solid rgba(177,161,170,0.2);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  color: var(--blanc);
  letter-spacing: 0.05em;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: 0.25rem;
}

/* ===== PAGE HEADER (pages internes) ===== */
.page-header {
  background: var(--nuit);
  padding: 6rem 4rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(76,40,60,0.5) 0%, transparent 70%);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--blanc);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1rem;
  color: rgba(217, 208, 213, 0.8);
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 4rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--bordeaux);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--bordeaux);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.9;
  color: #5a4a52;
  font-weight: 300;
  max-width: 680px;
}

/* ===== VALEURS ===== */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
}

.valeur-card {
  background: var(--blanc);
  padding: 2.5rem;
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(76,40,60,0.06);
}

.valeur-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--bordeaux);
  transition: height 0.4s cubic-bezier(0.22,1,0.36,1);
}

.valeur-card:hover {
  box-shadow: 0 24px 60px rgba(76,40,60,0.15);
  transform: translateY(-7px);
}

.valeur-card:hover::before { height: 100%; }

.valeur-number {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  color: var(--bordeaux);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.valeur-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.2rem;
  color: var(--bordeaux);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.valeur-text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #6a5a62;
  font-weight: 400;
}

/* ===== QUI SOMMES NOUS — MISSION ===== */
.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 5rem;
}

.mission-visual {
  position: relative;
}

.mission-block {
  background: var(--bordeaux);
  padding: 3.5rem;
  color: var(--blanc);
  position: relative;
}

.mission-block::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--mauve);
  opacity: 0.3;
  z-index: -1;
}

.mission-block-quote {
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.mission-block-text {
  font-size: 0.9rem;
  line-height: 1.9;
  font-weight: 300;
  opacity: 0.9;
}

/* ===== PROJETS CARDS ===== */
.projets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.projet-card {
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 20px rgba(76,40,60,0.07);
}

.projet-card-photo {
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.projet-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.projet-card:hover .projet-card-photo img {
  transform: scale(1.06);
}

.projet-card:hover {
  box-shadow: 0 28px 70px rgba(76,40,60,0.2);
  transform: translateY(-10px);
}

.projet-card-header {
  background: var(--bordeaux);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.projet-card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mauve), transparent);
}

.projet-card-flag {
  font-size: 2.5rem;
}

.projet-card-country {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
  text-align: right;
}

.projet-card-body {
  padding: 2.5rem;
}

.projet-card-name {
  font-family: 'Anton', sans-serif;
  font-size: 1.8rem;
  color: var(--bordeaux);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.projet-card-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1.2rem;
}

.projet-card-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: #6a5a62;
}

.projet-card-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pill {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--mauve);
  color: var(--bordeaux);
  border-radius: 1px;
}

/* ===== SECTION PHOTO BLOCK ===== */
.section-photo-block {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 480px;
}

.section-photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.section-photo-block:hover img {
  transform: scale(1.04);
}

.section-photo-block-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(42,18,32,0.85) 0%, transparent 100%);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mauve);
}

/* ===== ACTIONS ===== */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
}

.action-card {
  background: var(--blanc);
  padding: 3rem;
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(76,40,60,0.06);
}

.action-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--bordeaux);
  transition: height 0.4s;
  z-index: 0;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(76,40,60,0.1);
  border-color: rgba(76,40,60,0.18);
}
.action-card:hover::after { height: 4px; }

.action-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
  display: block;
  color: var(--bordeaux);
}
.action-card-icon svg { width: 100%; height: 100%; }

.action-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  color: var(--bordeaux);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--gris-clair);
}

.action-card-text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #6a5a62;
}

.action-card-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bordeaux);
  border-bottom: 1px solid var(--bordeaux);
  padding-bottom: 2px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bordeaux);
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'ILMA';
  position: absolute;
  font-family: 'Anton', sans-serif;
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1rem;
  display: block;
}

.cta-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--blanc);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.cta-text {
  font-size: 1rem;
  color: rgba(217, 208, 213, 0.85);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.btn-light {
  display: inline-block;
  background: var(--blanc);
  color: var(--bordeaux);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: opacity 0.3s, transform 0.2s;
}
.btn-light:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== FOOTER ===== */
footer {
  background: var(--nuit);
  padding: 4rem;
  color: var(--mauve);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  text-decoration: none;
}

.footer-logo img { height: 36px; }

.footer-logo-text {
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  color: var(--blanc);
  letter-spacing: 0.12em;
}

.footer-brand-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(177, 161, 170, 0.7);
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: rgba(177, 161, 170, 0.7);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--mauve); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(177, 161, 170, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(177, 161, 170, 0.4);
  letter-spacing: 0.08em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== PHOTO GALLERIES ===== */
.photo-gallery {
  display: grid;
  gap: 4px;
  margin-top: 2rem;
}

.photo-gallery.layout-featured {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 260px 260px;
}

.photo-gallery.layout-cols3 {
  grid-template-columns: repeat(3, 1fr);
  height: 280px;
}

.photo-gallery.layout-cols2 {
  grid-template-columns: 1fr 1fr;
  height: 320px;
}

.photo-item {
  overflow: hidden;
  position: relative;
  background: var(--gris-clair);
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(76,40,60,0);
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.photo-item:hover img {
  transform: scale(1.04);
}

.photo-item:hover::after {
  background: rgba(76,40,60,0.12);
}

.photo-item.span-row {
  grid-row: span 2;
}

.gallery-caption {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: 0.75rem;
  text-align: right;
  border-top: 1px solid var(--gris-clair);
  padding-top: 0.75rem;
}

/* ===== FLAGS ===== */
.flag-img {
  display: block;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  object-fit: cover;
  flex-shrink: 0;
}
.flag-img.flag-sm  { height: 22px; width: auto; }
.flag-img.flag-md  { height: 36px; width: auto; }
.flag-img.flag-lg  { height: 52px; width: auto; }
.flag-img.flag-xl  { height: 72px; width: auto; }
.projet-card-flag { line-height: 0; }

/* ===== MARQUEE TICKER ===== */
.ticker-band {
  background: var(--nuit);
  border-top: 1px solid rgba(177,161,170,0.08);
  border-bottom: 1px solid rgba(177,161,170,0.08);
  overflow: hidden;
  padding: 0.85rem 0;
  user-select: none;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.ticker-text {
  font-family: 'Anton', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(177,161,170,0.45);
  flex-shrink: 0;
  padding-right: 0;
}
.ticker-sep {
  color: var(--bordeaux);
  margin: 0 1.8rem;
  opacity: 0.9;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background: var(--blanc);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 20px rgba(76,40,60,0.07);
}
.article-card:hover {
  box-shadow: 0 24px 64px rgba(76,40,60,0.17);
  transform: translateY(-8px);
}

.article-card-photo {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gris-clair);
  position: relative;
}
.article-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.article-card:hover .article-card-photo img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.article-card-cat {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blanc);
  background: var(--bordeaux);
  padding: 0.25rem 0.75rem;
}
.article-card-date {
  font-size: 0.68rem;
  color: var(--mauve);
  letter-spacing: 0.08em;
}

.article-card-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.25rem;
  color: var(--bordeaux);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.article-card-excerpt {
  font-size: 0.84rem;
  line-height: 1.8;
  color: #6a5a62;
  flex: 1;
  margin-bottom: 1.4rem;
}
.article-card-link {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bordeaux);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  border-bottom: 1px solid rgba(76,40,60,0.25);
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s;
}
.article-card-link:hover {
  gap: 0.9rem;
  border-color: var(--bordeaux);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 0 1.5rem; }
  .nav-articles-btn { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--blanc); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--gris-clair); z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding-bottom: 3rem; }
  .hero-content { grid-template-columns: 1fr; padding: 2.5rem 2rem 0; gap: 2rem; min-height: auto; }
  .hero-visual { display: none; }

  /* Sections */
  .section { padding: 4rem 1.5rem; }
  .page-header { padding: 5.5rem 1.5rem 2rem; }
  .page-header p { font-size: 0.9rem; }
  .cta-section { padding: 4rem 1.5rem; }
  .section-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .stat-number { font-size: 2.8rem; }
  .section-intro { font-size: 0.92rem; }

  /* Grids */
  .valeurs-grid { grid-template-columns: 1fr; }
  .mission-split { grid-template-columns: 1fr; gap: 3rem; }
  .projets-grid { grid-template-columns: 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-cards { grid-template-columns: 1fr; }

  /* Photo galleries */
  .photo-gallery.layout-featured { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-gallery.layout-featured .photo-item { height: 220px; }
  .photo-item.span-row { grid-row: span 1; }
  .photo-gallery.layout-cols3 { grid-template-columns: 1fr; height: auto; }
  .photo-gallery.layout-cols3 .photo-item { height: 220px; }
  .photo-gallery.layout-cols2 { grid-template-columns: 1fr; height: auto; }
  .photo-gallery.layout-cols2 .photo-item { height: 220px; }

  /* Misc */
  .btn-primary, .btn-secondary, .btn-light { min-height: 44px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .section-photo-block { aspect-ratio: 3/2; max-height: 280px; }
  .projet-card-photo { height: 160px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-bar { padding: 2rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(177,161,170,0.2); padding: 1.2rem 1rem; }
  .stat-item:last-child { border-bottom: none; }
}

/* ===== Très petits écrans (≤ 480px / iPhone SE) ===== */
@media (max-width: 480px) {
  nav { padding: 0 1rem; height: 64px; }
  .nav-links { top: 64px; }
  .nav-logo img { height: 34px; }
  .nav-logo-text { font-size: 1.3rem; }
  .nav-articles-btn { font-size: 0.65rem; padding: 0.35rem 0.7rem; }
  .nav-articles-btn svg { display: none; }

  .hero { padding-top: 64px; }
  .hero-content { padding: 2rem 1rem 0; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-label { font-size: 0.62rem; margin-bottom: 1.2rem; }

  .section { padding: 3rem 1rem; }
  .page-header { padding: 5rem 1rem 1.8rem; }
  .page-header h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .cta-section { padding: 3rem 1rem; }
  .cta-title { font-size: 1.4rem; }

  .footer-inner { padding: 0 1rem; }
  .section-photo-block { display: none; }

  .btn-primary, .btn-secondary, .btn-light { font-size: 0.72rem; padding: 0.8rem 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; }
}

/* ===== CTA DEUX BOUTONS ===== */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 820px;
}

.cta-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cta-card-role {
  font-family: 'Anton', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
}

.cta-card-desc {
  font-size: 0.83rem;
  line-height: 1.8;
  color: rgba(217,208,213,0.7);
  font-weight: 300;
  flex: 1;
}

/* ===== ACCESSIBILITÉ & POLISH UX ===== */

/* Sélection de texte */
::selection { background: var(--bordeaux); color: var(--blanc); }
::-moz-selection { background: var(--bordeaux); color: var(--blanc); }

/* Focus visible — keyboard navigation */
:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--blanc); }
::-webkit-scrollbar-thumb { background: var(--bordeaux); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--bordeaux-light); }

/* Cursor pointer sur tous les éléments interactifs */
a, button, [role="button"],
.hamburger, .nav-cta,
.footer-links a { cursor: pointer; }

/* Overscroll mobile */
body { overscroll-behavior-y: none; }

/* Nav link hover amélioré */
.nav-links a { transition: color 0.2s; }
.nav-cta { transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important; }
.nav-cta:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 16px rgba(76,40,60,0.25) !important; }

/* Reveal — easing amélioré */
.reveal {
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-text, .hero-visual { animation: none !important; }
}
