/* ============================================================
   COM À BORD — style.css
   Direction : éditorial maritime de luxe
   Fonts : Fraunces (display) + Manrope (body)
   Palette : noir bleu profond / or antique / crème
   ============================================================ */

:root {
  /* Couleurs — palette bleu marine Com à Bord (dérivée du logo) */
  --bg:         #031824;   /* bleu marine très profond — base */
  --bg-alt:     #083050;   /* bleu marine du logo */
  --bg-soft:    #0D4468;   /* bleu plus clair pour contraste */
  --blue-mid:   #1A5A80;   /* bleu intermédiaire */
  --blue-light: #9FC2D9;   /* bleu pâle — comme les "?" du logo */
  --cream:      #F4EFE6;
  --cream-dim:  #D8D1C4;
  --gold:       #C8A96E;
  --gold-light: #E0C99A;
  --gold-dark:  #8C7749;
  --blue-deep:  #083050;   /* alias compat */
  --line:       rgba(244, 239, 230, 0.08);
  --line-hot:   rgba(200, 169, 110, 0.25);
  --text:       #F4EFE6;
  --text-dim:   #8FA0B0;
  --text-soft:  #C8D0D8;

  /* Typos */
  --ff-display:    'Fraunces', 'Playfair Display', Georgia, serif;
  --ff-body:       'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --ff-expressive: 'Abril Fatface', 'Playfair Display', 'Didot', 'Bodoni 72', serif;

  /* Spacing */
  --container:  1320px;
  --gutter:     2rem;

  /* Motion */
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% 0%,   rgba(26, 90, 128, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 30%,  rgba(13, 68, 104, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 120% 80% at 0% 100%,  rgba(8, 48, 80, 0.4)   0%, transparent 70%),
    linear-gradient(180deg, #041F30 0%, #031824 40%, #020F18 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  background: var(--gold); color: var(--bg);
  padding: .75rem 1.25rem; border-radius: 4px;
  font-weight: 600; z-index: 10000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

::selection { background: var(--gold); color: var(--bg); }

/* Grain/noise overlay global */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .5;
  mix-blend-mode: overlay;
}

/* ============================================================
   CURSEUR CUSTOM (desktop)
   ============================================================ */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  .cursor { display: block; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
  .cursor__dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); transform: translate(-50%, -50%); transition: transform .15s var(--ease-out); }
  .cursor__ring { position: absolute; width: 36px; height: 36px; border: 1px solid var(--cream); border-radius: 50%; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease); }
  .cursor.is-hover .cursor__ring { width: 60px; height: 60px; border-color: var(--gold); }
  .cursor.is-hover .cursor__dot { transform: translate(-50%, -50%) scale(0); }
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--cream);
}

h1 { font-size: clamp(3rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.25rem, 5.5vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 500; font-family: var(--ff-body); letter-spacing: 0; }

/* em par défaut pour le corps de texte (pas les titres — gérés plus bas) */
p em, li em, blockquote em, span.eyebrow em, figcaption em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--gold);
}

p { margin: 0 0 1.25rem; color: var(--text-soft); }
p.lead { font-size: 1.25rem; line-height: 1.6; color: var(--cream-dim); max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--ff-body);
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 900px; }
.wrap--reading { max-width: 760px; }

section { position: relative; padding: 8rem 0; z-index: 2; overflow: hidden; }
section.section--compact { padding: 5rem 0; }
section.section--alt {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 48, 80, 0.4) 0%, rgba(13, 68, 104, 0.3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* ============================================================
   PHOTOS & MÉDIAS
   ============================================================ */

.media-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease);
}
.media-frame:hover img { transform: scale(1.04); }

.media-frame--portrait { aspect-ratio: 3/4; }
.media-frame--landscape { aspect-ratio: 16/10; }
.media-frame--square { aspect-ratio: 1/1; }
.media-frame--hero { aspect-ratio: 16/9; }

.media-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(0deg, rgba(3, 24, 36, 0.95) 0%, transparent 100%);
  color: var(--cream);
}
.media-caption span {
  display: block;
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .25rem;
}
.media-caption em {
  font-family: var(--ff-display);
  font-size: 1.1rem; font-style: italic;
  color: var(--cream);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(3, 24, 36, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(3, 24, 36, 0.88);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  max-width: var(--container); margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.brand {
  display: inline-flex; align-items: center;
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.brand__logo {
  height: 30px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(200, 169, 110, .15));
  transition: filter .3s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand:hover .brand__logo { filter: drop-shadow(0 4px 20px rgba(200, 169, 110, .4)); }

.brand--footer .brand__logo { height: 38px; opacity: .92; }
.brand--footer:hover .brand__logo { opacity: 1; }

/* ============================================================
   FILIGRANES LOGO — décor discret et chic
   Le logo Com à Bord utilisé comme motif en fond à très faible opacité
   ============================================================ */

/* Filigrane 1 : gros logo côté droit du page-hero (subtil) */
.page-hero::after {
  content: '';
  position: absolute;
  top: 50%; right: -12%;
  width: 70vw; max-width: 900px;
  aspect-ratio: 5.68/1;
  background-image: url('/assets/img/brand/logo-watermark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.035;
  pointer-events: none;
  transform: translateY(-50%) rotate(-4deg);
  z-index: 0;
  filter: grayscale(1) brightness(2);
}
.page-hero-inner { position: relative; z-index: 2; }

/* Filigrane 2 : logo en filigrane très discret en fond de hero accueil */
.hero::after {
  content: '';
  position: absolute;
  bottom: -8%; left: -10%;
  width: 90vw; max-width: 1400px;
  aspect-ratio: 5.68/1;
  background-image: url('/assets/img/brand/logo-watermark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left bottom;
  opacity: 0.025;
  pointer-events: none;
  transform: rotate(-6deg);
  z-index: 1;
  filter: grayscale(1) brightness(2);
}
.hero-inner { position: relative; z-index: 3; }

/* Filigrane 3 : CTA-band avec un logo en fond centré */
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/brand/logo-watermark.png');
  background-size: 900px auto;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0.03;
  pointer-events: none;
  filter: grayscale(1) brightness(2);
}
.cta-band .inner { position: relative; z-index: 3; }

/* Filigrane 4 : détail décoratif dans les section--alt */
.section--alt::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 70px;
  background-image: url('/assets/img/brand/logo-header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;
  opacity: 0.04;
  pointer-events: none;
  filter: grayscale(1) brightness(2);
}

/* Responsive : atténuer les filigranes sur mobile */
@media (max-width: 900px) {
  .page-hero::after,
  .hero::after,
  .cta-band::after,
  .section--alt::after {
    opacity: 0.02;
  }
  .section--alt::after { width: 200px; height: 35px; }
}

.main-nav { display: flex; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .25rem;
}
.main-nav a {
  position: relative;
  padding: .6rem 1rem;
  font-size: .92rem; font-weight: 500;
  color: var(--cream-dim);
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; bottom: .3rem; left: 1rem; right: 1rem;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--gold); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem;
  font-size: .88rem; font-weight: 600;
  color: var(--bg); background: var(--gold);
  border-radius: 999px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; height: 32px;
  align-items: flex-end; justify-content: center;
  padding: 0;
}
.nav-burger span {
  display: block; height: 1.5px; background: var(--cream);
  transition: all .3s var(--ease);
}
.nav-burger span:nth-child(1) { width: 24px; }
.nav-burger span:nth-child(2) { width: 18px; }
.nav-burger span:nth-child(3) { width: 22px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }

/* MENU MOBILE */
.mobile-nav {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg); background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  transform: translateX(100%); opacity: 0;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav.is-open { transform: translateX(0); opacity: 1; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-nav li { margin: 1rem 0; }
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--cream); font-weight: 400;
  transition: color .25s var(--ease);
}
.mobile-nav a:hover { color: var(--gold); font-style: italic; }
.mobile-nav .mobile-cta { color: var(--gold); }

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem;
  font-family: var(--ff-body);
  font-size: .92rem; font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold); color: var(--bg);
  box-shadow: 0 10px 30px -10px rgba(200, 169, 110, .4);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(200, 169, 110, .5); }
.btn--ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line-hot);
}
.btn--ghost:hover { background: rgba(200, 169, 110, .08); border-color: var(--gold); color: var(--gold); }
.btn--large { padding: 1.2rem 2.5rem; font-size: 1rem; }

/* ============================================================
   HERO (accueil) — avec photo voile en fond
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/img/voile-psm-1920.jpg');
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: saturate(.85);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 24, 36, .35) 0%, rgba(3, 24, 36, .75) 70%, rgba(3, 24, 36, 1) 100%),
    linear-gradient(90deg, rgba(3, 24, 36, .85) 0%, rgba(3, 24, 36, .2) 50%, rgba(3, 24, 36, .75) 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(13, 68, 104, .6) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(200, 169, 110, .1) 0%, transparent 50%);
}

.hero-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: .95;
  font-weight: 300;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }

html.js .hero-title .line > span {
  transform: translateY(110%);
  animation: reveal 1s var(--ease-out) forwards;
}
html.js .hero-title em {
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-title em {
  font-weight: 400;
  color: var(--gold);
}
html.js .hero-title .line:nth-child(2) > span { animation-delay: .15s; }
html.js .hero-title .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes reveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hero-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-meta .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: end;
  margin-top: 2rem;
}
html.js .hero-content {
  opacity: 0; animation: fadeIn 1.2s var(--ease-out) .6s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-content p { font-size: 1.15rem; line-height: 1.7; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: var(--gutter);
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 1rem;
  z-index: 3;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px; background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   PAGE HERO (autres pages)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 14rem 0 6rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(200, 169, 110, .1) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  max-width: 20ch;
  position: relative;
}
.page-hero h1 em { display: inline-block; }
.page-hero .lead { max-width: 60ch; margin-top: 2rem; }

/* ============================================================
   EFFET CHIC — H1 des pages & Hero
   Filet doré ornemental + italiques dorés + ornement ✦
   ============================================================ */

/* Filet doré décoratif avant le H1 */
.page-hero h1::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(200,169,110,0) 100%);
  margin-bottom: 2rem;
  animation: chicLine 1.4s var(--ease-out) .2s forwards;
}
html:not(.js) .page-hero h1::before { width: 80px; }

@keyframes chicLine {
  0%   { width: 0;     opacity: 0; }
  100% { width: 100px; opacity: 1; }
}

/* Ornement ✦ après le H1 (discret, symbolique maritime) */
.page-hero h1::after {
  content: '✦';
  display: inline-block;
  font-size: .45em;
  color: var(--gold);
  opacity: .55;
  margin-left: .5em;
  vertical-align: middle;
  text-shadow: 0 0 24px rgba(200, 169, 110, .5);
  animation: chicStar 3s ease-in-out infinite;
}
@keyframes chicStar {
  0%, 100% { opacity: .4; transform: scale(1) rotate(0deg); }
  50%      { opacity: .75; transform: scale(1.1) rotate(90deg); }
}

/* Italiques dorées chic avec tri-dégradé + drop-shadow dorée
   + police expressive éditoriale (Abril Fatface — serif haut contraste) */
.page-hero h1 em,
.hero-title em,
h2 em,
h3 em {
  font-family: var(--ff-expressive);
  font-weight: 400;
  font-style: italic; /* Abril Fatface n'a pas d'italique natif, mais l'oblique simulé marche */
  font-size: 1em;     /* Taille normale — Abril a une x-height comparable */
  line-height: inherit;
  background: linear-gradient(135deg,
              var(--gold-light) 0%,
              var(--gold) 45%,
              #b89558 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  filter: drop-shadow(0 2px 24px rgba(200, 169, 110, .28));
  padding: 0 .05em;
  letter-spacing: -0.01em;
  display: inline-block;
  vertical-align: baseline;
  transform: none;
}

/* Kerning affiné pour les grands titres */
.page-hero h1,
.hero-title,
h2 {
  letter-spacing: -0.025em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga" on, "dlig" on, "kern" on;
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */

.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  margin-bottom: 5rem; align-items: end;
}
.section-head h2 { margin: 0; }
.section-head p { font-size: 1.1rem; line-height: 1.7; color: var(--cream-dim); max-width: 48ch; }

/* Split 2 colonnes */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: start;
}
.split--reversed > *:first-child { order: 2; }

/* ============================================================
   CARTES PROJETS
   ============================================================ */

.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.project-card {
  position: relative;
  padding: 3rem; 
  background: rgba(8, 48, 80, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.project-card:hover {
  border-color: var(--line-hot);
  transform: translateY(-4px);
  background: rgba(13, 68, 104, 0.55);
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.project-card:hover::before { transform: scaleX(1); }

.project-card__tag {
  display: inline-block;
  padding: .35rem .85rem;
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.tag-develop   { background: rgba(28, 58, 94, .4); color: #8AAFDB; border: 1px solid rgba(138, 175, 219, .2); }
.tag-ongoing   { background: rgba(200, 169, 110, .12); color: var(--gold); border: 1px solid var(--line-hot); }
.tag-for-sale  { background: rgba(200, 169, 110, .85); color: var(--bg); }

.project-card h3 {
  font-size: 2rem; margin-bottom: .75rem;
  color: var(--cream);
}
.project-card .project-sub {
  font-size: .85rem; color: var(--text-dim);
  letter-spacing: .05em;
  margin-bottom: 1.25rem;
}
.project-card p { margin: 0 0 1.5rem; font-size: .98rem; }

.project-card__meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--text-dim);
}
.project-card__meta strong { color: var(--cream); font-weight: 500; display: block; margin-bottom: .1rem; }

.project-card__link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--gold);
  margin-top: 1.25rem;
  font-weight: 600;
}
.project-card__link svg { transition: transform .3s var(--ease); }
.project-card:hover .project-card__link svg { transform: translateX(6px); }

/* ============================================================
   FEATURES / PILIERS
   ============================================================ */

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease);
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: rgba(200, 169, 110, .03); }

.pillar__num {
  font-family: var(--ff-display);
  font-size: 3.5rem; font-style: italic;
  color: var(--gold); line-height: 1;
  margin-bottom: 1.5rem;
  opacity: .4;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.pillar p { font-size: .95rem; margin: 0; }

/* ============================================================
   LISTE EQUIPE
   ============================================================ */

.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.team-card {
  padding: 2.5rem 2rem;
  background: rgba(8, 48, 80, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all .4s var(--ease);
}
.team-card:hover {
  border-color: var(--line-hot);
  transform: translateY(-6px);
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--blue-deep));
  border: 1px solid var(--line-hot);
  position: relative;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.team-card:hover .team-card__photo img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.team-card__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(3, 24, 36, 0.3) 100%);
  pointer-events: none;
}
.team-card h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.team-card .role {
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.team-card p { font-size: .95rem; margin: 0; }

/* ============================================================
   LISTE PARTENAIRES
   ============================================================ */

.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.partner {
  aspect-ratio: 16/9;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 2rem;
  font-family: var(--ff-display);
  font-size: 1.25rem; color: var(--cream-dim);
  text-align: center;
  transition: all .4s var(--ease);
}
.partner:hover { background: rgba(200, 169, 110, .05); color: var(--gold); }

/* ============================================================
   CITATION / PULL-QUOTE
   ============================================================ */

.pull-quote {
  max-width: 900px; margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '"';
  position: absolute; top: -1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-display);
  font-size: 8rem; line-height: 1;
  color: var(--gold); opacity: .3;
  font-style: italic;
}
.pull-quote blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 300; font-style: italic;
  line-height: 1.3; color: var(--cream);
  margin: 0 0 2rem;
}
.pull-quote cite {
  font-style: normal; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold);
}

/* ============================================================
   FORMULAIRE CONTACT
   ============================================================ */

.form-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: 760px; margin: 0 auto;
}
.form-contact .full { grid-column: 1 / -1; }
.form-contact label {
  display: block;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--text-dim);
  margin-bottom: .5rem;
}
.form-contact input,
.form-contact select,
.form-contact textarea {
  width: 100%;
  padding: .9rem 1rem;
  background: rgba(8, 48, 80, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 1rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form-contact textarea { min-height: 160px; resize: vertical; }
.form-contact input:focus,
.form-contact select:focus,
.form-contact textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(200, 169, 110, .03);
}
.form-contact button { margin-top: 1rem; }

.contact-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  margin-top: 5rem;
}
.contact-info .item h4 {
  font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .75rem;
}
.contact-info .item p, .contact-info .item a {
  font-family: var(--ff-display); font-size: 1.5rem;
  color: var(--cream); margin: 0;
}
.contact-info .item a:hover { color: var(--gold); }

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  position: relative;
  padding: 7rem 0;
  background: linear-gradient(180deg, rgba(8, 48, 80, 0.6) 0%, rgba(13, 68, 104, 0.4) 50%, rgba(8, 48, 80, 0.6) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,169,110,.08) 0%, transparent 60%);
}
.cta-band .inner { position: relative; z-index: 2; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 2rem; }
.cta-band .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #020F18;
  border-top: 1px solid var(--line);
  padding-top: 6rem;
  position: relative; z-index: 2;
}
.footer-top { padding-bottom: 4rem; }
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-col--brand { max-width: 420px; }
.footer-baseline {
  font-family: var(--ff-display);
  font-size: 1.1rem; line-height: 1.55;
  color: var(--cream-dim);
  margin-top: 1.5rem;
}
.footer-title {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold);
  margin: 0 0 1.5rem;
  font-family: var(--ff-body);
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6rem; }
.footer-list a, .footer-list span {
  color: var(--cream-dim); font-size: .95rem;
  transition: color .25s var(--ease);
}
.footer-list a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer-bottom-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { margin: 0; font-size: .82rem; color: var(--text-dim); }
.footer-legal {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 2rem;
}
.footer-legal a { font-size: .82rem; color: var(--text-dim); transition: color .25s var(--ease); }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   FAQ (details/summary)
   ============================================================ */

details summary { outline: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary > span:last-child { transform: rotate(45deg); }
details summary > span:last-child { display: inline-block; transition: transform .3s var(--ease); }
details summary:hover > span:first-child { color: var(--gold); }

/* ============================================================
   ANIMATIONS (reveal on scroll) — PROGRESSIVE ENHANCEMENT
   Le contenu est VISIBLE par défaut.
   Les animations ne s'appliquent que si la classe .js est ajoutée
   par le JS principal (sinon le contenu reste visible = safe).
   ============================================================ */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
html.js [data-reveal].is-visible {
  opacity: 1; transform: translateY(0);
}
html.js [data-reveal-delay="1"] { transition-delay: .1s; }
html.js [data-reveal-delay="2"] { transition-delay: .2s; }
html.js [data-reveal-delay="3"] { transition-delay: .3s; }
html.js [data-reveal-delay="4"] { transition-delay: .4s; }

/* Accessibilité : motion réduit → pas d'animation */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-title .line > span { animation: none !important; transform: none !important; }
  .hero-content { opacity: 1 !important; animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 900px) {
  section { padding: 5rem 0; }
  .page-hero { padding: 10rem 0 4rem; }
  .hero { padding: 8rem 0 4rem; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .section-head { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split--reversed > *:first-child { order: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .form-contact { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.25rem; }
  .cta-band { padding: 4rem 0; }
  .pull-quote { padding: 2rem 0; }
  .project-card { padding: 2rem; }
  .footer-legal { flex-wrap: wrap; gap: 1rem; }
}
/* ============================================================
   FIX SELECT DARK v2 — renforcé multi-navigateurs
   Force le rendu dark partout, y compris Chrome/Windows 11
   ============================================================ */
.form-contact select,
select {
  color-scheme: dark !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #083050 !important;
  color: #F4EFE6 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C8A96E' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  padding-right: 2.5rem !important;
  cursor: pointer !important;
}

.form-contact select:focus,
select:focus {
  background-color: #0D4468 !important;
  border-color: #C8A96E !important;
  outline: none !important;
}

/* Options du menu déroulant - fond bleu marine + texte crème */
.form-contact select option,
select option {
  background-color: #083050 !important;
  color: #F4EFE6 !important;
  padding: 10px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px !important;
}

/* Option survolée / sélectionnée */
.form-contact select option:hover,
.form-contact select option:focus,
.form-contact select option:checked,
.form-contact select option:active,
select option:hover,
select option:checked {
  background-color: #C8A96E !important;
  background: linear-gradient(#C8A96E, #C8A96E) !important;
  color: #031824 !important;
  -webkit-text-fill-color: #031824 !important;
  box-shadow: 0 0 10px 100px #C8A96E inset !important;
}

/* Placeholder option (première option vide) */
.form-contact select option[value=""] {
  color: #8FA0B0 !important;
  font-style: italic;
}

/* Firefox - fix spécifique */
@-moz-document url-prefix() {
  .form-contact select,
  select {
    background-color: #083050 !important;
    color: #F4EFE6 !important;
  }
  .form-contact select option,
  select option {
    background-color: #083050 !important;
    color: #F4EFE6 !important;
  }
}
