/* ASTR-X — feuille unique du site.
   Couleurs reprises du logo : ardoise #5a6791 (le X), turquoise #aaced5 (l'orbite), gris #b2b2b4 (le nom). */

@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mono"; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mono"; font-weight: 500; font-display: swap;
  src: url("../fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ardoise: #5a6791;
  --ardoise-fonce: #3d4768;
  --encre: #1f2438;
  --texte: #3a4054;
  --discret: #6b7186;
  --orbite: #aaced5;
  --orbite-fonce: #2f7684;
  --gris: #b2b2b4;
  --fond: #f7f8fb;
  --carte: #ffffff;
  --trait: #e2e5ee;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(31, 36, 56, .06), 0 8px 24px rgba(31, 36, 56, .06);
  --largeur: 1120px;
  --titre: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --corps: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Mono", ui-monospace, "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 17px/1.65 var(--corps); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ardoise); text-underline-offset: 3px; }
a:hover { color: var(--ardoise-fonce); }
:focus-visible { outline: 3px solid var(--orbite-fonce); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; color: var(--encre); line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(247, 248, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marque img { width: 104px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--texte); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ardoise); }
.nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 720px) {
  .nav a:not(.bouton) { display: none; }
  .marque img { width: 88px; }
}

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ardoise);
  background: var(--ardoise); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .98rem; cursor: pointer; font-family: var(--corps); }
.bouton:hover { background: var(--ardoise-fonce); border-color: var(--ardoise-fonce); }
.bouton.secondaire { background: transparent; color: var(--ardoise) !important; }
.bouton.secondaire:hover { background: #eef0f6; }
.bouton.petit { padding: 8px 16px; font-size: .9rem; }

/* Héros : l'orbite du logo en filigrane */
.heros { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); }
.heros .orbite { position: absolute; right: -12%; top: -10%; width: min(820px, 120vw); opacity: .55; pointer-events: none; }
.heros .conteneur { position: relative; }
.surtitre { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orbite-fonce); margin-bottom: 14px; }
.heros h1 { max-width: 15em; }
.heros .chapeau { font-size: 1.18rem; max-width: 36em; color: var(--texte); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
.bande { background: var(--carte); border-block: 1px solid var(--trait); }
.intro { max-width: 40em; margin-bottom: 36px; }
.intro p { color: var(--discret); }

/* Familles d'offres */
.familles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.famille { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.bande .famille { background: var(--fond); box-shadow: none; }
.famille h3 { display: flex; align-items: baseline; gap: 10px; }
.famille h3 .numero { font-family: var(--mono); font-size: .8rem; color: var(--orbite-fonce); }
.famille > p { color: var(--discret); font-size: .97rem; }
.offres { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--trait); }
.offres li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--trait); font-size: .97rem; }
.offres li:last-child { border-bottom: 0; }
.prix { font-family: var(--mono); color: var(--encre); white-space: nowrap; font-size: .92rem; }
.prix.devis { color: var(--discret); }

/* Grille détaillée */
.tableau-offres { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.tableau-offres caption { text-align: left; font-family: var(--titre); font-size: 1.5rem; color: var(--encre); padding: 0 0 12px; }
.tableau-offres th, .tableau-offres td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau-offres thead th { background: #eef0f6; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ardoise-fonce); font-weight: 600; }
.tableau-offres td:last-child { font-family: var(--mono); white-space: nowrap; color: var(--encre); font-size: .92rem; }
.tableau-offres tbody th { font-weight: 600; color: var(--encre); white-space: nowrap; }
.bloc-tableau { margin-bottom: 40px; }
@media (max-width: 720px) {
  .tableau-offres thead { display: none; }
  .tableau-offres, .tableau-offres tbody, .tableau-offres tr, .tableau-offres th, .tableau-offres td { display: block; width: 100%; }
  .tableau-offres tr { padding: 14px 16px; border-bottom: 1px solid var(--trait); }
  .tableau-offres caption { display: block; width: 100%; }
  .tableau-offres th, .tableau-offres td { padding: 2px 0; border: 0; white-space: normal !important; }
  .tableau-offres td:last-child { margin-top: 6px; }
}

/* Niveaux d'expertise */
.niveaux { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.niveau { border-radius: var(--rayon); padding: 22px; border: 1px solid var(--trait); background: var(--carte); }
.niveau .etiquette { display: inline-block; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.niveau.standard .etiquette { background: #eef0f6; color: var(--ardoise-fonce); }
.niveau.avance .etiquette { background: #dcedf0; color: var(--orbite-fonce); }
.niveau.expert .etiquette { background: var(--ardoise); color: #fff; }
.niveau p { font-size: .96rem; color: var(--discret); margin: 0; }

/* Pôle */
.pole { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .pole { grid-template-columns: 1fr; } }
.faits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.faits li { background: var(--carte); border: 1px solid var(--trait); border-left: 4px solid var(--orbite); border-radius: 10px; padding: 16px 18px; }
.faits strong { display: block; font-family: var(--titre); font-size: 1.25rem; font-weight: 400; color: var(--encre); }

/* Étapes */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.etapes li { counter-increment: etape; position: relative; padding-top: 44px; }
.etapes li::before { content: counter(etape, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--mono); color: var(--orbite-fonce); font-size: .9rem; border-bottom: 2px solid var(--orbite); padding-bottom: 6px; }
.etapes h3 { font-size: 1.15rem; }
.etapes p { font-size: .96rem; color: var(--discret); }

/* Encarts */
.encart { background: var(--ardoise); color: #e9ecf5; border-radius: 20px; padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.encart h2 { color: #fff; }
.encart a:not(.bouton) { color: #fff; }
.encart .bouton { background: #fff; color: var(--ardoise) !important; border-color: #fff; }
.encart .bouton.secondaire { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.note { font-size: .92rem; color: var(--discret); }
.encadre { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 22px; background: var(--carte); }

/* Formulaire */
.formulaire { display: grid; gap: 18px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(20px, 4vw, 36px); box-shadow: var(--ombre); }
.formulaire .ligne { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .formulaire .ligne { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; color: var(--encre); font-size: .95rem; margin-bottom: 6px; }
label .facultatif { font-weight: 400; color: var(--discret); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #cdd2df; border-radius: 10px; background: #fff; color: var(--encre); }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orbite-fonce); outline-offset: 1px; border-color: transparent; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--texte); }
.case input { width: auto; margin-top: 4px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-form { padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.message-form.ok { background: #e3f2ee; color: #1f5b4a; }
.message-form.erreur { background: #fbe9e9; color: #8a2a2a; }
.aide { font-size: .85rem; color: var(--discret); margin-top: 4px; }

/* Texte long (mentions) */
.texte { max-width: 46em; }
.texte h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* Pied */
.pied { background: var(--encre); color: #c9cddc; padding: 48px 0 32px; font-size: .93rem; }
.pied a { color: #fff; }
.pied .colonnes { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 720px) { .pied .colonnes { grid-template-columns: 1fr; } }
.pied h2 { font-size: 1.1rem; color: #fff; margin-bottom: .6em; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pied .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #9ba1b6; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
