/* CASTLECLOUD — theme sombre, charte du logo (periwinkle #7D99D6, ardoise
   #4C6591). Partage FR/EN : une seule feuille, deux pages. */
:root {
  --bg: #0B0F17;
  --surface: #10161F;
  --card: #141B29;
  --ink: #E8EDF6;
  --muted: #92A0B5;
  --brand: #7D99D6;
  --brand-deep: #52709F;
  --line: #1F2938;
  /* La pointe CHAUDE : un ambre dore, complementaire du periwinkle. Trois
     usages seulement (badge, filet des cartes, role du fondateur) — c'est un
     assaisonnement, pas une seconde couleur de marque. */
  --chaud: #E2B36E;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  /* Deux lueurs bleu nuit tres diffuses : de la profondeur sans gradient
     tapageur. Le fond reste quasi noir. */
  background:
    radial-gradient(1100px 620px at 50% -140px, rgba(125, 153, 214, 0.10), transparent 65%),
    radial-gradient(900px 700px at 88% 82%, rgba(76, 101, 145, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wordmark, .tagline { font-family: 'Questrial', system-ui, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--brand);
}
.lang {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
}
.lang a { color: var(--muted); padding: 4px 6px; }
.lang .actif { color: var(--ink); font-weight: 600; }
.lang a:hover { color: var(--brand); text-decoration: none; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  text-align: center;
}
.hero .fond {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero .fond svg {
  height: 620px;
  margin-top: -80px;
  opacity: 0.05;
}
.hero .mark {
  height: 96px;
  margin-bottom: 34px;
  filter: drop-shadow(0 0 34px rgba(125, 153, 214, 0.38));
  animation: flotter 7s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: clamp(6px, 1.4vw, 14px);
  font-weight: 400;
  text-indent: clamp(6px, 1.4vw, 14px); /* compense le letter-spacing final */
  /* Degrade discret clair -> periwinkle : du relief, pas un arc-en-ciel. */
  background: linear-gradient(115deg, #B9C8EC 10%, var(--brand) 55%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Entree en scene du hero : fondu + remontee, echelonnes. */
.hero .mark, .hero h1, .hero .swoosh, .hero .tagline, .hero .pitch, .hero .badge {
  animation-name: lever;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  animation-fill-mode: both;
}
.hero .mark { animation-name: lever, flotter; animation-duration: 0.9s, 7s;
  animation-iteration-count: 1, infinite; animation-delay: 0s, 0.9s; }
.hero h1 { animation-delay: 0.12s; }
.hero .swoosh { animation-delay: 0.24s; }
.hero .tagline { animation-delay: 0.3s; }
.hero .pitch { animation-delay: 0.42s; }
.hero .badge { animation-delay: 0.54s; }
@keyframes lever {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flotter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.hero .swoosh { width: min(520px, 80%); margin: 18px auto 14px; display: block; }
.hero .tagline {
  font-size: 15px;
  letter-spacing: 7px;
  text-indent: 7px;
  color: var(--brand-deep);
}
.hero p.pitch {
  margin: 44px auto 0;
  max-width: 58ch;
  font-size: 18px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chaud);
  border: 1px solid rgba(226, 179, 110, 0.45);
  border-radius: 999px;
  padding: 8px 20px;
}

/* ── Sections ── */
section { padding: 76px 0; }
section + section, .hero + section { border-top: 1px solid var(--line); }
h2 {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 34px;
}
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.carte {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
/* Filet d'accent en tete de carte, revele au survol. */
.carte::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--chaud), var(--brand) 45%, transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.carte:hover {
  border-color: var(--brand-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.carte:hover::before { transform: scaleX(1); }
.carte .pictos {
  height: 26px;
  margin-bottom: 16px;
  color: var(--brand);
  transition: transform 0.25s ease;
}
.carte:hover .pictos { transform: translateY(-2px) scale(1.06); }
.carte h3 { font-size: 17px; letter-spacing: 0.5px; margin-bottom: 10px; }
.carte p { font-size: 14px; color: var(--muted); }

/* ── Approche ── */
.approche {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.approche h3 {
  font-size: 16px;
  color: var(--brand);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.approche p { font-size: 14px; color: var(--muted); }
.approche .num {
  font-family: 'Questrial', sans-serif;
  font-size: 30px;
  color: transparent;
  -webkit-text-stroke: 1px var(--brand-deep);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 14px;
}

/* ── Produit ── */
.produit {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(125, 153, 214, 0.08), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  transition: border-color 0.25s ease;
}
.produit:hover { border-color: var(--brand-deep); }
.produit h3 a::after {
  content: ' →';
  color: var(--brand-deep);
  transition: color 0.25s ease;
}
.produit:hover h3 a::after { color: var(--brand); }
.produit h3 { font-size: 24px; letter-spacing: 1px; }
.produit p { font-size: 15px; color: var(--muted); max-width: 52ch; }

/* ── Fondateur ── */
.fondateur {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.fondateur .photo {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(125, 153, 214, 0.06);
}
.fondateur .texte { flex: 1; min-width: 260px; }
.fondateur .texte h3 { font-size: 22px; letter-spacing: 1px; margin-bottom: 4px; }
.fondateur .role {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chaud);
  margin-bottom: 16px;
}
.fondateur .texte p { color: var(--muted); font-size: 15px; max-width: 58ch; }

/* ── Mentions / footer ── */
.legal { font-size: 14px; color: var(--muted); }
.legal strong { color: var(--ink); }
.legal p + p { margin-top: 8px; }
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  font-size: 13px;
  color: var(--muted);
}
footer .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
footer .marque { display: flex; align-items: center; gap: 10px; }
footer .marque span {
  font-family: 'Questrial', sans-serif;
  letter-spacing: 2px;
  color: var(--brand-deep);
  font-size: 13px;
}
footer .droits { margin-left: auto; }

/* ── Apparition au defilement ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
/* Sans JS (ou si l'observer ne tire pas), tout reste lisible. */
.no-observer .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .mark, .hero h1, .hero .swoosh, .hero .tagline,
  .hero .pitch, .hero .badge { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carte, .carte .pictos { transition: none; }
}

@media (max-width: 640px) {
  .hero { padding: 72px 0 60px; }
  .fondateur { gap: 28px; }
}
