/* ==========================================================================
   Evol-IT Services Sàrl — feuille de style principale
   ========================================================================== */

:root {
  /* Charte Evol-IT Services : #081AA3 (bleu de marque), #5593FF (bleu clair) */
  --brand-deep: #081aa3;
  --brand-light: #5593ff;

  --ink:        #ffffff;   /* fond de page */
  --surface:    #e9effc;   /* bandes et cartes */
  --surface-2:  #d7e2fa;   /* aplats plus marqués */
  --line:       rgba(8, 26, 163, .22);
  --line-soft:  rgba(8, 26, 163, .12);
  --text:       #10193f;
  --muted:      #4d5a80;
  --accent:     #081aa3;   /* liens et boutons : contraste sur fond clair */
  --accent-ink: #ffffff;   /* texte posé sur l'accent */
  --ok:         #0f8a5f;

  --max: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 10px;

  --f-display: "Ubuntu", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Ubuntu", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.14;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.lead { font-size: 1.14rem; color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1rem; z-index: 99; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Mise en page ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band--intro { padding-bottom: 0; }
.band--intro .band__head { margin-bottom: 0; }

.band--tint {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.band__head { max-width: 58ch; margin-bottom: 2.6rem; }
.band__head p { color: var(--muted); margin-bottom: 0; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(8, 26, 163, .14);
  box-shadow: 0 1px 3px rgba(8, 26, 163, .10);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 112px;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text); letter-spacing: -.01em; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 26px; height: 26px; flex: none;
  border: 2px solid var(--accent); border-radius: 7px;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 5px 5px auto 5px; height: 2px;
  background: var(--accent); box-shadow: 0 5px 0 var(--accent);
}
.brand small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: 0; }

.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--brand-deep); font-size: .96rem; font-weight: 500;
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; border-bottom-color: rgba(8, 26, 163, .35); }
.nav a[aria-current="page"] { border-bottom-color: var(--brand-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(8, 26, 163, .3);
  color: var(--brand-deep); border-radius: 8px; padding: .5rem .7rem;
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; inset: 88px 0 auto; display: none;
    background: #ffffff; border-bottom: 1px solid rgba(8, 26, 163, .14);
    padding: .5rem var(--gutter) 1.2rem;
    box-shadow: 0 12px 24px rgba(8, 26, 163, .12);
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-top: 1px solid rgba(8, 26, 163, .12); }
  @media (max-width: 520px) { .nav { inset: 74px 0 auto; } }
  .nav a { display: block; padding: .85rem 0; border-bottom: none; }
  .nav a[aria-current="page"] { color: var(--brand-deep); border-bottom: none; font-weight: 700; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block; font-weight: 600; font-size: .98rem;
  padding: .78rem 1.3rem; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; font-family: var(--f-body);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #0c25d6; }
.btn--ghost { border-color: var(--accent); border-width: 1.5px; color: var(--accent); background: transparent; font-weight: 600; }
.btn--ghost:hover { background: var(--surface-2); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Zones en aplat bleu de marque ---------- */

.band--brand,
.hero--brand {
  background: linear-gradient(135deg, #081aa3 0%, #0a21c4 100%);
  color: #ffffff;
  border-block: none;
}
.band--brand h1, .band--brand h2, .band--brand h3,
.hero--brand h1, .hero--brand h2 { color: #ffffff; }
.band--brand p, .hero--brand p,
.band--brand .lead, .hero--brand .lead { color: rgba(255, 255, 255, .86); }
.band--brand a:not(.btn), .hero--brand a:not(.btn) { color: #bcd2ff; }

.band--brand .btn--primary,
.hero--brand .btn--primary { background: #ffffff; color: var(--brand-deep); }
.band--brand .btn--primary:hover,
.hero--brand .btn--primary:hover { background: #dfe8ff; }
.band--brand .btn--ghost,
.hero--brand .btn--ghost { border-color: rgba(255, 255, 255, .7); color: #ffffff; }
.band--brand .btn--ghost:hover,
.hero--brand .btn--ghost:hover { background: rgba(255, 255, 255, .14); }

.band--brand .checks li,
.hero--brand .checks li { border-bottom-color: rgba(255, 255, 255, .22); }
.band--brand .checks li::before,
.hero--brand .checks li::before { border-color: #7fa8ff; }
.band--brand .facts dt, .band--brand .facts strong { color: #ffffff; }
.band--brand .facts dd { color: rgba(255, 255, 255, .8); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; }

.hero__note {
  margin-top: 2.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  font-size: .94rem; max-width: 52ch;
}
.hero--brand .hero__note { color: rgba(255, 255, 255, .78); }
.hero--brand h1 { max-width: 20ch; }
.hero--brand .lead { max-width: 58ch; font-size: 1.2rem; }

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

/* ---------- Cartes ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card__link { display: inline-block; margin-top: 1rem; font-size: .94rem; font-weight: 600; }

/* ---------- Démarche (séquence numérotée) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 2px solid var(--accent); }
.steps li::before {
  content: "Étape " counter(step);
  display: block; font-size: .82rem; color: var(--accent); margin-bottom: .5rem; font-weight: 600;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Service détaillé ---------- */

.service { padding-block: clamp(2.6rem, 6vw, 4rem); border-top: 1px solid var(--line-soft); }
.service:first-of-type { border-top: none; }
.service__grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .service__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative; padding: .5rem 0 .5rem 1.7rem;
  border-bottom: 1px solid var(--line-soft); font-size: .97rem;
}
.checks li:last-child { border-bottom: none; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 9px; height: 9px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px);
}

/* Sections de service sur la page d'accueil : le titre respire à gauche,
   la liste des prestations se lit à droite. */
.wrap.service__grid { align-items: start; }
@media (min-width: 900px) { .wrap.service__grid { gap: 3.5rem; } }

/* ---------- Faits / chiffres ---------- */

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts dt, .facts strong { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--accent); line-height: 1.1; }
.facts dd { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Formulaire ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .92rem; font-weight: 600; }
.field .hint { font-size: .84rem; color: var(--muted); font-weight: 400; }

input, select, textarea {
  font: inherit; font-size: .98rem; color: var(--text);
  background: #ffffff; border: 1px solid var(--line);
  border-radius: 8px; padding: .7rem .8rem; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(85, 147, 255, .45); }
textarea { min-height: 9rem; resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 8px;
  padding: 1rem 1.1rem; margin-bottom: 1.6rem; font-size: .96rem;
}
.notice--ok { border-left-color: var(--ok); }
.notice p { margin: 0; }

.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-details li:last-child { border-bottom: none; }
.contact-details strong { display: block; font-size: .86rem; color: var(--muted); font-weight: 500; }

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: none;
  background: var(--brand-deep);
  color: #ffffff;
  padding-block: 3rem 2rem;
  font-size: .93rem;
}
.site-footer h2 { font-size: .86rem; font-family: var(--f-body); color: rgba(255, 255, 255, .7); font-weight: 600; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .25rem 0; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #bcd2ff; }

.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__base {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .72); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .88rem;
}

/* ---------- Divers ---------- */

.center-narrow { max-width: 48ch; }
.mb0 { margin-bottom: 0; }

/* ---------- Logo ----------
   logo-blanc.svg : version pour fond sombre (texte en blanc, symbole bleu clair)
   logo.svg       : version d'origine, pour fond clair (impression, documents)   */
.brand__logo { height: 78px; width: auto; flex: none; display: block; }
.site-footer .brand__logo { height: 72px; }
@media (max-width: 860px) {
  .site-header__inner { min-height: 88px; }
  .brand__logo { height: 60px; }
  .site-footer .brand__logo { height: 60px; }
}
@media (max-width: 520px) {
  .site-header__inner { min-height: 74px; }
  .brand__logo { height: 46px; }
}

/* ---------- Bandeau de consentement ---------- */

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #ffffff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -6px 26px rgba(8, 26, 163, .16);
  padding: 1.2rem 0 calc(1.2rem + env(safe-area-inset-bottom, 0px));
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid; gap: 1.1rem; align-items: center;
}
@media (min-width: 900px) {
  .cookie-banner__inner { grid-template-columns: 1fr auto; gap: 2.5rem; }
}

.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.cookie-banner p { font-size: .93rem; color: var(--muted); margin: 0; max-width: 72ch; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.cookie-banner__actions .btn { padding: .6rem 1.1rem; }
.cookie-banner__actions a { font-size: .9rem; }

/* Bouton qui se comporte comme un lien (pied de page, mentions légales) */
.lien-bouton {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.lien-bouton:hover { color: var(--accent); text-decoration: underline; }

/* Avertissement court en pied de page */
.footer__disclaimer {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .72); font-size: .85rem; max-width: 90ch;
}
.site-footer .footer__grid p { color: rgba(255, 255, 255, .78); }
.site-footer .lien-bouton:hover { color: #bcd2ff; }

/* Ancres : compenser l'en-tête collant */
html { scroll-padding-top: 130px; }
@media (max-width: 860px) { html { scroll-padding-top: 100px; } }

code {
  font-size: .92em; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: .1em .4em;
}

/* ---------- Sous-menu des prestations ----------
   Les sélecteurs sont préfixés par .nav pour passer devant la règle
   générale « .nav ul { display: flex } », plus spécifique autrement. */

.nav > ul > li { display: flex; align-items: center; }

.nav .nav__parent { position: relative; padding-block: 2.2rem; }

.nav .nav__parent > a::after {
  content: ""; display: inline-block; margin-left: .45rem;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}

.nav ul.nav__sous {
  position: absolute; top: 100%; left: -.8rem; z-index: 50;
  min-width: 21rem; display: none; flex-direction: column; gap: 0;
  background: #ffffff; border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent); border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(8, 26, 163, .16);
  padding: .4rem; margin: 0;
}
.nav .nav__parent:hover > ul.nav__sous,
.nav .nav__parent:focus-within > ul.nav__sous { display: flex; }

.nav ul.nav__sous li { display: block; border: none; }
.nav ul.nav__sous a {
  display: block; padding: .6rem .8rem; border-radius: 6px;
  border-bottom: none; font-weight: 400; font-size: .94rem;
}
.nav ul.nav__sous a:hover { background: var(--surface); border-bottom: none; }
.nav ul.nav__sous small { display: block; color: var(--muted); font-size: .8rem; }

@media (max-width: 860px) {
  .nav > ul > li { display: block; }
  .nav .nav__parent { padding-block: 0; }
  .nav .nav__parent > a::after { display: none; }
  .nav ul.nav__sous {
    position: static; display: flex; min-width: 0;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 .7rem 1rem; border-radius: 0;
  }
  .nav ul.nav__sous a { padding: .45rem 0; font-size: .92rem; color: var(--muted); }
  .nav ul.nav__sous a:hover { background: none; color: var(--accent); }
  .nav ul.nav__sous small { display: none; }
}
