/* =========================================================
   Fortin Advisory — styles.css
   Notes:
   - Tokens (couleurs/tailles) en haut
   - Layout ensuite, puis composants, puis sections, puis responsive
   ========================================================= */

/* =============== 1) DESIGN TOKENS =============== */
:root{
  --bg:#0b1220;
  --text:#e9eefc;
  --muted:#b9c3df;
  --line:rgba(255,255,255,.10);

  /* Palette (3 couleurs) */
  --brand:#4f8cff;            /* bleu acier */
  --brand-rgb:79 140 255;
  --brand2:#20c997;           /* teal */
  --brand2-rgb:32 201 151;
  --accent:#f5c451;           /* or doux */
  --accent-rgb:245 196 81;

  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:18px;
  --max:1080px;

  --sans:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* =============== 2) BASE / RESET =============== */
*{ box-sizing:border-box; }
html{ min-height:100%; }
body{
  min-height:100vh;
  margin:0;
  font-family:var(--sans);
  color:var(--text);

  background:
    radial-gradient(1200px 600px at 20% -10%, rgb(var(--brand-rgb) / .12), transparent 55%),
    radial-gradient(1000px 600px at 90% 10%, rgb(var(--brand2-rgb) / .10), transparent 50%),
    radial-gradient(900px 700px at 40% 110%, rgb(var(--brand-rgb) / .08), transparent 55%),
    var(--bg);
}

a{ color:inherit; }

/* Conteneur du site */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:28px 18px 56px;
}

/* =============== 3) HEADER (sticky + givré) =============== */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  min-height:96px;
  padding:14px 0;

  position:sticky;
  top:0;
  z-index:10;

  background:rgba(11,18,32,.55);
  border-bottom:1px solid rgba(255,255,255,.06);
}

@supports (backdrop-filter: blur(10px)){
  header{
    background:rgba(11,18,32,.18);
    backdrop-filter:blur(10px);
  }
}

.controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
}

/* Logo + baseline */
.brandline{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.1;
}

.logo{
  height:88px;
  width:auto;
  max-width:none;
  display:block;
}

.brandline small{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
}

/* =============== 4) COMPONENTS =============== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:14px;
  padding:11px 14px;

  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  text-decoration:none;

  color:var(--text);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
}

.btn.primary{
  border-color:rgb(var(--brand-rgb) / .85);
  background:linear-gradient(135deg,
    rgb(var(--brand-rgb) / .40),
    rgb(var(--accent-rgb) / .22)
  );
}

.btn:focus{
  outline:2px solid var(--brand);
  outline-offset:2px;
}

.lang-active{
  border-color:rgb(var(--brand-rgb) / .65);
  background:rgb(var(--brand-rgb) / .14);
}

.card{
  margin-top:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.pad{ padding:18px 18px 16px; }

h1{ margin:8px 0 10px; font-size:34px; line-height:1.08; letter-spacing:-.6px; }
h2{ margin:0 0 10px; font-size:18px; letter-spacing:-.2px; }
p{ margin:0 0 10px; color:var(--muted); line-height:1.55; }

/* Kicker */
.kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.35px;
  text-transform:uppercase;
}

.dot{
  width:8px;
  height:8px;
  border-radius:99px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 0 0 4px rgb(var(--brand-rgb) / .12);
}

/* Lists */
.list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;

  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:14px;
}

.icon{
  width:26px;
  height:26px;
  border-radius:10px;

  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;

  font-size:12px;
  font-weight:700;

  background:linear-gradient(135deg,
    rgb(var(--brand-rgb) / .22),
    rgb(var(--brand2-rgb) / .14)
  );
  border:1px solid rgb(255 255 255 / .10);
}

.li b{ font-size:13px; }
.li span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:3px;
  line-height:1.35;
}

/* =============== 5) LAYOUTS =============== */
.hero{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:18px;
  align-items:stretch;
  margin-top:8px;
}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* Contact 2 colonnes + photo */
.contact-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
  align-items:stretch;
}

.contact-photo{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.contact-photo img{
  width:100%;
  max-width:260px;
  aspect-ratio:4 / 5;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  display:block;
}

/* =============== 6) LANG SWITCH =============== */
[data-lang]{ display:block; }
html[data-lang="fr"] [data-lang="en"]{ display:none; }
html[data-lang="en"] [data-lang="fr"]{ display:none; }

/* =============== 7) RESPONSIVE =============== */
@media (max-width:900px){
  .hero{ grid-template-columns:1fr; }
  .grid2{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .controls{ flex-wrap:wrap; }
  .logo{ height:76px; }
  header{ min-height:88px; }
}
/* =========================================================
   Helpers (remplace les styles inline)
   ========================================================= */

/* Sous-carte sobre (utilisée dans Offre + Contact) */
.subcard{
  background: rgba(255,255,255,.03);
  box-shadow: none;
  margin-top: 0;
}

/* Rangée de CTA réutilisable */
.cta-row{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* H2 plus serré (au besoin) */
.h2-tight{
  margin:0 0 8px;
}

/* Texte contact (espacements propres) */
.contact-meta p{
  margin:0 0 10px;
}
.contact-meta .meta-line{
  margin:0 0 6px;
}
.contact-meta .meta-line-last{
  margin:0 0 14px;
}
.muted{ color: var(--muted); }
.m-0{ margin:0 !important; }
