/* =========================================================
   ABEILLE : feuille de style
   Système de design repris de beeip.net
   ========================================================= */

:root {
    --yellow-darker: #704b00;
    --yellow-dark: #ca8600;
    --yellow: #f7a600;
    --yellow-light: #ffca5f;

    --gray-darkest: #0f172b;
    --gray-dark: #4a4a4a;
    --gray: #62748e;
    --gray-light: #cad5e2;
    --gray-lighter: #e2e8f0;
    --gray-lightest: #f8fafc;

    --black: #000000;
    --white: #ffffff;

    --blue-darker: #002152;
    --blue-dark: #003780;
    --blue: #006df3;
    --blue-light: #2b90ff;
    --blue-lightest: #b7deff;

    --cyan-dark: #0092b8;
    --cyan: #00b8db;

    --green-dark: #016630;
    --green-light: #00c950;
    --green-lightest: #dcfce7;

    --text: var(--black);
    --title-text: var(--black);
    --primary-text: var(--yellow-dark);
    --primary-title-text: var(--yellow-darker);
    --inactive-text: var(--gray-dark);
    --active-text: var(--blue-dark);
    --muted-text: var(--gray);

    --icon: var(--black);
    --primary-icon: var(--yellow);
    --muted-icon: var(--gray);
    --icon-success: var(--green-light);

    --border: var(--gray-lighter);
    --primary-border: var(--yellow);

    --button-background: var(--gray-lighter);
    --button-text: var(--black);

    --background: var(--white);
    --primary-background: var(--yellow);
    --alternate-background: var(--gray-lightest);
    --hover-background: var(--gray-light);
    --hover-primary-background: var(--yellow-light);
    --background-dark: var(--gray-darkest);

    --primary-foreground: var(--black);

    --radius: 10px;
    --radius-lg: 14px;
}

.dark {
    --text: var(--gray-lighter);
    --title-text: var(--gray-lighter);
    --inactive-text: var(--gray-light);
    --active-text: var(--gray-lightest);
    --muted-text: var(--gray-light);
    --icon: var(--gray-lighter);
    --border: rgb(226 232 240 / .1);
    --background: var(--background-dark);
    --hover-background: var(--blue-dark);
    color: var(--text);
}

/* Variante « pro » : bleu foncé (hébergement, Beezness) */
.pro {
    --primary-text: var(--blue-dark);
    --primary-title-text: var(--blue-dark);
    --primary-icon: var(--blue-dark);
    --primary-border: var(--blue-dark);
    --primary-background: var(--blue-dark);
    --hover-primary-background: var(--blue);
    --primary-foreground: var(--white);
}

/* Variante « HA » : cyan */
.ha {
    --primary-text: var(--cyan-dark);
    --primary-icon: var(--cyan);
    --primary-border: var(--cyan);
    --primary-background: var(--cyan-dark);
    --hover-primary-background: var(--cyan);
    --primary-foreground: var(--white);
}

/* ---------- Base ---------- */

html, body { margin: 0; padding: 0; }

html {
    font-size: 16px;
    line-height: 1.5em;
    height: 100%;
    scroll-padding-top: 8em;
    scroll-behavior: smooth;
}

body {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: "Open Sans", "Roboto", system-ui, sans-serif;
    color: var(--text);
    background: var(--background);
}

body > main { flex: 1; }

h1, h2, h3, h4 {
    font-family: "Montserrat", system-ui, sans-serif;
    color: var(--title-text);
}

h1 { font-size: 3em; line-height: 1.1em; }
h1 small { font-size: .5em; }
h2, h3, h4 { line-height: 1.4em; }

a { color: inherit; }
a:hover { color: var(--active-text); }

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

.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 3em 1em;
}

section.alternate { background-color: var(--alternate-background); }

section.primary {
    --title-text: var(--primary-foreground);
    --text: var(--primary-foreground);
    --icon: var(--primary-foreground);
    color: var(--primary-foreground);
    background-color: var(--primary-background);
}

.center { text-align: center; }
section.center > * { align-self: center; text-align: center; }

hgroup { margin-bottom: 1.5em; }
hgroup h1, hgroup h2 { margin-bottom: .4em; }
hgroup p { margin-top: 0; color: var(--muted-text); }
hgroup p.subtitle {
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-text);
}

.lead { font-size: 1.1em; max-width: 46em; margin-inline: auto; }

/* ---------- Icônes (sprite Lucide) ---------- */

.lucide {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-shape {
    display: inline-block;
    padding: .5em;
    --color: var(--icon);
    color: var(--color);
    background-color: rgb(from var(--color) r g b / .1);
    border-radius: 7px;
}

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

.btn-group { display: flex; gap: 1em; flex-wrap: wrap; }
.btn-group.center { justify-content: center; }

.btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75em;
    padding: .5em 1em;
    font: inherit;
    border: 1px solid var(--border);
    background-color: var(--button-background);
    color: var(--button-text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: transform ease-out .1s, background-color .2s;
    cursor: pointer;
}

.btn.primary {
    --button-background: var(--primary-background);
    --border: var(--primary-background);
    color: var(--primary-foreground);
}

.btn.primary-foreground {
    background-color: var(--primary-foreground);
    border-color: var(--primary-foreground);
    color: var(--primary-background);
}

.btn.light { background-color: var(--background); }
.btn.link { font-weight: bold; background-color: transparent; border-color: transparent; }
.btn.link.primary { color: var(--primary-text); }
.btn.elevated { box-shadow: 0 4px 6px rgb(from var(--button-background) r g b / .4); }
.btn.large { padding: 1em 2em; }

.btn:hover {
    color: var(--button-text);
    background-color: var(--hover-background);
    border-color: var(--hover-background);
}

.btn.primary:hover {
    color: var(--primary-foreground);
    background-color: var(--hover-primary-background);
    border-color: var(--hover-primary-background);
}

.btn.primary-foreground:hover { opacity: .9; color: var(--primary-background); background-color: var(--primary-foreground); }
.btn:active { transform: scale(.99); }
.btn .lucide { flex-shrink: 0; }

/* ---------- Chips ---------- */

.chip {
    display: inline-flex;
    align-items: center;
    gap: .75em;
    padding: .5em 1em;
    border-radius: 128px;
}

.chip.compact { font-size: .75em; padding: .1em .7em; text-transform: uppercase; font-weight: bold; }
.chip.primary-light { color: var(--primary-title-text); background-color: rgb(from var(--primary-background) r g b / .12); }
.chip.primary { color: var(--primary-foreground); background-color: var(--primary-background); }

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

.main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    padding: .5em 1em;
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / .95);
    backdrop-filter: blur(6px);
}

.navbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.navbar .start { margin-right: auto; display: flex; align-items: center; gap: .75em; text-decoration: none; }
.navbar .logo { height: 3.5em; width: auto; }
.navbar .brand-name { font-family: "Montserrat", sans-serif; font-weight: 700; line-height: 1.2em; }
.navbar .brand-name small { display: block; font-weight: 500; font-size: .75em; color: var(--muted-text); }

.nav-list { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; gap: .15em; }

.navbar > ul > li > a:not(.btn) {
    display: block;
    padding: .75em .8em;
    color: var(--inactive-text);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: .95em;
}

.navbar > ul > li > a:not(.btn):hover,
.navbar > ul > li > a[aria-current="page"] {
    color: var(--active-text);
    background-color: var(--alternate-background);
}

.navbar > ul > li > a[aria-current="page"] { font-weight: 600; }
.nav-list .btn { margin-left: .5em; }

/* Sous-menu « Offres » */
.has-sub { position: relative; }
.has-sub > button {
    display: flex; align-items: center; gap: .3em;
    padding: .75em .8em; font: inherit; font-size: .95em;
    background: none; border: 0; border-radius: var(--radius);
    color: var(--inactive-text); cursor: pointer;
}
.has-sub > button:hover, .has-sub.is-current > button { color: var(--active-text); background: var(--alternate-background); }
.has-sub > button .lucide { width: 16px; height: 16px; }
.submenu {
    display: none;
    position: absolute; top: 100%; left: 0;
    min-width: 260px; margin: 0; padding: .5em; list-style: none;
    background: var(--background); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: 0 12px 24px -8px rgb(15 23 43 / .15);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.is-open .submenu { display: block; }
.submenu a { display: flex; gap: .75em; align-items: center; padding: .6em .8em; border-radius: var(--radius); text-decoration: none; color: var(--inactive-text); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--alternate-background); color: var(--active-text); }
.submenu .lucide { width: 18px; height: 18px; color: var(--primary-icon); }

.collapse-trigger { display: none; }

@media screen and (max-width: 900px) {
    .collapse-trigger { display: flex; }
    .navbar .nav-list {
        flex-direction: column;
        align-items: stretch;
        flex-basis: 100%;
        order: 1;
    }
    .nav-list.collapse:not(.is-expanded) { display: none; }
    .nav-list .btn { margin: .5em 0 0; }
    .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1em; }
    .has-sub > button { display: none; }
}

/* ---------- Bannière (hero) ---------- */

.banner {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 5em 2em;
    background-image: url(../images/hive.svg);
    background-attachment: fixed;
    background-color: hsl(from var(--yellow) h s 95%);
}

.banner.pro { background-image: url(../images/hive.svg), linear-gradient(135deg, #faf5ff 0%, #f1f5f9 100%); }
.banner.ha { background-image: url(../images/hive.svg), linear-gradient(135deg, #ecfeff 0%, #f1f5f9 100%); }
.banner.compact { padding: 3.5em 2em; }

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.banner-content > p { max-width: 42em; }
.banner-content .btn-group { justify-content: center; margin-top: .5em; }
.banner-content hgroup { margin-bottom: .5em; }
.banner-content .chip { margin-bottom: .5em; }

.breadcrumb { font-size: .85em; color: var(--muted-text); margin-bottom: 1em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Cartes « services » ---------- */

.services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
}

.services > article {
    box-sizing: border-box;
    flex: 1 1 calc(50% - 1em);
    display: flex;
    flex-direction: column;
    padding: 1.25em;
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: var(--radius-lg);
}

.services.row > article { flex-basis: calc(33% - 1em); }
.services.four > article { flex-basis: calc(25% - 1em); min-width: 200px; }
.services.slight > article { border-color: transparent; background: transparent; }
.services.center { text-align: center; }
.services > article > .icon-shape { align-self: flex-start; --color: var(--primary-icon); }
.services.center > article > .icon-shape { align-self: center; }
.services.large > article > .icon-shape { padding: 1em; }
.services.large > article > .icon-shape .lucide { width: 36px; height: 36px; }
.services > article > h3 { font-size: 1.2em; margin-bottom: 0; }
.services > article > p { color: var(--muted-text); }
.services > article > .btn { margin-top: auto; align-self: center; }
.services:not(.center) > article > .btn { align-self: flex-start; padding-left: 0; }

a.card-link { text-decoration: none; color: inherit; }
a.card-link > article { transition: transform .15s ease-out, box-shadow .15s, border-color .15s; }
a.card-link:hover > article { transform: translateY(-3px); box-shadow: 0 20px 25px -5px rgb(from var(--primary-background) r g b / .15); border-color: var(--primary-border); }

@media screen and (max-width: 700px) {
    .services > article, .services.row > article, .services.four > article { flex-basis: 100%; }
}

/* ---------- Offres / tarifs ---------- */

.offers-row {
    display: flex;
    justify-content: center;
    gap: 1.25em;
    flex-wrap: wrap;
}

.offers-row > article {
    box-sizing: border-box;
    flex: 1 1 calc(25% - 1.25em);
    min-width: 210px;
    display: flex;
    flex-direction: column;
    padding: 1.25em;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.offers-row > article.primary {
    border-color: var(--primary-border);
    box-shadow: 0 20px 25px -5px rgb(from var(--primary-background) r g b / .12);
}

.offers-row > article > .chip.decorator {
    align-self: center;
    margin-top: calc(-1.25em - .5em - .75em);
    margin-bottom: .5em;
}

.offers-row .contract { font-family: "Montserrat", sans-serif; font-size: 1.25em; font-weight: bold; margin: .25em 0; }
.offers-row .note { margin: 0; color: var(--muted-text); font-size: .9em; }
.offers-row > article > .btn { margin-top: auto; }

.price { line-height: 1.6em; margin: .75em 0; }
.price .number { font-family: "Montserrat", sans-serif; font-size: 2.6em; font-weight: bold; color: var(--title-text); }
.price .term { font-size: .8em; color: var(--muted-text); }

.features { list-style: none; padding: 0; margin: 0 0 1.25em; }
.features > li { display: flex; gap: .75em; padding: .3em 0; }
.features > li > .lucide { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--primary-icon); }
.features > li.muted { color: var(--muted-text); font-size: .9em; }
.features > li.muted > .lucide { color: var(--muted-icon); }

.section-title { display: flex; align-items: center; gap: 1em; margin: 0 0 1.5em; }
.section-title h2 { margin: 0; }
.section-title p { margin: 0; color: var(--muted-text); }

/* ---------- Cartes génériques ---------- */

.card {
    box-sizing: border-box;
    padding: 1.5em;
    border: 1px solid var(--border);
    background-color: var(--background);
    border-radius: var(--radius-lg);
}

.card > h3:first-child, .card > h2:first-child { margin-top: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25em; }
.grid-2.wide-left { grid-template-columns: 3fr 2fr; }

@media screen and (max-width: 800px) {
    .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
}

.media-card { padding: 0; overflow: hidden; }
.media-card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Listes d'information ---------- */

dl.horizontal { display: flex; flex-direction: column; margin: 0; }
dl.horizontal > div { display: flex; flex-wrap: wrap; gap: 1em; padding: .75em 0; border-bottom: 1px solid var(--border); }
dl.horizontal > div:last-child { border-bottom: 0; }
dl.horizontal dd { margin-left: auto; }
dt { color: var(--muted-text); }
dd { color: var(--text); font-weight: bold; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist > li { display: flex; align-items: flex-start; gap: 1em; padding: .5em 0; }
.checklist > li > .leading-icon { flex-shrink: 0; padding: 3px; color: var(--primary-icon); background-color: rgb(from var(--primary-icon) r g b / .15); border-radius: 24px; }
.checklist > li > .leading-icon .lucide { width: 18px; height: 18px; }

.info-row { display: flex; gap: 1em; align-items: flex-start; }
.info-row + .info-row { margin-top: 1.25em; }
.info-row .icon-shape { --color: var(--primary-icon); flex-shrink: 0; }
.info-row h3 { margin: 0 0 .2em; font-size: 1em; }
.info-row p { margin: 0; color: var(--muted-text); }
.info-row a { font-weight: 600; color: var(--text); text-decoration: none; }

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

.table-wrapper { overflow: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
td, th { padding: .7em 1em; border-bottom: 1px solid var(--border); text-align: left; }
tr:last-child td { border-bottom: 0; }
th { background-color: var(--alternate-background); font-family: "Montserrat", sans-serif; }
td.num { text-align: right; white-space: nowrap; font-weight: 600; }

.footnotes { font-size: .85em; color: var(--muted-text); margin-top: 1em; }

/* ---------- Téléchargements ---------- */

.file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75em; }
.file-list a {
    display: flex; align-items: center; gap: 1em;
    padding: 1em 1.25em; text-decoration: none; color: inherit;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background);
    transition: border-color .15s, transform .15s;
}
.file-list a:hover { border-color: var(--primary-border); transform: translateY(-2px); color: inherit; }
.file-list .icon-shape { --color: var(--primary-icon); }
.file-list strong { display: block; }
.file-list small { color: var(--muted-text); }
.file-list .end { margin-left: auto; color: var(--primary-text); }

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

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: .35em; font-weight: 600; font-size: .9em; }
.form input, .form select, .form textarea {
    font: inherit; font-weight: normal;
    padding: .7em .9em;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text);
}
.form textarea { min-height: 9em; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 2px solid rgb(from var(--primary-background) r g b / .4);
    border-color: var(--primary-border);
}
.form .btn-group { grid-column: 1 / -1; }
.form-message { grid-column: 1 / -1; padding: 1em; border-radius: var(--radius); background: var(--green-lightest); color: var(--green-dark); }

@media screen and (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.map { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: var(--radius-lg); }

/* ---------- CTA ---------- */

section.cta > .icon-shape { padding: 1em; --color: var(--primary-icon); }
section.cta > .icon-shape .lucide { width: 36px; height: 36px; }
section.cta p { max-width: 40em; }

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

body > footer { color: var(--text); background-color: var(--background); }

body > footer > .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 1.5em;
    padding: 2.5em 1em 0;
}

body > footer h2, body > footer h3 { font-size: 1em; margin: 0 0 .5em; }
body > footer p { margin: 0; color: var(--muted-text); }
body > footer ul { list-style: none; padding: 0; margin: 0; }
body > footer li a { display: block; padding: .25em 0; color: var(--muted-text); text-decoration: none; }
body > footer li a:hover { color: var(--active-text); }
body > footer .footer-logo { display: inline-block; background: var(--white); border-radius: var(--radius); padding: .4em .6em; margin-bottom: .75em; }
body > footer .footer-logo img { height: 3em; display: block; }

body > footer .navbar {
    grid-column: 1 / -1;
    margin-top: 1em;
    padding: .5em 0;
    border-top: 1px solid var(--border);
    font-size: .9em;
}
body > footer .navbar .start { color: var(--muted-text); }
body > footer .navbar > ul > li > a { padding: .5em 1em; color: var(--muted-text); }
/* pas le fond clair du menu principal : texte clair sur fond clair = lien invisible */
body > footer .navbar > ul > li > a:not(.btn):hover { color: var(--active-text); background-color: transparent; text-decoration: underline; }

@media screen and (max-width: 800px) {
    body > footer > .container { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 500px) {
    body > footer > .container { grid-template-columns: 1fr; }
}

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

.prose p { line-height: 1.7em; }
.prose strong { color: var(--title-text); }
.highlight { color: var(--primary-text); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-top { margin-top: 2em; }

/* ---------- Page « État des services » ---------- */

[data-etat="operationnel"] { --etat: var(--green-light); --etat-text: var(--green-dark); }
[data-etat="degrade"]      { --etat: var(--yellow); --etat-text: var(--yellow-darker); }
[data-etat="partiel"]      { --etat: #f97316; --etat-text: #9a3412; }
[data-etat="panne"]        { --etat: #dc143c; --etat-text: #9f1239; }
[data-etat="maintenance"]  { --etat: var(--blue-light); --etat-text: var(--blue-dark); }

.status-banner {
    display: flex; align-items: center; gap: 1em;
    margin-top: .5em; padding: 1em 1.5em;
    width: 100%; max-width: 640px; box-sizing: border-box; text-align: left;
    background: var(--background);
    border: 2px solid var(--etat);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgb(from var(--etat) r g b / .15);
}
.status-banner-icon { display: flex; padding: .6em; border-radius: 64px; background: var(--etat); color: var(--white); }
.status-banner strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.15em; color: var(--etat-text); }
.status-banner small { color: var(--muted-text); }

.status-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25em; }
@media screen and (max-width: 800px) { .status-groups { grid-template-columns: 1fr; } }

.status-group { padding: 1.25em; }
.status-group-head { display: flex; align-items: center; gap: .75em; margin-bottom: .5em; }
.status-group-head .icon-shape { --color: var(--primary-icon); }
.status-group-head h2 { font-size: 1.1em; margin: 0; }
.status-group-head .status-pill { margin-left: auto; }

.status-pill {
    display: inline-flex; align-items: center;
    padding: .15em .75em; border-radius: 128px;
    font-size: .8em; font-weight: 600; white-space: nowrap;
    color: var(--etat-text); background: rgb(from var(--etat) r g b / .15);
}

.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 1em; padding: .7em 0; border-top: 1px solid var(--border); }
.status-name small.status-live { font-size: .75em; color: var(--muted-text); margin-left: .3em; }
.status-state { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; font-size: .9em; color: var(--etat-text); white-space: nowrap; }

.status-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--etat); flex-shrink: 0; }
.status-state .status-dot { box-shadow: 0 0 0 3px rgb(from var(--etat) r g b / .2); }

.status-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em 1.5em; list-style: none; padding: 0; margin: 2em 0 0; font-size: .85em; color: var(--muted-text); }
.status-legend li { display: flex; align-items: center; gap: .5em; }

.status-events { display: flex; flex-direction: column; gap: 1em; }
.status-event { border-left: 4px solid var(--etat); }
.status-event-head { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.status-event-head h3 { margin: 0; font-size: 1.05em; }
.status-event-head .status-pill { margin-left: auto; }
.status-meta { display: flex; align-items: center; gap: .5em; margin: .5em 0 0; font-size: .9em; color: var(--muted-text); }
.status-meta .lucide { width: 16px; height: 16px; }

.status-timeline { list-style: none; margin: 1em 0 0; padding: 0 0 0 1em; border-left: 2px solid var(--border); }
.status-timeline li { padding: .25em 0 .75em; }
.status-timeline time { font-size: .8em; font-weight: 600; color: var(--muted-text); }
.status-timeline p { margin: .2em 0 0; }

.status-empty { display: flex; align-items: center; gap: .75em; color: var(--green-dark); }
.status-empty .lucide { color: var(--green-light); }

[hidden] { display: none !important; }
.main-header > .container { max-width: 1200px; }

/* ---------- Page « Nos produits » ---------- */

.product-nav-section { padding-top: 0; padding-bottom: 0; }
.product-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em;
    margin-top: -2.5em; position: relative;
}
.product-nav a {
    display: flex; align-items: center; gap: .75em;
    padding: .9em 1em; text-decoration: none; font-weight: 600; color: var(--text);
    background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px -8px rgb(15 23 43 / .12);
    transition: transform .15s, border-color .15s;
}
.product-nav a:hover { transform: translateY(-2px); border-color: var(--primary-border); color: var(--text); }
.product-nav .icon-shape { --color: var(--primary-icon); }
@media screen and (max-width: 800px) { .product-nav { grid-template-columns: 1fr 1fr; } }

.product-row { display: grid; grid-template-columns: 2fr 3fr; gap: 3em; align-items: center; }
.product-row.reverse { grid-template-columns: 3fr 2fr; }
.product-row.reverse > .product-visual { order: 2; }
@media screen and (max-width: 800px) {
    .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 1.5em; }
    .product-row.reverse > .product-visual { order: 0; }
}

.product-visual {
    aspect-ratio: 4 / 3;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em;
    border-radius: 20px;
    color: var(--primary-foreground);
    background-image: url(../images/hive.svg), linear-gradient(135deg, var(--primary-background), var(--hover-primary-background));
    background-size: 160px auto, cover;
    box-shadow: 0 20px 25px -5px rgb(from var(--primary-background) r g b / .25);
}
.product-visual > .lucide { width: 88px; height: 88px; stroke-width: 1.5; }
.product-visual-label { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.2em; letter-spacing: .02em; }

.product-body h2 { margin: .5em 0 .25em; }
.product-body > p { color: var(--inactive-text); line-height: 1.7em; }
.product-body .checklist { margin-bottom: 1.5em; }

/* ---------- Administration du statut ---------- */

.admin input, .admin select, .admin textarea {
    font: inherit; font-weight: normal;
    padding: .55em .75em;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    min-width: 0;
}
.admin textarea { min-height: 4.5em; resize: vertical; width: 100%; box-sizing: border-box; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: 2px solid rgb(0 55 128 / .3); border-color: var(--blue-dark); }
.admin label { display: flex; flex-direction: column; gap: .3em; font-weight: 600; font-size: .9em; }
.admin .grow { flex: 1; }
.admin fieldset { border: 0; padding: 0; margin: 1em 0; }
.admin legend { font-weight: 600; font-size: .9em; margin-bottom: .5em; padding: 0; }

.admin-login { display: flex; flex-direction: column; gap: 1em; }
.admin-error { margin: 0; padding: .75em 1em; border-radius: var(--radius); background: #fde7eb; color: #9f1239; font-size: .9em; }

.admin-head { display: flex; align-items: flex-end; gap: 1em; flex-wrap: wrap; justify-content: space-between; margin-bottom: 1.25em; }
.admin-hint { margin: .25em 0 0; color: var(--muted-text); font-size: .9em; }
.admin-stack { display: flex; flex-direction: column; gap: 1em; margin-bottom: 1em; }
.admin-card { padding: 1.25em; }
.admin-row { display: flex; gap: 1em; align-items: flex-end; flex-wrap: wrap; }
.admin-empty { color: var(--muted-text); }

.admin-services { display: flex; flex-direction: column; gap: .5em; margin: 1em 0 .5em; }
.admin-service { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; padding: .5em .75em; border-radius: var(--radius); background: rgb(from var(--etat) r g b / .08); }
.admin-service .admin-url { flex: 0 1 260px; font-size: .85em; }

.admin-checks { display: flex; flex-wrap: wrap; gap: .4em; }
.admin .admin-check { flex-direction: row; align-items: center; gap: .4em; font-weight: normal; padding: .3em .7em; border: 1px solid var(--border); border-radius: 128px; cursor: pointer; }
.admin .admin-check:has(input:checked) { border-color: var(--blue-dark); background: rgb(0 55 128 / .06); }

.admin-update { display: flex; gap: .6em; align-items: flex-start; margin-top: .6em; }
@media screen and (max-width: 600px) { .admin-update { flex-direction: column; align-items: stretch; } }

.admin-actions { display: flex; justify-content: flex-end; }
.admin .btn.admin-danger { color: #9f1239; }
.admin .btn.admin-danger:hover { background: #fde7eb; border-color: #f9a3b4; color: #9f1239; }

.admin-savebar {
    position: sticky; bottom: 0; z-index: 100;
    background: rgb(255 255 255 / .96); backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 20px -10px rgb(15 23 43 / .15);
}
.admin-savebar-inner { display: flex; align-items: center; gap: 1em; padding: .75em 1em; flex-wrap: wrap; }
.admin-save-status { margin-right: auto; font-size: .9em; color: var(--muted-text); }
.admin-save-status.is-dirty { color: var(--yellow-darker); font-weight: 600; }
.admin-save-status.is-ok { color: var(--green-dark); font-weight: 600; }
.admin-save-status.is-error { color: #9f1239; font-weight: 600; }

/* ---------- Carte à la demande ---------- */
.map-placeholder {
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75em;
    padding: 1.5em; text-align: center;
    background-image: url(../images/hive.svg); background-color: hsl(from var(--yellow) h s 95%);
    border: 1px solid var(--border);
}
.map-placeholder > .lucide { width: 40px; height: 40px; color: var(--primary-icon); }
.map-placeholder p { margin: 0; }
.map-placeholder small { max-width: 32em; color: var(--muted-text); font-size: .8em; line-height: 1.4em; }

.form-message.is-error { background: #fde7eb; color: #9f1239; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { grid-column: 1 / -1; margin: 0; font-size: .85em; color: var(--muted-text); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
    position: fixed; z-index: 1000;
    left: 1em; right: 1em; bottom: 1em;
    max-width: 34em; margin-left: auto;
    box-sizing: border-box;
    padding: 1.25em 1.5em;
    background: var(--white); color: var(--text);
    border: 1px solid var(--border); border-top: 4px solid var(--primary-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgb(15 23 43 / .15), 0 8px 10px -6px rgb(15 23 43 / .1);
    font-size: .9em; line-height: 1.5em;
}
.cookie-banner h2 { margin: 0 0 .5em; font-size: 1.15em; }
.cookie-banner p { margin: 0 0 1em; }
.cookie-banner .cookie-banner-state { color: var(--muted-text); }
.cookie-banner .btn-group { justify-content: flex-end; gap: .75em; }
@media (max-width: 480px) {
    .cookie-banner .btn-group .btn { flex: 1; }
}

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; }
.legal h2 { margin-top: 2em; font-size: 1.3em; }
.legal h2:first-child { margin-top: 0; }
.legal dl.horizontal { margin-bottom: 1em; }
.todo { background: #fff3cd; color: var(--yellow-darker); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
