/* ==========================================================================
   Levario — feuille de style principale
   Identité visuelle : design system LevarioDS (@levario/design-system,
   projet Claude Design « Levario »). Les tokens --lv-* et les classes lv-*
   sont repris verbatim de _ds_bundle.css, qui fait foi. Thème sombre
   uniquement. Approche mobile-first, sans dépendance externe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Polices — auto-hébergées dans fonts/ (licence SIL Open Font License).
   Aucun appel à Google Fonts : le site reste sans dépendance externe, et
   aucune requête vers un tiers n'est faite depuis le navigateur du visiteur.

   Sous-ensemble « latin » uniquement : il couvre l'intégralité du français,
   y compris œ (U+0153), les guillemets « », le tiret cadratin et l'euro.
   Le caractère → des listes et des liens est hors de ce sous-ensemble ; il
   est rendu par la police système, comme avant.

   Inter est une police VARIABLE : un seul fichier couvre 400 à 700, d'où la
   plage déclarée en font-weight. Poppins reste statique, une graisse par
   fichier (600 pour les en-têtes de tableau, 700 pour les titres).

   Régénérer/mettre à jour : voir README, section « Polices ».
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tokens LevarioDS — verbatim */
  --lv-black: #0a0d10;
  --lv-black-soft: #12161b;
  --lv-panel: #171c22;
  --lv-blue: #29b6f6;
  --lv-blue-deep: #1478b5;
  --lv-silver: #c7cdd1;
  --lv-text: #e9edf0;
  --lv-text-dim: #9aa5ac;
  --lv-border: #262d34;
  --lv-radius: 14px;
  --lv-font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --lv-font-body: 'Inter', system-ui, sans-serif;

  /* Variables propres au site */
  --maxw: 1180px;
  --danger: #e5484d;
  --danger-text: #ff8a8e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--lv-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--lv-text);
  background: var(--lv-black);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--lv-blue); }
a:hover { color: #5ecbff; }

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

h1, h2, h3 {
  font-family: var(--lv-font-heading);
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}
h1 { font-size: 1.75rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lv-panel);
  color: var(--lv-text);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Éléments LevarioDS — repris verbatim de _ds_bundle.css
   -------------------------------------------------------------------------- */

.lv-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lv-blue);
  margin: 0 0 0.8em;
  font-family: var(--lv-font-body);
}

.lv-btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--lv-font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lv-btn-primary {
  background: linear-gradient(135deg, var(--lv-blue), var(--lv-blue-deep));
  color: #06121a;
  box-shadow: 0 8px 24px rgba(41, 182, 246, 0.25);
}
.lv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(41, 182, 246, 0.35);
  color: #06121a;
}
.lv-btn-ghost {
  background: transparent;
  border: 1px solid var(--lv-border);
  color: var(--lv-text);
}
.lv-btn-ghost:hover {
  border-color: var(--lv-blue);
  color: var(--lv-blue);
}
.lv-btn-lg {
  font-size: 1.05rem;
  padding: 1em 2em;
}

.lv-tag {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-family: var(--lv-font-body);
}
.lv-tag-default {
  background: rgba(41, 182, 246, 0.14);
  color: var(--lv-blue);
}
.lv-tag-soon {
  background: rgba(199, 205, 209, 0.12);
  color: var(--lv-silver);
}

/* --------------------------------------------------------------------------
   En-tête & navigation — d'après .lv-header
   -------------------------------------------------------------------------- */

.site-header {
  background: rgba(10, 13, 16, 0.85);
  border-bottom: 1px solid var(--lv-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}
.brand:hover { color: #fff; }
.lv-brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-tag {
  display: none;
  font-size: 0.8rem;
  color: var(--lv-text-dim);
}

.nav-toggle {
  background: none;
  border: 1px solid var(--lv-border);
  border-radius: 999px;
  color: var(--lv-text);
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-family: var(--lv-font-body);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--lv-blue); color: var(--lv-blue); }

.site-nav {
  display: none;
  width: 100%;
}
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0.5rem 0 0.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--lv-text-dim);
  text-decoration: none;
  border-radius: var(--lv-radius);
}
.site-nav a:hover { color: #fff; }
/* Le bouton Contact est exclu du marquage « page courante » : sinon, sur la
   page contact, ce style écrase le dégradé du bouton et laisse un texte
   foncé sur fond foncé — le bouton apparaît noir. */
.site-nav li:not(.nav-cta) a[aria-current="page"] {
  color: #fff;
  background: var(--lv-black-soft);
}
.site-nav .nav-cta a {
  background: linear-gradient(135deg, var(--lv-blue), var(--lv-blue-deep));
  color: #06121a;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  padding: 0.55em 1.4em;
  box-shadow: 0 8px 24px rgba(41, 182, 246, 0.25);
}
.site-nav .nav-cta a:hover { color: #06121a; }

@media (min-width: 60rem) {
  .brand-tag { display: inline; }
  .lv-brand-logo { height: 48px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
  }
  .site-nav a { padding: 0.35rem 0.25rem; }
  .site-nav li:not(.nav-cta) a[aria-current="page"] { background: none; }
  .site-nav .nav-cta a { padding: 0.55em 1.4em; }
}

/* --------------------------------------------------------------------------
   Héros — d'après .lv-hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.14), transparent 55%),
    var(--lv-black);
  padding: 4rem 0 4.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  max-width: 22ch;
}
.hero p.lead {
  color: var(--lv-text-dim);
  font-size: 1.08rem;
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5em;
}

.page-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(41, 182, 246, 0.12), transparent 55%),
    var(--lv-black);
  padding: 3rem 0 2.75rem;
  border-bottom: 1px solid var(--lv-border);
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.35rem;
}
.page-hero p {
  color: var(--lv-text-dim);
  margin: 0;
  max-width: 65ch;
}

@media (min-width: 48rem) {
  .hero { padding: 6rem 0 5.5rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}

/* --------------------------------------------------------------------------
   Sections & cartes — d'après .lv-service-card / .lv-expertise
   -------------------------------------------------------------------------- */

.section { padding: 3.5rem 0; }
.section-alt { background: var(--lv-black-soft); }
.section > .container > h2:first-child { margin-top: 0; }

.section-intro {
  color: var(--lv-text-dim);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4.5rem 0; }
}

.card {
  background: var(--lv-panel);
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius);
  padding: 32px 28px;
  color: var(--lv-text-dim);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--lv-blue-deep);
  transform: translateY(-4px);
}
.card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.15rem;
}
.card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(41, 182, 246, 0.1);
  color: var(--lv-blue);
  margin-bottom: 1.2em;
}
.card .card-icon svg { width: 1.6rem; height: 1.6rem; }
.card-link {
  font-weight: 600;
  text-decoration: none;
}

ul.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
ul.check-list li {
  padding: 0.9em 0 0.9em 2em;
  border-bottom: 1px solid var(--lv-border);
  position: relative;
  color: var(--lv-text);
}
ul.check-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lv-blue);
  font-weight: 700;
}

.note {
  background: var(--lv-panel);
  border: 1px solid var(--lv-border);
  border-left: 4px solid var(--lv-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--lv-radius) var(--lv-radius) 0;
  margin: 1.5rem 0;
  color: var(--lv-text-dim);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--lv-text); }

.cta-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(41, 182, 246, 0.12), transparent 60%),
    var(--lv-black-soft);
  border-top: 1px solid var(--lv-border);
  border-bottom: 1px solid var(--lv-border);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { margin-top: 0; }
.cta-band p {
  color: var(--lv-text-dim);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Tableaux
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--lv-border);
  vertical-align: top;
}
th {
  background: var(--lv-panel);
  color: #fff;
  font-family: var(--lv-font-heading);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Formulaire — d'après .lv-contact-form
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 18px;
  margin-top: 1.5rem;
  max-width: 640px;
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lv-text-dim);
  margin-bottom: 0.5em;
}
.form-field .req { color: var(--lv-blue); }
.form-field .optionnel { font-weight: 400; color: var(--lv-text-dim); font-size: 0.82rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--lv-panel);
  border: 1px solid var(--lv-border);
  border-radius: 10px;
  padding: 0.8em 1em;
  color: var(--lv-text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field select { appearance: auto; }
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lv-blue);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger-text);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}
.form-field.has-error .field-error { display: block; }

.consent-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.consent-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--lv-blue);
}
.consent-field label { font-weight: 400; font-size: 0.92rem; }

.form-confirmation {
  display: none;
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid #2ea043;
  color: #7ee2a8;
  border-radius: var(--lv-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.form-confirmation.is-visible { display: block; }

/* Échec d'envoi : pendant de .form-confirmation. Remplace l'alerte bloquante
   du navigateur, hostile sur mobile. Le détail vient de contact.php quand le
   serveur en fournit un. */
.form-error {
  display: none;
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid var(--danger);
  color: var(--danger-text);
  border-radius: var(--lv-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.form-error.is-visible { display: block; }
.form-error p { margin: 0; }
.form-error p + p { margin-top: 0.5rem; }

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

/* --------------------------------------------------------------------------
   Pied de page — d'après .lv-footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--lv-border);
  background: var(--lv-black);
  color: var(--lv-text-dim);
  padding: 2.5rem 0 2rem;
  margin-top: 3.5rem;
  font-size: 0.92rem;
}
.site-footer a {
  color: var(--lv-text-dim);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.6rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid var(--lv-border);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

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

.breadcrumb {
  font-size: 0.88rem;
  color: var(--lv-text-dim);
  margin: 1.25rem 0 0;
}
.breadcrumb a { color: var(--lv-text-dim); }
.breadcrumb a:hover { color: #fff; }

.legal-content h2 { font-size: 1.2rem; }
.legal-content .placeholder {
  background: rgba(227, 179, 65, 0.1);
  border: 1px dashed #a5842e;
  color: #e3b341;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Image d'illustration en tête de page — bande large placée entre le hero
   et le premier bloc de contenu. Le cadrage est imposé par aspect-ratio +
   object-fit pour que toutes les pages aient la même hauteur d'image quelle
   que soit la photo source.
   -------------------------------------------------------------------------- */

.page-figure {
  margin: 0;
  background: var(--lv-black);
}
.page-figure .container {
  padding-top: 2rem;
  padding-bottom: 0;
}
.page-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius);
}
.page-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--lv-text-dim);
}
.page-figure figcaption a { color: var(--lv-text-dim); }
.page-figure figcaption a:hover { color: #fff; }

@media (min-width: 48rem) {
  .page-figure img { aspect-ratio: 21 / 7; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero-actions { display: none; }
  .page-figure { display: none; }
}
