/* ========================================================================
   BLUE SKY IT — Feuille de style principale
   Palette dérivée du logo, en aplats (aucun dégradé décoratif)
   Typo : Fraunces (titres) + IBM Plex Sans (texte) + IBM Plex Mono (data)
   ======================================================================== */

:root {
  /* Couleurs — dérivées du logo, en aplats */
  --sky-mid:   #3E9BDB;
  --sky-deep:  #1B4F8C;
  --navy:      #123056;
  --navy-dark: #0B1F38;
  --cyan-accent: #1FA79A;
  --paper:     #F6F5F1;
  --paper-alt: #ECEAE3;
  --ink:       #14202B;
  --ink-soft:  #4B5C70;
  --line:      #DAD7CC;
  --white:     #FFFFFF;
  --danger:    #B3402F;
  --success:   #1E7A55;

  /* Typo */
  --font-display: 'Fraunces', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-card: 4px;
  --radius-pill: 999px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--sky-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--sky-mid); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan-accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
@media (max-width: 400px) {
  .brand img { height: 96px !important; width: 176px !important; margin: -26px 0 !important; }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
}
.nav-links a:hover { color: var(--sky-deep); text-decoration: underline; }
.nav-links a.active { color: var(--sky-deep); font-weight: 600; border-bottom: 2px solid var(--sky-deep); }

.nav-cta {
  background: var(--navy-dark);
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--sky-deep); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-dark); margin: 5px 0; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 24px 90px;
  background: var(--navy-dark);
  color: var(--white);
  border-bottom: 4px solid var(--sky-mid);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan-accent);
  border: 1px solid var(--cyan-accent);
  padding: 5px 12px; margin-bottom: 18px;
}
.hero h1 { color: var(--white); }
.hero-lead { color: #C9D6E2; font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--sky-mid); color: var(--white); }
.btn-primary:hover { background: var(--sky-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-outline { background: transparent; color: var(--sky-deep); border-color: var(--sky-deep); }
.btn-outline:hover { background: var(--paper-alt); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Illustration hero (statique, pas d'animation de pulsation) ---------- */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 380px; height: auto; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sky-deep); display: block; margin-bottom: 10px;
}

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1050px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky-mid);
  border-radius: var(--radius-card);
  padding: 30px;
}
.card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--sky-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.tag-index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--sky-deep); display: block; margin-bottom: 8px; }

/* ---------- Liste de services (remplace le triptyque de cartes par réflexe) ---------- */
.service-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .service-row { grid-template-columns: 1fr; gap: 8px; } }
.service-row .tag-index { font-size: 1.4rem; color: var(--line); margin-bottom: 0; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { border-left: 2px solid var(--sky-mid); padding-left: 14px; }
.stat .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-dark); display: block; }
.stat .label { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Valeurs ---------- */
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.value-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.value-list .dot { flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--cyan-accent); }

/* ---------- Bande CTA ---------- */
.cta-band {
  background: var(--navy-dark);
  color: white;
  border-radius: var(--radius-card);
  padding: 52px; text-align: left;
  border-left: 4px solid var(--sky-mid);
}
.cta-band h2 { color: white; }
.cta-band p { color: #C9D6E2; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.86rem; color: var(--navy-dark); margin-bottom: 6px; }
.form-row .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  font-family: var(--font-body); font-size: 0.95rem;
  background: var(--paper); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--sky-mid); outline: none; }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-soft); }
.form-checkbox input { margin-top: 3px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 6px; display: none; }
.form-row.invalid input, .form-row.invalid textarea { border-color: var(--danger); }
.form-row.invalid .form-error { display: block; }
.form-alert { padding: 14px 16px; border-radius: var(--radius-card); font-size: 0.9rem; margin-bottom: 18px; display: none; border: 1px solid transparent; }
.form-alert.success { background: #E7F2EB; color: var(--success); border-color: var(--success); display: block; }
.form-alert.error { background: #F8E9E6; color: var(--danger); border-color: var(--danger); display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #A9BCCF; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: white; font-size: 0.92rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: #A9BCCF; font-size: 0.88rem; text-decoration: none; }
.footer-grid a:hover { color: var(--cyan-accent); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}
.footer-bottom a { color: #A9BCCF; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--navy-dark); color: #D7E2EC;
  border-top: 3px solid var(--sky-mid);
  padding: 18px 24px;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-inner p { color: #D7E2EC; margin: 0; font-size: 0.86rem; max-width: 60ch; }
.cookie-actions { display: flex; gap: 10px; flex: none; }

/* ---------- Pages légales ---------- */
.legal-content h2 { margin-top: 2em; }
.legal-content h3 { margin-top: 1.3em; color: var(--sky-deep); }
.legal-content ul { color: var(--ink-soft); }
.legal-content .updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
.placeholder-flag {
  background: #F3EAD2; border: 1px solid #C9A94A; color: #6B5300;
  padding: 3px 8px; border-radius: 3px; font-size: 0.76rem; font-family: var(--font-mono);
}

/* ---------- Auth ---------- */
.auth-shell { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; background: var(--paper); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box .brand { justify-content: center; margin-bottom: 22px; }
.auth-box h1 { font-size: 1.6rem; text-align: center; }
.auth-sub { text-align: center; margin-bottom: 26px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.9rem; }
.pw-strength { height: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-strength span { display: block; height: 100%; width: 0%; background: var(--danger); }

/* ---------- Dashboard ---------- */
.dash-shell { min-height: calc(100vh - 68px); background: var(--paper-alt); padding: 40px 0 80px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.dash-card h3 { font-size: 1rem; margin-bottom: 6px; }
.status-pill { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: #E7F2EB; color: var(--success); }

/* ---------- Page 404 ---------- */
.error-shell { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; }
.error-shell .code { font-family: var(--font-mono); font-size: 0.9rem; color: var(--sky-deep); }

/* Utilitaires */
.center { text-align: center; }
.mt-lg { margin-top: 44px; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
