/*
 * Site public de Barnabet (§7.7).
 *
 * Mêmes couleurs que l'application, pour que le site et l'outil se ressemblent. Aucune
 * police ni bibliothèque extérieure : rien à charger ailleurs, donc rien à consentir, et
 * une page qui s'affiche même sur une connexion lente.
 */

:root {
    --accent: #2b6e70;
    --accent-fonce: #1d4a4c;
    --accent-pale: #e6f0f0;
    --encre: #16292a;
    --discret: #5b6e6f;
    --fond: #f3f6f6;
    --carte: #ffffff;
    --bordure: #e0e9e9;
    --ombre: 0 1px 3px rgba(29, 74, 76, .07), 0 8px 24px rgba(29, 74, 76, .06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--encre);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 2.6rem; margin: 0 0 .5rem; }
h2 { font-size: 1.8rem; margin: 0 0 1.2rem; }
h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }

.centre { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- en-tête */

header.haut {
    background: linear-gradient(135deg, var(--accent-fonce), #3f8c8d);
    color: #fff;
    padding: 18px 0 74px;
}

.barre { display: flex; align-items: center; gap: 14px; }
/* Sur les pages intérieures, le logo et le nom ramènent à l'accueil. */
.barre .marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.barre img { width: 42px; height: 42px; border-radius: 11px; }
.barre .nom { font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.barre nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.barre nav a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .96rem; }
.barre nav a:hover { color: #fff; text-decoration: underline; }

.accroche { max-width: 680px; margin-top: 54px; }
.accroche h1 { color: #fff; }
.accroche p { color: rgba(255, 255, 255, .88); font-size: 1.16rem; }

.boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.bouton {
    display: inline-block;
    background: #fff;
    color: var(--accent-fonce);
    padding: 13px 26px;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 600;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.bouton:hover { background: #f6fbfb; }
.bouton.discret { background: transparent; color: #fff; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .55); }
.bouton.discret:hover { background: rgba(255, 255, 255, .12); }
.bouton.plein { background: var(--accent); color: #fff; }
.bouton.plein:hover { background: var(--accent-fonce); }

/* ------------------------------------------------------------------ corps */

section { padding: 62px 0; }
section.claire { background: var(--carte); }
.intro { max-width: 680px; margin-bottom: 34px; }
/* Un titre long — une question posée en toutes lettres — ne doit pas se briser sur son point
   d'interrogation faute de place. */
.intro.large, .accroche.large, .note.large { max-width: 880px; }
.intro p { color: var(--discret); font-size: 1.06rem; }

.grille { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grille.deux { grid-template-columns: repeat(2, 1fr); }

.carte {
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--ombre);
}

section.claire .carte { background: var(--fond); box-shadow: none; }
.carte p:last-child { margin-bottom: 0; }
.carte p { color: var(--discret); font-size: .98rem; }

/* Numéro et titre sur la même ligne : au-dessus, le numéro paraissait détaché du texte,
   et il coûtait une ligne entière sur un téléphone. */
.etape { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.etape h3 { margin: 0; }

.pastille {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--accent-pale);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.02rem;
}

/* Le point de différenciation : un seul espace, plusieurs ordinateurs. */
.mutualise { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.mutualise > div { flex: 1 1 320px; }

.jauge { background: var(--fond); border: 1px solid var(--bordure); border-radius: 16px; padding: 22px; }
section.claire .jauge { background: var(--carte); }
.jauge .titre { font-size: .9rem; color: var(--discret); margin-bottom: 10px; }
.jauge .barre-espace { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #dde8e8; }
.jauge .part { height: 100%; }
.jauge .legende { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .88rem; color: var(--discret); }
.jauge .puce { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

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

table.tarifs, table.comparatif { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
table.tarifs th, table.tarifs td, table.comparatif th, table.comparatif td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--bordure); }
table.tarifs th, table.comparatif th { background: var(--accent-pale); color: var(--accent-fonce); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
table.tarifs tr:last-child td, table.comparatif tr:last-child td { border-bottom: 0; }
table.tarifs td.volume, table.comparatif td.critere { font-weight: 600; }
table.tarifs td.ttc { color: var(--discret); }
table.comparatif { margin-top: 26px; }
.note { color: var(--discret); font-size: .93rem; margin-top: 16px; }

/* ------------------------------------------------------------ formulaire */

form.demande { background: var(--carte); border: 1px solid var(--bordure); border-radius: 18px; padding: 30px; box-shadow: var(--ombre); }
.champs { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.champ.large { grid-column: 1 / -1; }
label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
label .facultatif { font-weight: 400; color: var(--discret); }

input[type=text], input[type=email], input[type=tel], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--bordure);
    border-radius: 10px;
    font: inherit;
    font-size: .98rem;
    background: #fff;
    color: var(--encre);
}

input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
textarea { min-height: 120px; resize: vertical; }

/* Piège à robots : jamais affiché, jamais atteint au clavier. */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.controle { background: var(--accent-pale); border-radius: 12px; padding: 16px 18px; }
.controle label { margin-bottom: 8px; }
.controle input { max-width: 220px; }
.controle .aide { font-size: .87rem; color: var(--discret); margin: 8px 0 0; }

.message { border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.message.bien { background: #edf6f1; border: 1.5px solid #a9cfc0; color: #1f5a45; }
.message.mal { background: #fdf1f0; border: 1.5px solid #e6bdb8; color: #8a332b; }
.message p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- pied */

footer {
    background: var(--encre);
    color: rgba(255, 255, 255, .72);
    padding: 34px 0;
    font-size: .9rem;
}

footer a { color: rgba(255, 255, 255, .88); }
footer .editeur { font-size: .82rem; color: rgba(255, 255, 255, .5); margin-top: 10px; }

/* --------------------------------------------------------------- écrans étroits */

@media (max-width: 860px) {
    body { font-size: 16px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }
    .grille, .grille.deux, .champs { grid-template-columns: 1fr; }
    .accroche { margin-top: 30px; }
    .accroche p { font-size: 1.04rem; }
    section { padding: 44px 0; }
    header.haut { padding-bottom: 54px; }
    .carte { padding: 22px; }
    form.demande { padding: 22px; }

    /* Le menu d'ancres ne sert à rien sur un téléphone : la page se parcourt au pouce, et
       cinq liens serrés sous le logo se ratent plus qu'ils ne se cliquent. */
    .barre nav { display: none; }

    /* Les deux boutons de l'accroche prennent toute la largeur : cibles franches. */
    .boutons { flex-direction: column; align-items: stretch; }
    .bouton { text-align: center; padding: 14px 22px; }

    /* Trois colonnes de prix ne tiennent pas dans 390 pixels : chaque ligne devient une
       petite fiche, avec l'intitulé de la colonne repris devant chaque prix. */
    table.tarifs, table.comparatif { box-shadow: none; background: transparent; }
    table.tarifs thead, table.comparatif thead { display: none; }
    table.tarifs, table.tarifs tbody, table.tarifs tr, table.tarifs td,
    table.comparatif, table.comparatif tbody, table.comparatif tr, table.comparatif td { display: block; width: 100%; }

    table.tarifs tr, table.comparatif tr {
        background: var(--carte);
        border: 1px solid var(--bordure);
        border-radius: 14px;
        padding: 14px 18px;
        margin-bottom: 10px;
    }

    table.tarifs td, table.comparatif td { border: 0; padding: 3px 0; }
    table.tarifs td.volume, table.comparatif td.critere { font-size: 1.05rem; margin-bottom: 6px; }
    table.tarifs td[data-libelle]::before,
    table.comparatif td[data-libelle]::before { content: attr(data-libelle) " : "; color: var(--discret); font-size: .9rem; }
    table.tarifs td.ttc { color: var(--discret); }
}
