/* ==========================================================================
   Reanet — vitrine personnelle
   Feuille de style principale
   --------------------------------------------------------------------------
   Palette  : bleu foncé / blanc / gris clair / vert rainette
   Typo     : Inter (fallback system)
   Approche : utilitaire léger, mobile-first, prêt à porter dans un thème WP
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* ===========================================================
     Palette Reanet — extraite des couleurs exactes du logo
     Bleu  #0A2440  · Vert  #60B050  · Orange  #F87000
     =========================================================== */
  --c-bg:        #FFFFFF;
  --c-bg-soft:   #F5F7FA;
  --c-bg-card:   #FFFFFF;
  --c-border:    #E5E7EB;
  --c-text:      #1F2937;
  --c-text-soft: #4B5563;
  --c-text-mute: #6B7280;

  --c-primary:        #0A2440;   /* Bleu marine profond du logo */
  --c-primary-hover:  #13345A;
  --c-primary-soft:   #E8EDF5;

  --c-accent:        #60B050;    /* Vert rainette vif du logo */
  --c-accent-hover:  #4F9A40;
  --c-accent-soft:   #E8F4DD;

  --c-orange:        #F87000;    /* Orange tangerine du logo */
  --c-orange-hover:  #DC6300;
  --c-orange-soft:   #FEEDD8;

  /* Notice = palette orange Reanet (rappel logo, cohérence mandat électif) */
  --c-info-bg:    #FEEDD8;
  --c-info-bd:    #F87000;
  --c-info-tx:    #8A3E00;

  /* Typographie */
  --ff-base: "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ff-head: "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  /* Rayons / ombres / espacements */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow:    0 6px 20px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 18px 40px rgba(15,23,42,.10);

  --container: 1120px;
  --gutter: 1.25rem;
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--c-primary);
  line-height: 1.25;
  margin: 0 0 .5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
  position: relative;
  padding-bottom: .55rem;
}
/* Petit filet orange court sous chaque H2 — rappel discret du logo */
h2::after {
  content: "";
  display: block;
  width: 42px; height: 3px;
  background: var(--c-orange);
  border-radius: 2px;
  margin-top: .55rem;
}
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 760px; }
/* Sur les pages texte longues (légales, etc.) on n'ajoute pas le filet orange
   sous chaque H2 — sinon ça surcharge la lecture. */
.container--narrow h2::after { display: none; }

.section {
  padding: 4rem 0;
}
.section--soft { background: var(--c-bg-soft); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--c-primary); color: #fff;
  padding: .5rem .9rem; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem var(--gutter);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav__menu {
  display: flex; gap: .25rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav__menu a {
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 500;
  font-size: .95rem;
}
.nav__menu a:hover { background: var(--c-primary-soft); text-decoration: none; }
.nav__link--active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  font-weight: 600;
  position: relative;
}
/* Switcher d'univers (← Espace pro / ← Espace particuliers) */
.nav__switch {
  margin-left: .35rem;
  padding-left: .8rem;
  border-left: 1px solid var(--c-border);
}
.nav__switch-link {
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--c-text-mute) !important;
  font-size: .85rem;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav__switch-link:hover {
  color: var(--c-orange) !important;
  background: var(--c-orange-soft);
  text-decoration: none;
}
@media (max-width: 800px) {
  .nav__switch { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--c-border); padding-top: .5rem; margin-top: .25rem; }
}
/* Petit point orange devant le lien actif — rappel logo */
.nav__link--active::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
  margin-right: .45rem;
  vertical-align: 2px;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 4px;
  background: transparent; border: 1px solid var(--c-border);
  padding: .55rem .65rem; border-radius: 8px; cursor: pointer;
}
.nav-toggle__bar {
  width: 22px; height: 2px; background: var(--c-primary); display: block;
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav__menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-border);
    padding: .5rem var(--gutter);
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { width: 100%; }
  .nav__menu a { display: block; width: 100%; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  font-weight: 600;
  font-size: .95rem;
  background: var(--c-primary);
  color: #fff !important;
  border: 1px solid var(--c-primary);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  text-decoration: none !important;
}
.btn:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-primary) !important;
}
.btn--ghost:hover { background: var(--c-primary-soft); }
.btn--accent {
  background: var(--c-accent); border-color: var(--c-accent);
}
.btn--accent:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.btn--orange {
  background: var(--c-orange); border-color: var(--c-orange);
  color: var(--c-primary) !important;
}
.btn--orange:hover { background: var(--c-orange-hover); border-color: var(--c-orange-hover); }
.btn--small { padding: .55rem .9rem; font-size: .9rem; }

.btn-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(74,157,95,.10), transparent 60%),
    radial-gradient(700px 360px at -10% 30%, rgba(27,42,78,.08), transparent 60%);
}
.hero__eyebrow {
  display: inline-block;
  padding: .35rem .75rem;
  background: var(--c-accent-soft);
  color: var(--c-accent-hover);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__eyebrow--orange {
  background: var(--c-orange-soft);
  color: var(--c-orange-hover);
}
.hero h1 .accent { color: var(--c-orange-hover); }  /* orange foncé : contraste AA-large + cohérence logo */
.hero h1::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  background: var(--c-orange);
  border-radius: 2px;
  margin: .85rem 0 .5rem;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--c-text-soft);
  max-width: 680px;
}
.hero__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Stats sous le hero */
.hero__stats {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
@media (max-width: 600px) { .hero__stats { grid-template-columns: 1fr; } }
.stat {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.stat__value {
  display: block;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.05rem;
}
.stat__label {
  display: block;
  color: var(--c-text-mute);
  font-size: .85rem;
  margin-top: 2px;
}

/* Carte d'aperçu (à droite du hero) */
.preview {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}
.preview__dots { display: inline-flex; gap: 6px; }
.preview__dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cdd5e3; display: inline-block;
}
.preview__dots i:nth-child(1) { background: #f59e9e; }
.preview__dots i:nth-child(2) { background: #f5d57a; }
.preview__dots i:nth-child(3) { background: #93cf9f; }
.preview__body { padding: 1.25rem; }
.preview__body h3 { margin-top: 0; }
.checklist {
  margin: .25rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--c-text-soft);
}
.checklist li { margin: .25rem 0; }

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1rem 0;
}
.mini {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: .55rem .7rem;
}
.mini__k {
  display: block;
  color: var(--c-text-mute);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mini__v {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 2px;
  color: var(--c-text);
}
.btn--block { display: flex; width: 100%; }

/* ---------- Bandeau cadre ---------- */
.notice {
  margin: 2rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--c-info-bg);
  border-left: 4px solid var(--c-info-bd);
  color: var(--c-info-tx);
}
.notice strong { color: var(--c-info-tx); }
.notice p { margin: .25rem 0; }

/* ---------- Cartes ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6dbe4; }
/* Variante mandat électif : liseré gauche orange — identifie visuellement les outils du mandat */
.card--mandat {
  border-left: 3px solid var(--c-orange);
}
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft);
  color: var(--c-accent-hover);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
/* Variante orange : pour les cards "humaines" / mandat / accompagnement */
.card__icon--orange {
  background: var(--c-orange-soft);
  color: var(--c-orange-hover);
}
/* Variante bleue : pour les cards plus neutres / process */
.card__icon--blue {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.card p  { color: var(--c-text-soft); margin: 0; font-size: .95rem; }

/* ---------- Badges techniques ---------- */
.badges {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0; list-style: none;
}
.badges li {
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.badges li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-right: .55rem;
  vertical-align: 1px;
}

/* ---------- Étapes méthode ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 1rem; top: 1.1rem;
  width: 2.4rem; height: 2.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff;
  border-radius: 50%;
  font-weight: 700;
}
.steps li h3 { margin: 0 0 .25rem; }
.steps li p  { margin: 0; color: var(--c-text-soft); }

/* ---------- Formulaire ---------- */
.form {
  display: grid; gap: 1rem;
  max-width: 640px;
  margin-top: 1.5rem;
}
.form label {
  display: block; font-weight: 600; color: var(--c-primary);
  margin-bottom: .35rem; font-size: .95rem;
}
.form input,
.form textarea {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit; color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .help { font-size: .85rem; color: var(--c-text-mute); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  background: var(--c-primary);
  color: #cdd5e3;
  /* Filet orange en haut du footer — rappel logo */
  border-top: 4px solid var(--c-orange);
}
.site-footer a {
  color: #ffffff;
  transition: color .15s ease;
}
.site-footer a:hover {
  color: var(--c-orange);
  text-decoration: none;
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1.6fr;
  padding: 3rem 0 2rem;
}
.site-footer__brand {
  display: flex; align-items: flex-start; gap: .9rem;
}
.site-footer__brand img { background: #fff; padding: 5px; border-radius: 10px; }
.site-footer__name { color: #fff; font-weight: 700; margin: 0; font-size: 1.1rem; }
.site-footer__tag  { color: #9aa6bd; margin: 0; font-size: .9rem; }
.site-footer__title { color: #fff; font-weight: 600; margin: 0 0 .5rem; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav li { margin: .25rem 0; }
.site-footer__legal p { font-size: .88rem; line-height: 1.55; margin: 0 0 .5rem; color: #b5bdcf; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .9rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .85rem; color: #9aa6bd;
}
.site-footer__copyright {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0;
}
.site-footer__copyright img {
  background: #fff;
  padding: 3px;
  border-radius: 6px;
  flex-shrink: 0;
}
.site-footer__legal-links {
  list-style: none; padding: 0; margin: 0;
  display: inline-flex; gap: .55rem; align-items: center;
}
.site-footer__legal-links li[aria-hidden] { color: #5e6a82; }

@media (max-width: 800px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Splash d'accueil (page d'orientation) ---------- */
.hero--splash { padding-bottom: 4rem; }
.splash-intro { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.splash-intro h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); }
.splash-intro p { margin-left: auto; margin-right: auto; }

.splash-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto 2rem;
  max-width: 1000px;
}
@media (max-width: 800px) { .splash-grid { grid-template-columns: 1fr; } }

.splash-card {
  display: block;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none !important;
  color: inherit;
}
.splash-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-orange);
}
.splash-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--c-primary-soft);
  border-radius: 16px;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.splash-card--particuliers .splash-card__icon { background: var(--c-orange-soft); }
.splash-card--pro .splash-card__icon { background: var(--c-accent-soft); }
.splash-card h2 { margin: 0 0 .5rem; padding-bottom: 0; }
.splash-card h2::after { display: none; }   /* pas de filet auto sur ces titres */
.splash-card__lead { color: var(--c-text-soft); font-size: 1rem; margin: 0 0 1rem; }
.splash-card__list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  font-size: .95rem; color: var(--c-text-soft);
}
.splash-card__list li { padding: .25rem 0 .25rem 1.4rem; position: relative; }
.splash-card__list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--c-orange); font-weight: 700;
}
.splash-card__price {
  background: var(--c-bg-soft);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  font-size: .9rem;
  margin: 1rem 0;
  color: var(--c-text);
}
.splash-card__cta {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 600;
  color: var(--c-primary);
  font-size: .95rem;
}
.splash-card:hover .splash-card__cta { color: var(--c-orange); }

.splash-civic {
  text-align: center;
  font-size: .92rem;
  color: var(--c-text-soft);
  background: var(--c-primary-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2rem auto 0;
  max-width: 720px;
}
.splash-civic a { color: var(--c-primary); }

/* ---------- Tags catégories ---------- */
.tag {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  margin-bottom: .85rem;
}
/* Tags alignés sur la palette Reanet */
.tag--perso   { background: var(--c-accent-soft);  color: #2D6020; border-color: #BFE2A8; }
.tag--demo    { background: var(--c-primary-soft); color: var(--c-primary); border-color: #C9D2E2; }
.tag--mandat  { background: var(--c-orange-soft);  color: var(--c-info-tx); border-color: #F8C892; }
.tag--outil   { background: #F1F3F6;               color: #4B5563; border-color: #E1E5EB; }

.legend {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1.25rem 0 1rem;
}
.legend .tag { margin-bottom: 0; }

/* ---------- Bouton retour en haut (orange Reanet) ---------- */
.to-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-orange); color: var(--c-primary);
  border: none;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
  z-index: 60;
}
.to-top:hover { background: var(--c-orange-hover); }
.to-top.is-visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Marque ReaNet (R/N orange — Roissard Nicolas) ---------- */
.brand-name { white-space: nowrap; }
.brand-name__r,
.brand-name__n {
  color: var(--c-orange);
  font-weight: inherit;
  /* on garde la même taille / typographie que le contexte ;
     juste la couleur change pour signer R et N. */
}
/* Sur les surfaces sombres (footer bleu marine), garder l'orange visible */
.site-footer .brand-name__r,
.site-footer .brand-name__n { color: var(--c-orange); }

/* ---------- Petits utilitaires ---------- */
.lead   { font-size: 1.1rem; color: var(--c-text-soft); }
.muted  { color: var(--c-text-mute); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
