*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #f5f4f0;   /* parchemin neutre */
  --warm:       #e8e6e0;   /* gris parchemin clair */
  --sand:       #9aa8bf;   /* bleu gris doux (remplace sable) */
  --terracotta: #b5001e;   /* rouge France vif */
  --brown:      #1a2d4f;   /* bleu marine France */
  --bark:       #0d1a2e;   /* bleu nuit */
  --text:       #1c1c2e;   /* quasi-noir bleuté */
  --muted:      #6b7280;   /* gris ardoise neutre */
}

html { 
  scroll-behavior: smooth; 
  font-size: 18px;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ═══════════════════════════════
   BARRE DE NAVIGATION
═══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(245,244,240,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192,189,180,.4);
  animation: slideDown .6s ease both;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .01em;
  color: var(--brown);
  display: flex; align-items: center; gap: .7rem;
  line-height: 1.35;
}
.nav-logo svg { flex-shrink: 0; }

/* Cocarde tricolore SVG */
.nav-logo svg circle:nth-child(1) { /* bleu */ }
.nav-logo svg circle:nth-child(2) { /* blanc */ }
.nav-logo svg circle:nth-child(3) { /* rouge */ }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: .82rem; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--terracotta); }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 7rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26,45,79,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(181,0,30,.05) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Bandelette tricolore en haut de page */
.hero::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right,
    #002395 0%, #002395 33.3%,
    #fff     33.3%, #fff     66.6%,
    #ED2939  66.6%, #ED2939  100%
  );
}

.hero-tag {
  display: inline-block;
  padding: .35rem 1rem;
  border: 1px solid rgba(154,168,191,.5);
  border-radius: 2rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
  animation: fadeUp .7s .1s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--bark);
  max-width: 18ch;
  animation: fadeUp .7s .25s ease both;
}
.hero h1 em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.hero-sub {
  margin-top: 1.4rem; max-width: 52ch;
  font-size: 1rem; line-height: 1.75; color: var(--muted);
  animation: fadeUp .7s .4s ease both;
}

/* Devise */
.hero-devise {
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brown);
  opacity: .7;
  letter-spacing: .03em;
  animation: fadeUp .7s .5s ease both;
}

.hero-scroll {
  margin-top: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sand); cursor: pointer;
  animation: fadeUp .7s .55s ease both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--sand), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ═══════════════════════════════
   BANDEAU D'INFORMATION
═══════════════════════════════ */
.info-banner {
  background: var(--brown);  /* bleu marine */
  color: var(--cream);
  padding: 3.5rem 4rem;
  display: grid; grid-template-columns: 1fr 2px 1fr 2px 1fr;
  gap: 0; align-items: center;
  position: relative; overflow: hidden;
}

/* Motif étoiles discret */
.info-banner::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237,41,57,.2) 0%, transparent 65%);
  pointer-events: none;
}
.info-banner::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 65%);
  pointer-events: none;
}

.info-sep {
  width: 2px; height: 60px;
  background: rgba(154,168,191,.25);
  justify-self: center;
}

.info-item { padding: 0 2.5rem; position: relative; z-index: 1; }
.info-item:first-child { padding-left: 0; }
.info-item:last-child  { padding-right: 0; }

.info-label {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sand); margin-bottom: .5rem;
}
.info-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.2;
  color: var(--cream);
}
.info-desc {
  margin-top: .4rem; font-size: .82rem; line-height: 1.55;
  color: rgba(245,244,240,.55);
}

/* ═══════════════════════════════
   GALERIE PHOTOS
═══════════════════════════════ */
.gallery-section {
  padding: 5rem 2.5rem;
  max-width: 1400px; margin: 0 auto;
}

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--warm);
  flex-wrap: wrap; gap: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 400;
  color: var(--bark); letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--terracotta); }

.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; }
.filter-btn {
  padding: .35rem 1rem;
  border: 1px solid var(--warm);
  border-radius: 2rem; background: transparent;
  font-family: 'Jost', sans-serif; font-size: .75rem;
  font-weight: 400; letter-spacing: .06em;
  color: var(--muted); cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brown); border-color: var(--brown);
  color: #fff;
}

/* Grille masonry-like */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}

.photo-card { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; }
.photo-card:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
.photo-card:nth-child(5)  { grid-column: span 2; }
.photo-card:nth-child(8)  { grid-column: span 2; grid-row: span 2; }
.photo-card:nth-child(11) { grid-column: span 2; }

.photo-img {
  width: 100%; height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  background: var(--warm);
}
.photo-card:hover .photo-img { transform: scale(1.06); }

.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,26,46,.75) 0%, transparent 55%);
  opacity: 0; transition: opacity .35s;
  display: flex; align-items: flex-end;
  padding: 1.2rem;
}
.photo-card:hover .photo-overlay { opacity: 1; }

.photo-caption {
  color: #fff; font-size: .8rem; font-weight: 400;
  font-family: 'Playfair Display', serif; font-style: italic;
}

/* Dégradés tricolores pour les placeholders */
.photo-card:nth-child(1)  .photo-img { background: linear-gradient(135deg,#002395,#1a2d4f); }
.photo-card:nth-child(2)  .photo-img { background: linear-gradient(135deg,#c8cdd6,#9aa8bf); }
.photo-card:nth-child(3)  .photo-img { background: linear-gradient(135deg,#ED2939,#8b0014); }
.photo-card:nth-child(4)  .photo-img { background: linear-gradient(135deg,#1a2d4f,#3a5278); }
.photo-card:nth-child(5)  .photo-img { background: linear-gradient(135deg,#e8e6e0,#c0bdb4); }
.photo-card:nth-child(6)  .photo-img { background: linear-gradient(135deg,#3a5278,#1a2d4f); }
.photo-card:nth-child(7)  .photo-img { background: linear-gradient(135deg,#b5001e,#ED2939); }
.photo-card:nth-child(8)  .photo-img { background: linear-gradient(135deg,#0d1a2e,#1a2d4f); }
.photo-card:nth-child(9)  .photo-img { background: linear-gradient(135deg,#9aa8bf,#6b7a96); }
.photo-card:nth-child(10) .photo-img { background: linear-gradient(135deg,#8b0014,#b5001e); }
.photo-card:nth-child(11) .photo-img { background: linear-gradient(135deg,#1a2d4f,#002395); }
.photo-card:nth-child(12) .photo-img { background: linear-gradient(135deg,#c0bdb4,#9aa8bf); }

.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem;
  pointer-events: none;
}
.photo-placeholder svg { opacity: .3; }
.photo-placeholder span {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ═══════════════════════════════
   LIGHTBOX
═══════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,26,46,.95);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-inner {
  position: relative; max-width: 90vw; max-height: 90vh;
}
.lb-inner img {
  max-width: 90vw; max-height: 80vh;
  border-radius: 8px; object-fit: contain;
}
.lb-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; color: var(--cream);
  font-size: 1.8rem; cursor: pointer; opacity: .7;
  transition: opacity .2s;
}
.lb-close:hover { opacity: 1; }
.lb-nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(245,244,240,.08); border: 1px solid rgba(245,244,240,.18);
  color: var(--cream); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.2rem;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.lb-nav-btn:hover { background: rgba(245,244,240,.18); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-counter {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--sand); font-size: .8rem; letter-spacing: .1em;
}

/* ═══════════════════════════════
   SECTION COORDONNÉES
═══════════════════════════════ */
.contact-section {
  background: var(--bark);   /* bleu nuit */
  color: var(--cream);
  padding: 7rem 5rem;
  position: relative; overflow: hidden;
}

/* Motif pointillés fins */
.contact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(154,168,191,0.08)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

/* Liseré tricolore en bas de section */
.contact-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    #002395 0%, #002395 33.3%,
    #fff     33.3%, #fff     66.6%,
    #ED2939  66.6%, #ED2939  100%
  );
}

.contact-inner {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
}

/* Titre section contact */
.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 400;
  line-height: 1.2; letter-spacing: -.01em;
  color: var(--cream);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(154,168,191,.2);
}
.contact-heading em { font-style: italic; color: var(--sand); }

.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  padding: 1.8rem;
  border: 1px solid rgba(154,168,191,.15);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.contact-card:hover {
  border-color: rgba(181,0,30,.35);
  background: rgba(255,255,255,.03);
}
.contact-card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(181,0,30,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 1.1rem;
}
.contact-card-label {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); margin-bottom: .5rem;
}
.contact-card-value {
  font-size: .92rem; line-height: 1.6;
  color: rgba(245,244,240,.82);
}
.contact-card-value a {
  color: inherit; text-decoration: none;
  transition: color .2s;
}
.contact-card-value a:hover { color: var(--sand); }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  background: #060e1a;
  color: rgba(245,244,240,.3);
  text-align: center; padding: 1.5rem 2rem;
  font-size: .73rem; letter-spacing: .05em;
  line-height: 1.6;
  position: relative;
}
footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right,
    #002395 0%, #002395 33.3%,
    rgba(255,255,255,.4) 33.3%, rgba(255,255,255,.4) 66.6%,
    #ED2939  66.6%, #ED2939  100%
  );
}

/* ═══════════════════════════════
   KEYFRAMES
═══════════════════════════════ */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .4; transform: scaleY(.6); }
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .info-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
  }
  .info-sep { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-card:nth-child(1)  { grid-column: span 2; }
  .photo-card:nth-child(5)  { grid-column: span 2; }
  .photo-card:nth-child(8)  { grid-column: span 2; }
  .photo-card:nth-child(11) { grid-column: span 2; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .photo-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-section, .contact-section { padding: 3rem 1.2rem; }
}