/* =============================================================
   Alsace Drive - Feuille de style principale
   ============================================================= */

:root {
    --yellow:      #ffed00;
    --yellow-dark: #d4c400;
    --dark:        #1b1b1b;
    --panel:       rgba(20, 22, 26, 0.82);
    --panel-solid: #14161a;
    --active:      #3ddc97;
    --text:        #ffffff;
    --text-soft:   #d8dade;
    --border:      rgba(255, 255, 255, 0.14);
    --column:      620px;
    --radius:      4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* --- Fond de page ------------------------------------------- */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay, 0.15));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Colonne centrale --------------------------------------- */
.wrapper {
    max-width: var(--column);
    margin: 0 auto;
    background: var(--panel);
    min-height: 100vh;
}

/* --- En-tete ------------------------------------------------- */
.site-header {
    background: var(--yellow);
    padding: 18px 20px 10px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #000;
    line-height: 1;
    margin: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    flex: none;
    color: #000;
}

.baseline {
    margin: 8px 0 0;
    font-size: 13px;
    color: #1a1a1a;
}

/* --- Navigation ---------------------------------------------- */
.site-nav {
    display: flex;
    background: var(--panel-solid);
    border-bottom: 1px solid var(--border);
}

.site-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 4px;
    font-size: 12px;
    color: var(--text-soft);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
}

.site-nav a.is-active {
    background: var(--active);
    color: #06301f;
    font-weight: 600;
}

.nav-toggle { display: none; }

/* --- Bande damier (rappel taxi) ------------------------------ */
.checker {
    height: 14px;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.9) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.9) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.9) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.9) 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
    opacity: 0.85;
}

.checker--dark {
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.85) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.85) 75%),
        linear-gradient(45deg, rgba(0,0,0,0.85) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.85) 75%);
}

/* --- Sections ------------------------------------------------ */
.section {
    padding: 22px 26px 30px;
    text-align: center;
}

.section p { margin: 0 0 14px; }
.section p:last-child { margin-bottom: 0; }

.section-title {
    margin: 18px 0 16px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.section--vip .section-title {
    font-size: 26px;
    letter-spacing: 0.02em;
}

.text-narrow {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13.5px;
    color: var(--text-soft);
}

/* --- Bloc promesse (fond jaune) ------------------------------ */
.promise {
    background: var(--yellow);
    color: #141414;
    margin: 24px 22px;
    padding: 4px 24px 26px;
    border-radius: var(--radius);
    text-align: center;
}

.promise .section-title { color: #ffffff; }
.promise p { color: #141414; }
.promise .note { font-size: 11.5px; }

/* --- Blocs texte + image ------------------------------------- */
.media-block { padding: 26px 26px 10px; }

.media-block img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.media-block--narrow img {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

.justified {
    text-align: justify;
    font-size: 13px;
    color: var(--text-soft);
}

/* --- Bandeau telephone --------------------------------------- */
.phone-band { padding: 6px 26px 30px; }

.phone-band .phone-title {
    font-size: 26px;
    font-weight: 500;
    margin: 16px 0 18px;
}

.phone-band .phone-title a { color: #fff; }

.btn {
    display: inline-block;
    background: var(--yellow);
    color: #141414;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 26px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: #ffe600; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-center { text-align: center; margin: 20px 0; }

/* =============================================================
   Formulaire de demande - accordeon
   ============================================================= */
.quote-box {
    background: #f4f4f4;
    color: #222;
    margin: 26px 22px;
    border-radius: var(--radius);
    overflow: hidden;
}

.quote-box__head {
    background: var(--yellow);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #141414;
}

.quote-box__body { padding: 14px; }

.quote-box__legend {
    margin: 0 0 12px;
    font-size: 13px;
    color: #444;
}

/* --- Choix du type de trajet --------------------------------- */
.trip-types {
    border: 1px solid #d7d7d7;
    border-radius: var(--radius);
    padding: 8px;
    background: #fff;
}

.trip-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.trip-type:last-child { margin-bottom: 0; }
.trip-type:hover { border-color: var(--yellow-dark); background: #fff; }

.trip-type.is-selected {
    border-color: #141414;
    background: var(--yellow);
    color: #141414;
}

.trip-type .icon { color: #6b6b6b; }
.trip-type.is-selected .icon { color: #141414; }

.trip-type__label { flex: 1; text-align: center; }

/* --- Etapes en accordeon -------------------------------------- */
.steps { margin-top: 12px; }

.step { border-bottom: 1px solid #e2e2e2; }
.step:first-child { border-top: 1px solid #e2e2e2; }

.step__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    background: #ececec;
    border: none;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    text-align: left;
    cursor: pointer;
}

.step__header:hover { background: #e3e3e3; }
.step.is-open .step__header { background: #dedede; font-weight: 600; }

.step__chevron { transition: transform 0.25s; flex: none; color: #666; }
.step.is-open .step__chevron { transform: rotate(180deg); }

.step__panel { display: none; padding: 14px 12px 18px; background: #fff; }
.step.is-open .step__panel { display: block; }

.field { margin-bottom: 12px; text-align: left; }
.field:last-child { margin-bottom: 0; }

.field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #444;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--yellow-dark);
    box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.35);
}

.field textarea { min-height: 78px; resize: vertical; }

.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; }

.field-hint { font-size: 11.5px; color: #777; margin-top: 4px; }

.required { color: #c0392b; }

.form-error {
    background: #fdecea;
    border: 1px solid #f5c6c2;
    color: #8c2018;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 14px;
    text-align: left;
}

.form-success {
    background: #e7f7ee;
    border: 1px solid #b7e4c9;
    color: #1a6b3f;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 14px;
    text-align: left;
}

.quote-box__submit { padding: 4px 12px 16px; text-align: center; }
.quote-box__submit .btn { width: 100%; }

/* =============================================================
   Partenaires, SEO, pied de page
   ============================================================= */
.partners { padding: 26px; text-align: center; border-top: 1px solid var(--border); }
.partners p { font-size: 14px; margin: 0 0 18px; }

.partners__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.partners__logos img { max-height: 46px; width: auto; }

.seo-text {
    padding: 4px 26px 26px;
    font-size: 11.5px;
    line-height: 1.75;
    color: #b9bcc2;
    text-align: justify;
}

.site-footer {
    background: #0a0b0d;
    padding: 22px 26px 30px;
    text-align: center;
}

.site-footer .copyright { font-size: 12px; color: #9aa0a6; margin: 0 0 14px; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    font-size: 12px;
}

.footer-links span { color: #4d5157; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 760px) {
    .wrapper { max-width: 100%; }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: var(--panel-solid);
        color: #fff;
        border: none;
        border-bottom: 1px solid var(--border);
        font-family: inherit;
        font-size: 14px;
        cursor: pointer;
    }

    .site-nav { display: none; flex-wrap: wrap; }
    .site-nav.is-open { display: flex; }
    .site-nav a { flex: 1 1 33.333%; }

    .section, .media-block, .phone-band, .seo-text, .partners { padding-left: 16px; padding-right: 16px; }
    .quote-box, .promise { margin-left: 12px; margin-right: 12px; }
    .field-row { flex-direction: column; gap: 0; }
    .justified { text-align: left; }
    .site-bg { background-attachment: scroll !important; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* =============================================================
   Ajouts : pages de contenu
   ============================================================= */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--yellow);
    color: #141414;
    padding: 10px 16px;
    z-index: 10;
}

.skip-link:focus { left: 0; }

.site-header .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.site-header .logo a:hover { text-decoration: none; }

.text-block { padding: 4px 26px 10px; }
.text-block p { margin: 0 0 14px; }

.media-block p { margin: 0 0 14px; }
.media-block p:last-child { margin-bottom: 0; }

.media-caption {
    font-size: 12px;
    color: #a9adb4;
    text-align: center;
    margin-top: 10px;
}

.promise-text { margin: 0 0 12px; }

.section + .media-block { padding-top: 0; }

@media (max-width: 760px) {
    .text-block { padding-left: 16px; padding-right: 16px; }
}

/* --- Listes a puces des pages de services -------------------- */
.bullet-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-soft);
    text-align: justify;
}

.bullet-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 9px;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    background: var(--yellow);
    border-radius: 50%;
}

.bullet-list li:last-child { margin-bottom: 0; }

.list-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .bullet-list { text-align: left; }
}

/* --- Encadre d'information ----------------------------------- */
.notice {
    margin: 22px 22px 26px;
    padding: 16px 18px;
    border-radius: var(--radius);
    text-align: justify;
}

.notice--yellow { background: var(--yellow); color: #141414; }
.notice--yellow a { color: #6b5f00; text-decoration: underline; }

.notice--dark {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--border);
    color: var(--text-soft);
}

.notice__label {
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
}

.notice__text {
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 12px;
}

.notice__text:last-child { margin-bottom: 0; }

/* --- Sous-titres de section ---------------------------------- */
h3.section-title { font-size: 19px; margin: 20px 0 12px; }
h4.section-title { font-size: 16px; margin: 18px 0 10px; }

.emphasis-text {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    max-width: 520px;
    margin: 0 auto 10px;
}

@media (max-width: 760px) {
    .notice { margin-left: 12px; margin-right: 12px; text-align: left; }
}

/* =============================================================
   Questionnaire de candidature
   ============================================================= */
.quote-box--form .quote-box__body { padding: 18px 16px 8px; }

.fieldset {
    border: none;
    border-top: 1px solid #d6d6d6;
    margin: 0 0 22px;
    padding: 14px 0 0;
}

.fieldset:first-of-type { border-top: none; padding-top: 0; }

.fieldset legend {
    padding: 0;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.field-legend {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #444;
}

.radio,
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

.radio input,
.checkbox input {
    width: auto;
    margin: 3px 0 0;
    flex: none;
    accent-color: #141414;
}

.radio:hover span,
.checkbox:hover span { color: #000; }

.checkbox span { font-size: 12.5px; color: #4a4a4a; }

.inline-number {
    width: 62px !important;
    padding: 3px 6px !important;
    margin: 0 2px;
    font-size: 13px !important;
}

.field textarea[rows] { min-height: 0; }

/* =============================================================
   Pages legales
   ============================================================= */
.legal-block { padding: 0 26px 4px; }

.legal-title {
    font-size: 17px;
    font-weight: 500;
    margin: 24px 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

h3.legal-title { font-size: 15px; border-bottom: none; margin-bottom: 6px; }

.legal-text {
    font-size: 13.5px;
    line-height: 1.72;
    color: var(--text-soft);
    text-align: left;
    margin: 0 0 12px;
}

.legal-text strong { color: #fff; }

.legal-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-soft);
}

.legal-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 7px;
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--yellow);
    border-radius: 50%;
}

.legal-updated {
    font-size: 12px;
    color: #9aa0a6;
    padding: 0 26px 18px;
    text-align: left;
}

@media (max-width: 760px) {
    .legal-block, .legal-updated { padding-left: 16px; padding-right: 16px; }
}

/* =============================================================
   Formulaire de contact par mail
   ============================================================= */
.mail-form { padding: 6px 26px 30px; }

.mail-form .row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.mail-form .row--top { align-items: flex-start; }

.mail-form label {
    flex: 0 0 96px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: left;
}

.mail-form .row--top label { padding-top: 8px; }

.mail-form input,
.mail-form textarea {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #222;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius);
}

.mail-form textarea { min-height: 170px; resize: vertical; }

.mail-form input:focus,
.mail-form textarea:focus {
    outline: none;
    border-color: var(--yellow-dark);
    box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.35);
}

.mail-form input::placeholder { color: #999; }

.mail-form .row--submit { margin-top: 16px; }
.mail-form .row--submit span { flex: 0 0 96px; }

.btn--dark {
    background: #3f4249;
    color: #fff;
    border: 1px solid #5a5e66;
}

.btn--dark:hover { background: #4b4f57; }

.mail-form__note {
    margin: 18px 0 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: #9aa0a6;
    text-align: left;
}

.mail-form .form-success,
.mail-form .form-error { margin-bottom: 18px; }

@media (max-width: 760px) {
    .mail-form { padding-left: 16px; padding-right: 16px; }
    .mail-form .row { flex-direction: column; align-items: stretch; gap: 5px; }
    .mail-form label,
    .mail-form .row--submit span { flex: none; }
    .mail-form .row--top label { padding-top: 0; }
    .mail-form .row--submit span { display: none; }
}

/* --- Sous-titres soulignes des CGV --------------------------- */
h4.legal-title {
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: none;
    margin: 22px 0 8px;
    color: #fff;
}

/* --- Sous-titres en italique des politiques ------------------ */
h5.legal-title {
    font-size: 13.5px;
    font-weight: 600;
    font-style: italic;
    text-decoration: none;
    border-bottom: none;
    margin: 18px 0 7px;
    color: #fff;
}
