/* ==========================================================================
   Flopost — site marketing (site.css)
   Charte Flopix : bleu #55C8FA, violet #7C6FF0, dégradé de marque.
   ========================================================================== */
/* Police de marque General Sans (comme Flopix), hébergée en local. */
@font-face {
  font-family: "General Sans";
  src: url("/fonts/general-sans-var.woff2") format("woff2");
  font-weight: 200 700; font-style: normal; font-display: swap;
}

:root {
  --police: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bleu: #55C8FA; --bleu-fonce: #1FA9E8;
  --violet: #7C6FF0; --violet-fonce: #5F52D6;
  --degrade: linear-gradient(135deg, #55C8FA, #7C6FF0);
  --rayon: 14px; --max: 1120px;

  /* ---- Thème CLAIR (par défaut) ---- */
  --texte: #16181d; --gris: #5b6472; --gris-clair: #8b93a1;
  --bord: #e7eaef; --fond: #ffffff; --fond-doux: #f6f8fb; --surface: #ffffff;
  --lien: #0B5E85;
  --nav-bg: rgba(255,255,255,.82);
  --ombre: 0 10px 40px rgba(20, 30, 60, 0.08);
}
/* ---- Thème SOMBRE : si le navigateur le préfère (sauf choix « clair »),
   ou si l'utilisateur bascule explicitement en « sombre ». ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --texte: #e8eaf0; --gris: #939bab; --gris-clair: #6f7787;
    --bord: #272c38; --fond: #0e1014; --fond-doux: #15181f; --surface: #15181f;
    --lien: #7fd0fb;
    --nav-bg: rgba(18,21,28,.72);
    --ombre: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --texte: #e8eaf0; --gris: #939bab; --gris-clair: #6f7787;
  --bord: #272c38; --fond: #0e1014; --fond-doux: #15181f; --surface: #15181f;
  --lien: #7fd0fb;
  --nav-bg: rgba(18,21,28,.72);
  --ombre: 0 12px 40px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; margin: 0; }
/* Filet de securite : jamais de defilement horizontal sur mobile. */
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--police);
  color: var(--texte); background: var(--fond); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lien); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.enveloppe { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.grad { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--gris); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  font-family: var(--police); line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .2s ease, filter .15s, background .15s, border-color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0); }
/* CTA principal : dégradé de marque, texte blanc. */
.btn-degrade { background: var(--degrade); color: #fff; box-shadow: 0 8px 22px rgba(124,111,240,.30); }
.btn-degrade:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(124,111,240,.42); filter: brightness(1.05); }
/* Bouton plein bleu (alternatif). */
.btn-primaire { background: var(--bleu); color: #06212e; }
.btn-primaire:hover { background: var(--bleu-fonce); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(85,200,250,.30); }
/* Bouton secondaire discret sur fond sombre. */
.btn-fantome { background: var(--surface); color: var(--texte); border-color: var(--bord); }
.btn-fantome:hover { background: var(--fond-doux); border-color: var(--violet); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; border-radius: 13px; }

/* ---------- En-tête ---------- */
/* Le conteneur #site-header ne doit pas former de bloc englobant, sinon le
   header "sticky" resterait prisonnier de sa propre hauteur et disparaitrait
   au premier scroll. display:contents le fait s'effacer : le header colle
   alors par rapport a la page entiere. */
#site-header { display: contents; }

/* Bannière cookies (essentiels uniquement, purement informative). */
.cookie-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 80; width: min(920px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--bord);
  box-shadow: 0 10px 40px rgba(20,24,40,.16); border-radius: 14px;
  padding: 14px 18px; font-size: 14px; line-height: 1.5;
}
.cookie-bar span { flex: 1; }
.cookie-bar button { flex-shrink: 0; }
@media (max-width: 620px) { .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; } }
/* Header épuré et FLOTTANT : une barre arrondie centrée (~80% de largeur),
   translucide, détachée des bords. Plus sobre qu'une barre pleine largeur. */
header.site { position: sticky; top: 0; z-index: 50; background: transparent; padding: 16px 0; }
/* Header large : ~90% de la fenêtre, aéré. */
header.site .enveloppe { width: 90%; max-width: 1500px; padding: 0; }
.site-nav {
  display: flex; align-items: center; gap: 26px; height: 70px; position: relative;
  padding: 0 20px 0 26px;
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--bord); border-radius: 18px;
  box-shadow: var(--ombre);
}
/* Conteneur liens + actions : ligne pleine largeur sur desktop. */
.site-menu { display: flex; align-items: center; flex: 1; gap: 18px; }
.site-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--texte); }
.site-logo:hover { text-decoration: none; }
.site-logo img { width: 28px; height: 28px; border-radius: 8px; }
.site-logo span { color: var(--bleu); }
.site-liens { display: flex; align-items: center; gap: 20px; margin-left: 12px; }
.site-liens a { color: var(--gris); font-weight: 550; font-size: 15px; }
.site-liens a:hover { color: var(--texte); text-decoration: none; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* Sélecteur de langue par DRAPEAUX. */
.langue-choix { display: inline-flex; gap: 4px; }
.langue-choix button {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent; border-radius: 9px;
  padding: 5px 8px; cursor: pointer; line-height: 1; opacity: .55;
  font-family: var(--police); font-size: 12.5px; font-weight: 700; color: var(--texte);
  transition: opacity .15s, border-color .15s, background .15s;
}
.langue-choix button .dp { width: 20px; height: 14px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.langue-choix button:hover { opacity: .9; }
.langue-choix button.actif { opacity: 1; background: var(--fond-doux); border-color: var(--bord); }
.reglages-mini { display: inline-flex; align-items: center; gap: 4px; }
.theme-btn {
  background: var(--surface); border: 1px solid var(--bord); border-radius: 9px;
  width: 38px; height: 34px; font-size: 16px; cursor: pointer; line-height: 1;
  color: var(--texte); transition: border-color .15s, background .15s;
}
.theme-btn:hover { border-color: var(--violet); }
.burger-site { display: none; background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; color: var(--texte); cursor: pointer; }

/* Étoiles Trustpilot : carré vert plein portant une étoile blanche (comme
   sur Trustpilot). Rendu maison, aucun script tiers. */
.tp-etoiles { display: inline-flex; gap: 3px; }
.tp-star {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: #00b67a; border-radius: 3px;
  color: #fff; font-size: 14px; line-height: 1;
}
.tp-logo { height: 20px; width: auto; vertical-align: middle; }
.tp-note { font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
.section-doux { background: var(--fond-doux); }
.centre { text-align: center; }
.plomb { max-width: 680px; margin: 0 auto 44px; }
.plomb p { font-size: 18px; color: var(--gris); margin-top: 12px; }
.etiquette { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-fonce); background: #ecebff; padding: 6px 14px; border-radius: 999px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero::before { content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: var(--bleu); opacity: .10; filter: blur(120px); top: -300px; right: -200px; }
.hero::after { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--violet); opacity: .09; filter: blur(120px); bottom: -300px; left: -180px; }
.hero .enveloppe { position: relative; text-align: center; }
.hero h1 { max-width: 860px; margin: 18px auto 0; }
.hero .sous { font-size: 20px; color: var(--gris); max-width: 640px; margin: 20px auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--gris-clair); }

/* ---------- Grilles / cartes ---------- */
.grille { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; transition: transform .15s, box-shadow .2s; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--degrade); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.carte h3 { margin-bottom: 8px; }
.carte p { color: var(--gris); font-size: 15px; }

/* ---------- Réseaux ---------- */
.reseaux-bande { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; align-items: center; opacity: .85; }
.reseaux-bande span { font-weight: 700; color: var(--gris); font-size: 17px; }

/* ---------- Tarifs ---------- */
.tarifs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 780px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; padding: 32px; position: relative; }
.plan.vedette { border: 2px solid var(--bleu); box-shadow: 0 14px 44px rgba(85,200,250,.18); }
.plan .badge-eco { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--degrade); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan .prix { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 4px; }
.plan .prix small { font-size: 16px; font-weight: 600; color: var(--gris); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 8px 0 8px 28px; position: relative; color: var(--texte); font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--bleu-fonce); font-weight: 800; }

/* ---------- Avis (Trustpilot-like) ---------- */
.etoiles { color: #00b67a; font-size: 18px; letter-spacing: 2px; }
.avis { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; }
.avis p { color: var(--texte); font-size: 15px; margin: 10px 0; }
.avis .auteur { font-size: 14px; color: var(--gris); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--bord); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 17px; font-weight: 650; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--texte); }
.faq-q::after { content: '+'; font-size: 24px; color: var(--gris); flex-shrink: 0; }
.faq-item.ouvert .faq-q::after { content: '−'; }
.faq-r { display: none; padding: 0 0 20px; color: var(--gris); font-size: 15.5px; }
.faq-item.ouvert .faq-r { display: block; }

/* ---------- Bandeau CTA ---------- */
.cta-bloc { background: var(--degrade); border-radius: 22px; padding: 56px 30px; text-align: center; color: #fff; }
.cta-bloc h2 { color: #fff; margin-bottom: 10px; }
.cta-bloc p { color: rgba(255,255,255,.92); font-size: 18px; margin: 0 auto 28px; max-width: 560px; }
/* Sur le dégradé, un bouton dégradé se fondrait : on force un bouton blanc
   contrasté, avec de l'air autour. */
.cta-bloc .btn { margin-top: 6px; background: #fff; color: #5F52D6; border-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.cta-bloc .btn:hover { background: #fff; filter: none; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0,0,0,.26); }

/* ---------- Blog ---------- */
.article-carte { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; transition: transform .15s, box-shadow .2s; }
.article-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); text-decoration: none; }
.article-carte .vignette { height: 150px; background: var(--degrade); }
.article-carte .corps { padding: 20px; }
.article-carte h3 { color: var(--texte); margin-bottom: 8px; }
.article-carte p { color: var(--gris); font-size: 14.5px; }
.article-carte .meta { font-size: 12.5px; color: var(--gris-clair); margin-top: 12px; }
article.contenu { max-width: 760px; margin: 0 auto; }
article.contenu h2 { margin: 34px 0 12px; }
article.contenu p { margin: 14px 0; font-size: 17px; }
article.contenu ul { margin: 14px 0; padding-left: 22px; }
article.contenu li { margin: 6px 0; }

/* ---------- Tableau comparatif ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--bord); font-size: 15px; }
.compare th { background: var(--fond-doux); font-weight: 700; }
.compare td.oui { color: #00a06a; font-weight: 700; }
.compare td.non { color: #c0392b; }

/* ---------- Pied de page ---------- */
footer.site { background: #0e1320; color: #c4ccd8; padding: 56px 0 30px; }
footer.site a { color: #c4ccd8; }
footer.site a:hover { color: #fff; }
.foot-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.foot-col a { display: block; padding: 5px 0; font-size: 14.5px; }
.foot-marque { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
.foot-marque img { width: 26px; height: 26px; border-radius: 7px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 340px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 9px; border: 1px solid #2a3345; background: #161d2c; color: #fff; font-size: 14px; }
.newsletter button { white-space: nowrap; }
.foot-bas { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid #212a3b; font-size: 13.5px; color: #8b93a1; }
.foot-bas .langue-choix { border-color: #2a3345; }
.foot-bas .langue-choix button { background: #161d2c; color: #8b93a1; }
.foot-bas .langue-choix button.actif { background: #222c3f; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .foot-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Le menu complet (liens + actions) se replie dans le burger. */
  .burger-site { display: inline-block; flex-shrink: 0; margin-left: auto; }
  .site-menu { display: none; }
  .site-menu.ouvert {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 66px; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-bottom: 1px solid var(--bord);
    padding: 16px 22px 22px; gap: 14px;
    box-shadow: 0 16px 40px rgba(20,24,40,.10);
  }
  .site-menu.ouvert .site-liens { flex-direction: column; align-items: stretch; gap: 4px; margin-left: 0; }
  .site-menu.ouvert .site-liens a { padding: 10px 0; font-size: 16px; }
  .site-menu.ouvert .site-actions { margin-left: 0; flex-direction: column; align-items: stretch; gap: 10px; }
  .site-menu.ouvert .site-actions .btn { width: 100%; text-align: center; }
  .site-menu.ouvert #langHeader { align-self: flex-start; }
}
@media (max-width: 720px) {
  section { padding: 54px 0; }
  .g3, .g2, .g4, .tarifs { grid-template-columns: 1fr; }
  .foot-grille { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero .sous { font-size: 18px; }
}
@media (max-width: 560px) {
  .foot-grille { grid-template-columns: 1fr; gap: 26px; }
  .newsletter { max-width: 100%; }
}
