/* ==========================================================
   DARCOS — Site public
   Aucune ressource externe : polices système uniquement.
   ========================================================== */

:root {
    --encre:      #14110F;
    --encre-doux: #2A2521;
    --papier:     #F6F3EE;
    --papier-2:   #ECE7DF;
    --signal:     #E0511C;
    --signal-fonce: #B83D12;
    --acier:      #6B6560;
    --ligne:      #D9D2C8;
    --vert:       #2F6B4F;
    --rouge:      #A32C1E;

    --display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", system-ui, sans-serif;
    --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --rayon: 3px;
    --gouttiere: clamp(1.25rem, 4vw, 3rem);
    --max: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--texte);
    font-size: 16px;
    line-height: 1.6;
    color: var(--encre);
    background: var(--papier);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-decoration-color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal); }

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

.contenu { max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); }
.saut { height: clamp(2.5rem, 7vw, 5rem); }

/* ---------- Titrage ---------- */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 0.95;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }

.surtitre {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
    margin: 0 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.surtitre::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ligne);
}

/* ---------- En-tête ---------- */
.entete {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--encre);
    color: var(--papier);
    border-bottom: 1px solid #000;
}
.entete__barre {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.9rem var(--gouttiere);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--papier);
    text-decoration: none;
    line-height: 1;
}
.logo span { color: var(--signal); }
.logo small {
    display: block;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: var(--acier);
    margin-top: 3px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a {
    color: var(--papier);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.nav a:hover { color: var(--signal); }
.nav__bascule { display: none; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--encre);
    border-radius: var(--rayon);
    background: var(--encre);
    color: var(--papier);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.bouton:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.bouton:active { transform: translateY(1px); }
.bouton--signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.bouton--signal:hover { background: var(--signal-fonce); border-color: var(--signal-fonce); }
.bouton--fantome { background: transparent; color: var(--encre); }
.bouton--fantome:hover { background: var(--encre); color: var(--papier); }
.bouton--large { width: 100%; }
.bouton[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Bandeau d'accueil ---------- */
.hero {
    background: var(--encre);
    color: var(--papier);
    padding: clamp(3rem, 9vw, 6.5rem) 0 0;
    position: relative;
    overflow: hidden;
}
.hero h1 { color: var(--papier); max-width: 14ch; }
.hero h1 em { color: var(--signal); font-style: normal; }
.hero__intro { max-width: 46ch; color: #BFB8B0; font-size: 1.05rem; }

/* Recherche de dates */
.recherche {
    background: var(--papier);
    color: var(--encre);
    border-radius: var(--rayon);
    padding: 1.25rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    transform: translateY(clamp(1rem, 4vw, 2.5rem));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.recherche label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--acier);
    margin-bottom: 0.35rem;
}

/* ---------- Champs ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], input[type="file"],
select, textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    background: #fff;
    font: inherit;
    color: var(--encre);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--signal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 81, 28, 0.15);
}
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
    padding: 0;
    margin-bottom: 1rem;
}
.champs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.champ--large { grid-column: 1 / -1; }
.aide { font-size: 0.85rem; color: var(--acier); margin: 0.35rem 0 0; }
.obligatoire { color: var(--signal); }

/* ---------- Grille de motos ---------- */
.grille {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.moto {
    background: #fff;
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.moto:hover { border-color: var(--encre); transform: translateY(-2px); }
.moto__visuel {
    aspect-ratio: 4 / 3;
    background: var(--papier-2);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.moto__visuel img { width: 100%; height: 100%; object-fit: cover; }
.moto__vide {
    font-family: var(--display);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--ligne);
    letter-spacing: 0.08em;
}
.moto__corps { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.moto__marque {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acier);
}
.moto__nom { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; margin: 0; }
.moto__meta { font-size: 0.85rem; color: var(--acier); }
.moto__pied {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--ligne);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.prix { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.prix small { font-family: var(--texte); font-size: 0.8rem; font-weight: 400; color: var(--acier); }

/* ---------- Étiquettes ---------- */
.etiquette {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--papier-2);
    color: var(--encre-doux);
}
.etiquette--dispo { background: rgba(47, 107, 79, 0.12); color: var(--vert); }
.etiquette--complet { background: rgba(163, 44, 30, 0.1); color: var(--rouge); }
.etiquette--signal { background: rgba(224, 81, 28, 0.12); color: var(--signal-fonce); }

/* ---------- Échelle des tarifs dégressifs (élément signature) ---------- */
.echelle { display: grid; gap: 2px; margin: 1.5rem 0; }
.echelle__palier {
    display: grid;
    grid-template-columns: 8.5rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    background: #fff;
    border-left: 3px solid var(--ligne);
}
.echelle__palier--actif {
    border-left-color: var(--signal);
    background: rgba(224, 81, 28, 0.06);
}
.echelle__duree {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--acier);
}
.echelle__barre { height: 8px; background: var(--papier-2); position: relative; }
.echelle__barre span {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--encre);
}
.echelle__palier--actif .echelle__barre span { background: var(--signal); }
.echelle__prix { font-family: var(--display); font-size: 1.3rem; white-space: nowrap; }

/* ---------- Récapitulatif ---------- */
.recap {
    background: #fff;
    border: 1px solid var(--ligne);
    border-radius: var(--rayon);
    padding: 1.4rem;
    position: sticky;
    top: 6rem;
}
.recap__ligne {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--ligne);
    font-size: 0.93rem;
}
.recap__ligne span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.recap__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 2px solid var(--encre);
    font-family: var(--display);
    font-size: 1.6rem;
    text-transform: uppercase;
}
.recap__note { font-size: 0.82rem; color: var(--acier); }

/* ---------- Étapes ---------- */
.etapes { display: grid; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.etape { background: var(--papier); padding: 1.3rem 1.4rem; display: grid; gap: 0.4rem; }
.etape__num {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: var(--signal);
}
.etape h3 { margin: 0; font-family: var(--texte); font-size: 1.05rem; text-transform: none; font-weight: 700; }
.etape p { margin: 0; font-size: 0.92rem; color: var(--acier); }
@media (min-width: 700px) { .etapes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Suivi du dossier ---------- */
.suivi { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.suivi li {
    display: grid;
    grid-template-columns: 1.6rem 1fr;
    gap: 1rem;
    padding: 0 0 1.4rem;
    position: relative;
}
.suivi li::before {
    content: "";
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--ligne);
    background: var(--papier);
    margin-top: 6px;
    z-index: 1;
}
.suivi li::after {
    content: "";
    position: absolute;
    left: 5px; top: 18px; bottom: 0;
    width: 2px;
    background: var(--ligne);
}
.suivi li:last-child::after { display: none; }
.suivi li.fait::before { background: var(--signal); border-color: var(--signal); }
.suivi li.fait strong { color: var(--encre); }
.suivi strong { display: block; font-size: 0.98rem; }
.suivi span { font-size: 0.87rem; color: var(--acier); }

/* ---------- Messages ---------- */
.message {
    padding: 0.9rem 1.1rem;
    border-radius: var(--rayon);
    border-left: 3px solid;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.message--succes { background: rgba(47, 107, 79, 0.08); border-color: var(--vert); }
.message--erreur { background: rgba(163, 44, 30, 0.08); border-color: var(--rouge); }
.message--info { background: rgba(224, 81, 28, 0.07); border-color: var(--signal); }

/* ---------- Blocs deux colonnes ---------- */
.deux-colonnes { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) {
    .deux-colonnes { grid-template-columns: 1.6fr 1fr; align-items: start; }
    .deux-colonnes--inverse { grid-template-columns: 1fr 1.6fr; }
}

/* ---------- Tableau ---------- */
.tableau { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tableau th, .tableau td { padding: 0.7rem 0.6rem; text-align: left; border-bottom: 1px solid var(--ligne); }
.tableau th {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--acier);
}

/* ---------- Zone de dépôt de fichiers ---------- */
.depot {
    border: 1px dashed var(--ligne);
    border-radius: var(--rayon);
    padding: 1rem;
    background: #fff;
    display: grid;
    gap: 0.5rem;
}
.depot--rempli { border-style: solid; border-color: var(--vert); }
.depot strong { font-size: 0.95rem; }

/* ---------- Pied de page ---------- */
.pied {
    background: var(--encre);
    color: #A9A29B;
    margin-top: clamp(3rem, 8vw, 6rem);
    padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
    font-size: 0.9rem;
}
.pied a { color: #D6D0C9; text-decoration: none; }
.pied a:hover { color: var(--signal); }
.pied__grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pied h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--papier);
    margin: 0 0 0.8rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.pied__bas {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #2C2724;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.82rem;
}

/* ---------- Facture imprimable ---------- */
.facture { max-width: 800px; margin: 2rem auto; background: #fff; padding: 3rem; }
.facture__entete { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
@media print {
    .sans-impression { display: none !important; }
    body { background: #fff; }
    .facture { margin: 0; padding: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .nav { display: none; }
    .nav--ouverte {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--encre);
        padding: 1.2rem var(--gouttiere);
        border-bottom: 1px solid #000;
    }
    .nav__bascule {
        display: block;
        margin-left: auto;
        background: none;
        border: 1px solid #3A3430;
        color: var(--papier);
        border-radius: var(--rayon);
        padding: 0.5rem 0.8rem;
        font: inherit;
        cursor: pointer;
    }
    .entete__barre { position: relative; }
    .recap { position: static; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
