
/*
Theme Name: RideMe Québec
Theme URI: https://rideme.ca
Author: RideMe
Description: Thème bilingue de transport privé, devis et réservation pour RideMe.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rideme
*/

:root {
    --ink: #10263c;
    --gold: #d7a34a;
    --navy: #081b2d;
    --muted: #617184;
    --bg: #f5f7fa;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    line-height: 1.55;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    color: white;
    border-bottom: 1px solid #ffffff3a;
}

.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
}

.brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand span {
    color: var(--gold);
}

.nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 14px;
    font-weight: 600;
}

.nav a:hover {
    color: var(--gold);
}

.lang {
    border: 1px solid #ffffff6e;
    padding: 7px 12px;
    border-radius: 30px;
}

/* GRANDE PHOTO DE FOND : MONTRÉAL ET QUÉBEC */

.hero {
    min-height: 760px;
    display: flex;
    align-items: center;
    color: white;
    background-image:
        linear-gradient(
            90deg,
            rgba(6, 26, 48, 0.88) 0%,
            rgba(8, 35, 62, 0.75) 47%,
            rgba(12, 41, 77, 0.35) 100%
        ),
        url('https://rideme.ca/wp-content/uploads/2026/10/coucher_de_soleil_sur_quebec_et_montreal.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero:after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(transparent, rgba(8, 27, 45, 0.33));
    pointer-events: none;
}

.hero .wrap {
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 95px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    color: #e7bb71;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.08;
    max-width: 780px;
    margin: 18px 0 22px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 19px;
    max-width: 600px;
    color: #e2eaf2;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: #0b1f31;
    padding: 16px 27px;
    border-radius: 5px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background: #e6ba6c;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    margin-left: 12px;
}

.hero-actions {
    margin-top: 32px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 45px;
    color: #e3e9ef;
    font-size: 13px;
}

.hero-pills span:before {
    content: '✓';
    color: var(--gold);
    margin-right: 8px;
}

section {
    padding: 85px 0;
}

.section-top {
    text-align: center;
    margin-bottom: 45px;
}

.section-top h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 10px 0;
}

.section-top p {
    color: var(--muted);
    max-width: 640px;
    margin: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    border-radius: 12px;
    background: white;
    box-shadow: 0 12px 35px #142c4612;
    overflow: hidden;
}

.card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card .body {
    padding: 25px;
}

.card h3 {
    font-size: 22px;
    margin: 0 0 10px;
}

.card p {
    color: var(--muted);
    margin: 0;
}

.services {
    background: var(--bg);
}

.reservation {
    background: #091d30;
    color: white;
}

.reservation .section-top p {
    color: #c2cfdd;
}

.form {
    width: 100%;
    max-width: 950px;
    min-width: 0;
    margin: auto;
    background: white;
    color: var(--ink);
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 25px 55px #0003;
}

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

.field {
    min-width: 0;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #d6dde5;
    border-radius: 6px;
    padding: 13px 12px;
    font: inherit;
    background: white;
    color: var(--ink);
    box-sizing: border-box;
}

.field textarea {
    min-height: 90px;
}

.full {
    grid-column: 1 / -1;
}

.form .btn {
    margin-top: 23px;
}

.note {
    color: #6d7a88;
    font-size: 13px;
}

.notice {
    padding: 15px 20px;
    background: #d8f2e4;
    color: #174e35;
    border-radius: 7px;
    margin-bottom: 20px;
}

.notice.error {
    background: #ffe4e4;
    color: #8a2121;
}

.fleet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
    align-items: center;
}

.fleet-photo {
    min-height: 350px;
    border-radius: 14px;
    background:
        linear-gradient(140deg, #152b43aa, #0b1d3355),
        url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?auto=format&fit=crop&w=1000&q=85')
        center / cover no-repeat;
}

.fleet h2 {
    font-size: 40px;
    margin: 10px 0;
}

.fleet p {
    color: var(--muted);
}

.foot {
    background: #071827;
    color: #c5d0da;
    padding: 50px 0;
}

.foot .wrap {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
}

.foot small {
    color: #91a4b5;
}

.foot a {
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-toggle {
    display: none;
}

/* AFFICHAGE MOBILE */

@media screen and (max-width: 760px) {
    .header .wrap {
        min-height: 72px;
    }

    .brand {
        font-size: 25px;
    }

    .mobile-toggle {
        display: block;
        border: 1px solid #fff8;
        background: transparent;
        color: #fff;
        border-radius: 5px;
        padding: 7px 12px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #081b2d;
        padding: 22px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 690px;
        background-position: center center;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-actions .btn {
        margin: 0 8px 12px 0;
    }

    .cards,
    .fleet {
        grid-template-columns: minmax(0, 1fr);
    }

    .form {
        padding: 22px;
    }

    .reservation .wrap,
    .reservation .form,
    .reservation form,
    .reservation .grid,
    .reservation .field {
        min-width: 0;
        max-width: 100%;
    }

    .reservation .grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .reservation .field input,
    .reservation .field select,
    .reservation .field textarea {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* CORRECTION DATE ET HEURE IPHONE */

    .reservation .field input[type="date"],
    .reservation .field input[type="time"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    .foot .wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    section {
        padding: 65px 0;
    }
}

/* CORRECTION DES CHAMPS SUR IPHONE */

@media screen and (max-width: 767px) {
    .reservation .grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .reservation .field {
        min-width: 0;
        max-width: 100%;
    }

    .reservation input[type="date"],
    .reservation input[type="time"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }
}
