/* ============================================================
   ROYAL FALCON — Site vitrine v2
   Charte : Marine #161851 · Or clair #E9CE97 · Or profond #C39B58
            Ivoire #F4EFE4 · Anthracite #2B2B35
   ============================================================ */
:root {
  --marine: #161851;
  --marine-deep: #10123B;
  --gold: #C39B58;
  --gold-light: #E9CE97;
  --ivory: #F4EFE4;
  --ink: #2B2B35;
  --grey: #75758A;
  --lavender: #9BA0C9;
  --line: #E4DCC9;
  --gold-line: rgba(233, 206, 151, 0.3);
  --radius: 2px;
  --shadow-card: 0 14px 40px rgba(19, 19, 71, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--marine);
  font-family: 'Karla', Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; margin: 0; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.3em; font-weight: 600;
  color: #8A6D2F; text-transform: uppercase;
}
.on-dark .eyebrow { color: var(--gold); }
.section-title { font-size: clamp(28px, 4vw, 38px); color: var(--marine); margin-top: 14px; line-height: 1.2; }
.on-dark .section-title { color: var(--ivory); }
.gold-rule { width: 64px; height: 2px; background: var(--gold); margin-top: 22px; }
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Karla', Arial, sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
/* Pattern "Shiny Button" (21st.dev #10381) porté à la charte or */
.btn-primary {
  color: var(--gold-light);
  background: linear-gradient(325deg, #0E1034 0%, #272B6E 55%, #0E1034 90%);
  background-size: 280% auto;
  background-position: left bottom;
  border-color: rgba(195, 155, 88, 0.85);
  box-shadow: 0 0 16px rgba(233, 206, 151, 0.30),
              0 5px 5px -1px rgba(19, 19, 71, 0.35);
  transition: background-position 0.7s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-primary:hover {
  background-position: right top;
  transform: translateY(-2px);
  color: var(--ivory);
  border-color: var(--gold-light);
  box-shadow: 0 0 26px rgba(233, 206, 151, 0.5),
              0 10px 22px -4px rgba(19, 19, 71, 0.45);
}
.btn-ghost { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--marine); color: var(--gold-light); }
.btn-dark:hover { background: var(--marine-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(19, 19, 71, 0.3); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 24, 81, 0.6);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(16, 18, 59, 0.88);
  border-bottom-color: var(--gold-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 13px; }
.nav-brand img { height: 42px; width: 42px; display: block; object-fit: cover; border-radius: 50%; border: 1px solid rgba(195, 155, 88, 0.55); }
.nav-brand span { font-family: 'Marcellus', Georgia, serif; font-size: 16px; letter-spacing: 0.14em; color: var(--ivory); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13.5px; letter-spacing: 0.06em; }
.nav-links > a { color: var(--gold-light); position: relative; padding: 4px 0; }
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold-light); transition: width 0.3s var(--ease);
}
.nav-links > a:not(.btn):hover { color: #fff; }
.nav-links > a:not(.btn):hover::after { width: 100%; }
.nav-cta { padding: 10px 20px !important; font-size: 12.5px; }
.lang-switch { font-size: 12px; color: var(--lavender); border: 1px solid var(--gold-line); padding: 6px 12px; letter-spacing: 0.08em; border-radius: 999px; }
.lang-switch a { color: var(--lavender); }
.lang-switch .active { color: var(--gold-light); font-weight: 700; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--gold-light); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
@media (max-width: 920px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--marine-deep); border-bottom: 1px solid var(--gold-line); padding: 10px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; font-size: 15px; }
  .nav-links .btn { margin-top: 10px; }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, #23267A 0%, var(--marine) 55%, var(--marine-deep) 100%);
  padding: 168px 24px 130px; text-align: center; color: var(--ivory);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.15; pointer-events: none;
  background-image: linear-gradient(rgba(233,206,151,0.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(233,206,151,0.35) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 480px at 50% 8%, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(900px 480px at 50% 8%, rgba(0,0,0,0.9), transparent 75%);
}
.hero > * { position: relative; }
.hero img.emblem { width: 210px; display: block; margin: 0 auto; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; letter-spacing: 0.42em; color: var(--gold); margin-top: 26px; text-transform: uppercase;
}
.hero .tag::before, .hero .tag::after { content: ''; width: 38px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.14; max-width: 840px; margin: 26px auto 0; color: var(--ivory); text-wrap: balance; }
.hero p { font-size: 17px; line-height: 1.7; color: var(--lavender); max-width: 640px; margin: 22px auto 0; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); opacity: 0.7; animation: hint 2.2s infinite var(--ease); }
@keyframes hint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* reveal en cascade */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; } .rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; } .rv-d4 { transition-delay: 0.4s; }

/* ---------- Stats ---------- */
.stats { background: var(--ivory); padding: 46px 24px; border-bottom: 1px solid var(--line); }
.stats-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: 'Marcellus', Georgia, serif; font-size: clamp(34px, 4vw, 46px); color: var(--marine); }
.stat .num small { font-size: 0.6em; }
.stat .lbl { font-size: 13px; color: var(--grey); margin-top: 6px; }
.stat .bar { width: 44px; height: 2px; background: var(--gold); margin: 0 auto 14px; }

/* ---------- Sections génériques ---------- */
.section { padding: 96px 24px; }
.bg-ivory { background: var(--ivory); }
.bg-white { background: #fff; }
.bg-marine { background: var(--marine); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.about-grid p { font-size: 16px; line-height: 1.8; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { font-size: 12.5px; letter-spacing: 0.06em; color: var(--marine); border: 1px solid var(--line); background: #fff; padding: 8px 14px; }

/* Divisions */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.division {
  background: var(--ivory); padding: 32px 26px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.division::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0.25); transform-origin: left; transition: transform 0.45s var(--ease);
}
.division:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.division:hover::before { transform: scaleX(1); }
.division .ico { color: var(--gold); }
.division .num { font-family: 'Marcellus', Georgia, serif; font-size: 14px; color: var(--gold); margin-top: 14px; }
.division h3 { font-size: 22px; color: var(--marine); margin-top: 6px; }
.division p { font-size: 13.5px; line-height: 1.7; color: #4A4A55; margin: 12px 0 0; }

/* Méthode */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 10px; }
.steps::before { content: ''; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--gold-line); }
.step { padding: 0 26px; position: relative; }
.step .dot {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold);
  background: var(--marine); color: var(--gold-light);
  font-family: 'Marcellus', Georgia, serif; font-size: 18px;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover .dot { background: var(--gold); color: var(--marine); transform: scale(1.08); }
.step h3 { font-size: 24px; color: var(--gold-light); margin-top: 18px; }
.step p { font-size: 13.5px; line-height: 1.7; color: var(--lavender); margin: 10px 0 0; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.client-item {
  background: #fff; border: 1px solid var(--line); padding: 22px 26px;
  display: flex; gap: 18px; align-items: baseline; font-size: 14.5px; line-height: 1.65;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.client-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.client-item .dash { font-family: 'Marcellus', Georgia, serif; color: var(--gold); font-size: 17px; flex: none; }
.client-item.full { grid-column: 1 / -1; }

/* Territoires */
.terr {
  background: linear-gradient(160deg, #1B1E5E 0%, var(--marine) 60%);
  padding: 36px 26px; text-align: center; position: relative; overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.terr:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: 0 18px 44px rgba(16, 18, 59, 0.4); }
.terr h3 { font-size: 21px; color: var(--gold-light); }
.terr p { font-size: 13px; line-height: 1.65; color: var(--lavender); margin: 10px 0 0; }
.terr::after {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(233, 206, 151, 0.14); bottom: -120px; right: -70px;
}

/* Fondateur */
.founder-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; max-width: 940px; margin: 0 auto; }
.founder-photo { width: 260px; height: 260px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; display: block; margin: 0 auto; box-shadow: 0 20px 50px rgba(19, 19, 71, 0.25); }
.founder-grid h2 { font-size: 32px; color: var(--marine); margin-top: 14px; }
.founder-role { font-size: 13px; letter-spacing: 0.12em; color: var(--gold); margin: 6px 0 16px; }
.founder-grid blockquote { font-family: 'Marcellus', Georgia, serif; font-size: 19px; line-height: 1.55; color: var(--marine); border-left: 2px solid var(--gold); margin: 18px 0 0; padding-left: 20px; }
.founder-grid p { font-size: 15.5px; line-height: 1.8; margin: 14px 0 0; }
.values { display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--grey); }
.values span::before { content: '·'; color: var(--gold); margin-right: 8px; }
.values span:first-child::before { content: ''; margin: 0; }

/* CTA band */
.cta-band { background: #fff; padding: 72px 24px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--marine); }
.cta-band p { color: #75758A; font-size: 15.5px; margin: 14px auto 30px; max-width: 560px; }
.cta-band .btn-ghost { color: var(--marine); border-color: var(--gold); }
.cta-band .btn-ghost:hover { background: var(--marine); color: var(--gold-light); border-color: var(--marine); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.14em; color: #8A6D2F; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #FDFCF9; border-radius: var(--radius);
  padding: 13px 14px; font-family: 'Karla', Arial, sans-serif; font-size: 15px; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 155, 88, 0.15); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 14px; margin-top: 14px; display: none; }
.form-note.ok { display: block; color: #2E7D46; }
.form-note.err { display: block; color: #A03A2E; }
.contact-aside { display: flex; flex-direction: column; gap: 14px; }
.c-item { background: var(--marine); padding: 24px; }
.c-item .lbl { font-size: 11px; letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; }
.c-item .val { font-family: 'Marcellus', Georgia, serif; font-size: 17px; color: var(--ivory); margin-top: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.c-item .val a { color: var(--ivory); transition: color 0.3s; }
.c-item .val a:hover { color: var(--gold-light); }

/* Footer */
footer { background: var(--marine-deep); color: var(--lavender); padding: 64px 24px 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 46px; width: 46px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(195, 155, 88, 0.55); }
.foot-brand span { font-family: 'Marcellus', Georgia, serif; letter-spacing: 0.14em; color: var(--ivory); }
.foot-tag { font-style: italic; color: var(--gold); font-size: 14px; margin-top: 14px; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.foot-col a, .foot-col div { display: block; color: var(--lavender); font-size: 13.5px; padding: 4px 0; }
.foot-col a:hover { color: var(--ivory); }
.foot-bottom { border-top: 1px solid rgba(233, 206, 151, 0.18); margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.foot-bottom .tagline { letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }

/* Back to top */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-line);
  background: rgba(16, 18, 59, 0.85); color: var(--gold-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s;
  backdrop-filter: blur(8px);
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { background: var(--gold); color: var(--marine); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .steps::before { display: none; }
  .about-grid, .contact-grid, .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .cards-4, .clients-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 72px 20px; }
  .hero { padding: 140px 20px 100px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section terrain (marquee medias) ---------- */
.section-field { background: var(--marine); padding: 96px 0 90px; overflow: hidden; }
.section-field .section-head { padding: 0 24px; margin-bottom: 44px; }
.field-sub { color: var(--lavender); font-size: 15px; margin: 14px 0 0; }
.marquee { display: flex; width: max-content; animation: marquee 75s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-track { display: flex; gap: 14px; padding-right: 14px; }
.tile { position: relative; margin: 0; height: 250px; flex: none; overflow: hidden; border: 1px solid rgba(233, 206, 151, 0.18); }
.tile img, .tile video { height: 100%; width: auto; display: block; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold-light);
  background: linear-gradient(transparent, rgba(16, 18, 59, 0.85));
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s;
}
.tile:hover figcaption { opacity: 1; transform: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 620px) { .tile { height: 190px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; width: auto; overflow-x: auto; }
  .tile figcaption { opacity: 1; transform: none; }
}
/* ---------- v3 : hero video ---------- */
.hero-video { position: relative; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16,18,59,0.78) 0%, rgba(22,24,81,0.62) 50%, rgba(16,18,59,0.88) 100%); }
.hero-video > *:not(.hero-bg):not(.hero-veil) { position: relative; z-index: 2; }

/* ---------- v3 : sections copy ---------- */
.know-inner { text-align: center; max-width: 720px; }
.know-text { font-size: 18px; line-height: 1.9; color: var(--ink); margin: 22px 0 30px; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--ivory); padding: 34px 28px; border-top: 3px solid var(--gold); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.role:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.role .ico { color: var(--gold); }
.role h3 { font-size: 23px; color: var(--marine); margin-top: 14px; }
.role p { font-size: 14px; line-height: 1.75; color: #4A4A55; margin: 12px 0 0; }
.selectivity { font-family: 'Marcellus', Georgia, serif; font-style: italic; font-size: 19px; color: var(--marine); text-align: center; max-width: 680px; margin: 48px auto 0; line-height: 1.6; }
.selectivity::before { content: ''; display: block; width: 52px; height: 2px; background: var(--gold); margin: 0 auto 20px; }

.tf-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.tf-grid .section-title { font-size: clamp(24px, 3.2vw, 32px); }
.tf-text { font-size: 15.5px; line-height: 1.85; color: var(--lavender); margin: 22px 0 30px; }
.tf-text strong { color: var(--ivory); }
.tf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.tfs .n { font-family: 'Marcellus', Georgia, serif; font-size: 38px; color: var(--gold-light); }
.tfs .n small { font-size: 0.6em; }
.tfs .l { font-size: 12.5px; line-height: 1.55; color: var(--lavender); margin-top: 4px; }
.tf-photos { display: flex; flex-direction: column; gap: 16px; }
.tf-photos .ph { aspect-ratio: 16/11; }
.tf-photos .ph img { width: 100%; height: 100%; object-fit: cover; }

/* photos duotone marine, couleur au survol */
.ph { margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(233, 206, 151, 0.2); }
.ph img { width: 100%; display: block; filter: grayscale(1) contrast(1.05); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.ph::after { content: ''; position: absolute; inset: 0; background: rgba(22, 24, 81, 0.38); mix-blend-mode: multiply; pointer-events: none; transition: opacity 0.5s; }
.ph:hover img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
.ph:hover::after { opacity: 0; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold-light); background: linear-gradient(transparent, rgba(16, 18, 59, 0.85)); }

.proof-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: stretch; }
.proof-photo img { height: 100%; object-fit: cover; }
.proof-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--line); padding: 26px 24px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.pcard h3 { font-size: 18px; color: var(--marine); }
.pcard p { font-size: 13.5px; line-height: 1.7; color: #4A4A55; margin: 10px 0 0; }

.ground { background: var(--marine-deep); padding: 72px 0 76px; }
.ground .section-head { margin-bottom: 30px; }
.ground-band { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0 10px; }
.gtile { margin: 0; position: relative; overflow: hidden; aspect-ratio: 3/4; }
.gtile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.gtile::after { content: ''; position: absolute; inset: 0; background: rgba(22, 24, 81, 0.4); mix-blend-mode: multiply; transition: opacity 0.5s; pointer-events: none; }
.gtile:hover img { filter: grayscale(0); transform: scale(1.05); }
.gtile:hover::after { opacity: 0; }
.gtile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 11px; letter-spacing: 0.1em; color: var(--gold-light); background: linear-gradient(transparent, rgba(16, 18, 59, 0.9)); }

.steps-3 { grid-template-columns: repeat(3, 1fr); }
#floatCta { position: fixed; right: 18px; bottom: 18px; z-index: 95; padding: 14px 24px; font-size: 13px; display: none; box-shadow: 0 10px 30px rgba(16, 18, 59, 0.45); }
#floatCta.show { display: inline-flex; }

@media (max-width: 980px) {
  .roles-grid { grid-template-columns: 1fr; }
  .tf-grid { grid-template-columns: 1fr; gap: 36px; }
  .tf-photos { flex-direction: row; }
  .tf-photos .ph { flex: 1; }
  .proof-grid { grid-template-columns: 1fr; }
  .ground-band { grid-template-columns: repeat(3, 1fr); }
  .steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ground-band { grid-template-columns: repeat(2, 1fr); }
  .proof-cards { grid-template-columns: 1fr; }
  .tf-stats { grid-template-columns: 1fr; }
  #toTop { bottom: 74px; }
}
/* ---------- Defileur photos uniformes ---------- */
.ground { overflow: hidden; }
.ground .marquee { display: flex; width: max-content; max-width: none; animation: marquee 60s linear infinite; }
.ground .marquee:hover { animation-play-state: paused; }
.ground .marquee-track { display: flex; gap: 12px; padding-right: 12px; }
.ground .gtile { width: 320px; height: 306px; aspect-ratio: auto; flex: none; }
.ground .gtile img.face-top { object-position: 50% 10%; }
.tf-stats.wide { grid-template-columns: repeat(4, 1fr); margin-top: 34px; }
.proof-cards.solo { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .proof-cards.solo { grid-template-columns: 1fr 1fr; } .tf-stats.wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ground .gtile { width: 240px; height: 240px; } .proof-cards.solo { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ground .marquee { animation: none; width: auto; overflow-x: auto; } }
/* emblem-medaillon : logo du hero en cercle (le carre navy ne tranche plus sur la video) */
.hero-video .emblem { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(195, 155, 88, 0.55); box-shadow: 0 14px 44px rgba(16, 18, 59, 0.55); }

/* defileur en couleurs : plus de duotone sur les photos du terrain */
.ground .gtile img { filter: none; }
.ground .gtile::after { display: none; }

/* toTop a gauche : ne couvre plus le bouton Reserver un call */
#toTop { left: 22px; right: auto; bottom: 22px !important; }

/* ---------- Jonctions resserrees ---------- */
#roles { padding-bottom: 44px; }
#leader { padding-top: 44px; }
#taskforce { padding-bottom: 44px; }
#how { padding-top: 44px; }

/* ---------- Zoom Bdg tuiles (Istanbul, Riyad, Dubai) ---------- */
.ground .gtile { overflow: hidden; }
.ground .gtile img[src*="band-istanbul"] { transform: scale(1.35); transform-origin: 48% 72%; }
.ground .gtile img[src*="st-taskforce-pitch"] { transform: scale(1.35); transform-origin: 60% 40%; }
.ground .gtile img[src*="st-radio-dubai"] { transform: scale(1.82); transform-origin: 54% 46%; }

/* ---------- PWA safe areas (encoche mobile) ---------- */
@supports (padding: max(0px)) {
  #floatCta { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); }
  #toTop { bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px)) !important; }
}

/* ---------- Formulaire solo ---------- */
.contact-solo { max-width: 760px; }
.contact-lead { color: var(--grey); font-size: 15.5px; line-height: 1.7; margin: 18px auto 0; max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--grey); font-weight: 400; }
#contact .form-card { box-shadow: var(--shadow-card); }
#contact .btn { width: 100%; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Cadrage video hero mobile : centrer sur Bdg (gauche du plan) ---------- */
@media (max-width: 700px) {
  .hero-video .hero-bg { object-position: 20% 50%; transform: scale(1.12); transform-origin: 25% 55%; }
}
