/* =========================================================
   ICARE — Site internet
   Stylesheet partagé pour toutes les pages
   ========================================================= */

:root {
  --bg-deep: #131211;
  --bg: #1c1b19;
  --bg-soft: #26241f;
  --bg-card: #211f1c;
  --bg-elevated: #2f2c27;       /* gris clair pour blocs secondaires (variante A) */
  --bg-elevated-strong: #3a3731; /* gris plus clair encore */
  --gold: #b89745;
  --gold-bright: #d8b96a;
  --gold-soft: rgba(184, 151, 69, 0.12);
  --silver: #bbbbb6;
  --silver-dim: #888580;
  --cream: #ebe6dc;
  --muted: #8e8a82;
  --line: rgba(187, 187, 182, 0.10);
  --line-strong: rgba(187, 187, 182, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
a { color: var(--gold); text-decoration: none; }

/* HEADER ============================================ */
header.site {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background .3s, padding .3s, border-color .3s;
  background: linear-gradient(180deg, rgba(15,14,13,0.92) 0%, rgba(15,14,13,0.6) 60%, rgba(15,14,13,0) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
header.site.scrolled,
header.site.solid {
  background: rgba(15, 14, 13, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}

.logo-mark {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark .logo-img {
  height: 46px !important;
  width: auto !important;
  max-width: 170px;
  display: block;
  flex-shrink: 0;
}
/* Compatibilité ancienne structure (emblème + wordmark) — neutralisée */
.logo-mark .emblem { display: none; }
.logo-mark .wordmark { display: none; }

nav.primary { display: flex; gap: 38px; align-items: center; }
nav.primary > a {
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
  white-space: nowrap;
}
nav.primary > a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s;
}
nav.primary > a:hover { color: var(--gold); }
nav.primary > a:hover::after { width: 100%; }
nav.primary > a.active { color: var(--gold); }
nav.primary > a.active::after { width: 100%; }

.lang-switch {
  display: flex; gap: 2px;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.lang-switch button {
  background: none; border: none; color: var(--muted);
  padding: 4px 8px; cursor: pointer;
  font-family: inherit; font-size: 11px; letter-spacing: 0.15em;
}
.lang-switch button.active { color: var(--gold); }
.lang-switch .sep { color: var(--silver-dim); padding: 4px 0; }

/* Hamburger menu (mobile) */
.menu-toggle {
  display: none;
  background: none; border: none; color: var(--cream);
  cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all .3s;
}

/* BUTTONS ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all .3s;
  border: 1px solid transparent;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border-radius: 2px;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 151, 69, 0.25);
}
.btn-ghost {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* SECTION TITLES ===================================== */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 500;
}
.section-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--gold);
}
.section-eyebrow.center { justify-content: center; }
.section-eyebrow.center::before { display: none; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 28px;
}
.section-title em { color: var(--gold); font-style: italic; }

.section-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--silver);
  max-width: 640px;
}

section { padding: 130px 0; }

/* PAGE HEADER (sub-pages) =========================== */
.page-header {
  padding: 200px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 151, 69, 0.12), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(187, 187, 182, 0.04), transparent 70%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .breadcrumb {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-header .breadcrumb span { color: var(--silver-dim); }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 24px;
}
.page-header h1 em { color: var(--gold); font-style: italic; }
.page-header .subtitle {
  color: var(--silver);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* MARQUEE BAR ======================================== */
.marquee-bar {
  background: var(--gold);
  color: var(--bg-deep);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee {
  display: flex;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.marquee span {
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 40px;
  display: flex; align-items: center;
}
.marquee span::after {
  content: '✦';
  margin-left: 80px;
  color: var(--bg-deep);
  opacity: 0.5;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* GRID HELPERS ======================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
  align-items: start;
}
.two-col-balanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.intro-text p {
  font-size: 17px;
  color: var(--silver);
  line-height: 1.85;
  margin-bottom: 22px;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { color: var(--cream); font-weight: 500; }

/* CARDS ============================================== */
.service-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 40px;
  overflow: hidden;
  transition: all .35s;
  display: flex; flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover {
  border-color: rgba(184, 151, 69, 0.35);
  transform: translateY(-4px);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 28px;
}
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 18px;
  line-height: 1.15;
}
.service-card p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
  flex: 1;
}
.service-card .card-link {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 28px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  transition: gap .25s;
}
.service-card .card-link:hover { gap: 18px; }
.service-card.featured {
  background: linear-gradient(135deg, #2c2a26, #1a1816);
  border-color: rgba(184, 151, 69, 0.25);
}
.service-card.featured h3 { color: var(--gold); }

/* STATS / NUMBERS =================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat {
  text-align: center;
  padding: 30px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
}
.stat .label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
}

/* CTA BAND =========================================== */
.cta-band {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px;
}
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--cream);
  font-weight: 300;
  line-height: 1.2;
  max-width: 600px;
}
.cta-band h2 em { color: var(--gold); font-style: italic; }

/* FORMS ============================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-field label .required { color: var(--gold); margin-left: 4px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .25s, background .25s;
  border-radius: 2px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='%23b89745'><path d='M3 5l4 4 4-4' stroke='%23b89745' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-field .help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.form-checkbox {
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--silver);
  line-height: 1.55;
  cursor: pointer;
}
.form-checkbox input[type=checkbox] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

/* FOOTER ============================================ */
footer.site {
  background: #0e0d0c;
  padding: 80px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
footer.site h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
footer.site p, footer.site a, footer.site li {
  color: var(--silver);
  font-size: 14px;
  line-height: 2;
  text-decoration: none;
}
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}

/* RESPONSIVE ========================================= */
@media (max-width: 980px) {
  .container { padding: 0 24px; }
  section { padding: 80px 0; }

  /* Header */
  .menu-toggle { display: block; }
  nav.primary {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(15, 14, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s ease;
  }
  nav.primary.open { transform: translateY(0); }
  nav.primary > a { font-size: 14px; }
  .lang-switch { padding-left: 0; border-left: none; padding-top: 14px; border-top: 1px solid var(--line); justify-content: center; }

  /* Layout */
  .two-col, .two-col-balanced { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat { border-left: 0; padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-header { padding: 140px 0 60px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
