/* =========================================================================
   Microlev — Socle de design
   Charte graphique Microlev : bleu #06578B et orange #F15826.
   Le bleu porte les surfaces sombres (en-tête, pied de page, sections),
   l'orange est la couleur d'action. Les deux ayant une luminosité proche
   (2,25:1 entre eux), on ne pose jamais l'un en texte sur l'autre.
   ========================================================================= */

:root {
  /* --- Bleu de charte : surfaces sombres et couleur structurante --- */
  --brand:      #06578b;   /* bleu de la charte, tel quel */
  --brand-900:  #05314e;   /* bleu approfondi : voile du hero, bloc prix */
  --brand-700:  #044263;
  --brand-300:  #4a8dcb;

  /* --- Déclinaison bleutée pour le texte --- */
  --ink:        #0d2d42;   /* titres et texte fort */
  --ink-800:    #16405c;
  --ink-700:    #2a5b7a;   /* texte courant */
  --ink-500:    #5c7f96;
  --ink-400:    #7f9cb1;
  --ink-200:    #c2d5e2;

  --paper:      #eef3f7;
  --paper-2:    #e0eaf2;
  --surface:    #ffffff;
  --line:       #d5e1ea;
  --line-strong:#b9cbd9;

  /* --- Orange de charte : couleur d'action --- */
  --hi:         #f15826;
  --hi-600:     #d6430f;
  --hi-100:     #fdeae2;

  /* Texte posé SUR l'orange. Le blanc sur #f15826 ne donne que 3,4:1,
     sous le seuil WCAG AA ; ce bleu très sombre monte à 4,9:1. */
  --on-hi:      #05202f;

  --focus:      #d6430f;

  --ok:         #1f7a4d;
  --alert:      #b4442d;

  /* --- Typographie --- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --fs-xs:  0.78rem;
  --fs-sm:  0.875rem;
  --fs-base:1rem;
  --fs-md:  clamp(1.05rem, 0.98rem + 0.3vw, 1.18rem);
  --fs-lg:  clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl:  clamp(1.55rem, 1.3rem + 1.1vw, 2.1rem);
  --fs-2xl: clamp(1.9rem, 1.45rem + 1.9vw, 2.9rem);
  --fs-3xl: clamp(2.3rem, 1.6rem + 2.9vw, 3.9rem);

  /* --- Structure --- */
  --container: 1220px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 84px;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(6, 40, 63, .07), 0 2px 8px rgba(6, 40, 63, .06);
  --shadow:    0 2px 4px rgba(6, 40, 63, .06), 0 12px 28px rgba(6, 40, 63, .11);
  --shadow-lg: 0 4px 10px rgba(6, 40, 63, .08), 0 24px 56px rgba(6, 40, 63, .16);

  --ease: cubic-bezier(.22, .68, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

img, video, svg, iframe { max-width: 100%; display: block; }
img, video { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.021em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-lg);  font-weight: 700; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-md);  font-weight: 600; letter-spacing: 0; }

p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 650; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

::selection { background: var(--hi); color: var(--on-hi); }

/* ------------------------------------------------------------- Structure */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.section--paper   { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--ink     { background: var(--brand); color: var(--ink-200); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink strong { color: #fff; }

/* Sur-titre de section, avec filet orange */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: .9rem;
}
.section-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--hi);
}
.section--ink .section-kicker { color: var(--ink-200); }

.section-lead {
  font-size: var(--fs-md);
  color: var(--ink-700);
  max-width: 62ch;
}
.section--ink .section-lead { color: var(--ink-200); }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

/* ---------------------------------------------------------------- Boutons */
.btn {
  --btn-bg: var(--hi);
  --btn-fg: #fff;
  --btn-bd: var(--hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.8rem;
  min-height: 54px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

/* Blanc sur l'orange de charte : 3,4:1. Ce rapport est conforme WCAG AA
   uniquement parce que le libellé est en gras au-dessus de 18,7px, seuil à
   partir duquel l'exigence passe de 4,5:1 à 3:1. Ne pas réduire la taille de
   police des boutons sans repasser le texte en foncé. */
.btn--primary  { --btn-bg: var(--hi); --btn-fg: #fff; --btn-bd: var(--hi); }
.btn--primary:hover { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); }

.btn--dark     { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); }
.btn--dark:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); }

.btn--outline  { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--brand); }
.btn--outline:hover { --btn-bg: var(--brand); --btn-fg: #fff; }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn--sm { padding: .7rem 1.25rem; min-height: 46px; font-size: 1rem; --btn-fg: var(--on-hi); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.75rem;
}

/* Lien fléché */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--hi);
  padding-bottom: 2px;
  transition: gap .18s var(--ease);
}
.link-arrow::after { content: "\2192"; font-size: 1.05em; line-height: 1; }
.link-arrow:hover { gap: .8rem; }

/* ------------------------------------------------------------- Étiquettes */
.tag {
  display: inline-block;
  padding: .28rem .6rem;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
}
.tag--hi { background: var(--hi); color: var(--on-hi); }
.tag--soft { background: var(--paper-2); color: var(--ink-700); }

/* ------------------------------------------------------------ Fil d'Ariane */
.breadcrumb {
  padding-block: 1rem .25rem;
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-200); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 550; }

/* --------------------------------------------------------- Liste à puces */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 11px;
  height: 11px;
  background: var(--hi);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------ Accessibilité */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--hi);
  color: var(--on-hi);
  padding: .8rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

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

/* =========================================================================
   DISSUASION DE COPIE

   ATTENTION — ceci ne protège rien. Le texte reste lisible dans le code
   source (Ctrl+U), les images restent téléchargeables depuis l'onglet
   Réseau du navigateur, et une capture d'écran contourne tout. L'objectif
   est seulement de décourager le geste réflexe.

   Aucun impact sur le référencement : le HTML envoyé à Google est inchangé.
   ========================================================================= */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Les coordonnées restent sélectionnables : un visiteur qui ne peut pas
   copier votre téléphone ou votre email est un contact perdu. */
.contact-list .value,
.footer-contact,
.nav-phone,
address {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Empêche le glisser-déposer d'une image vers le bureau */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* ------------------------------------------------ Boutons sur petit écran
   Empilés, les boutons se dimensionnaient chacun sur leur libellé : 340 px
   pour l'un, 278 px pour l'autre, d'où un bord droit en escalier. On les
   passe pleine largeur pour aligner les deux côtés. */
@media (max-width: 620px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn {
    width: 100%;
    padding-inline: 1rem;
  }
}
