/* ============================================================
   CVD AUTOMOBILES — feuille de style principale
   Site statique HTML/CSS (refonte du site WordPress original)
   ============================================================ */

/* ---------- Polices ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Slab:wght@400;500;600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
    --orange: #f97a01;
    --orange-dark: #e06d00;
    --red: #fc0012;
    --rose: #fff2f3;
    --dark: #111010;
    --black: #020101;
    --gray: #6b6b6b;
    --light: #f7f7f7;
    --white: #ffffff;
    --font-body: 'Roboto', Arial, sans-serif;
    --font-head: 'Roboto Slab', Georgia, serif;
    --container: 1200px;
    --radius: 10px;
    --shadow: 0 10px 35px rgba(0, 0, 0, .08);
    --transition: .25s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--dark); line-height: 1.25; font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section--rose { background: var(--rose); }
.section--light { background: var(--light); }
.text-center { text-align: center; }

/* ---------- Titres de section ---------- */
.eyebrow {
    display: inline-block;
    color: var(--orange);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 6px;
}
/* Petite "vague" / arc orange sous le texte (comme l'original) */
.eyebrow::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 118px;
    height: 44px;
    border: 3px solid var(--orange);
    border-radius: 50%;
    clip-path: circle(45.4% at 50% 0);
}
.section-title {
    font-size: 38px;
    margin-bottom: 22px;
    font-weight: 800;
}
.lead { font-size: 17px; color: var(--gray); max-width: 720px; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    font-family: var(--font-body);
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid var(--orange);
    cursor: pointer;
    transition: all var(--transition);
}
.btn:hover { background: var(--white); color: var(--orange); }
.btn--ghost { background: transparent; color: var(--dark); border-color: #e0e0e0; }
.btn--ghost:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn svg { flex-shrink: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--orange);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .12);
}
/* Bloc blanc incliné à gauche qui porte le logo (comme l'original) */
.header::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 42%;
    background: #fff;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
    z-index: 0;
}
.header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--container);
    margin: 0 auto;
}
.header__logo img { height: 52px; width: auto; display: block; }
.nav ul { display: flex; gap: 30px; }
.nav a {
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    text-transform: capitalize;
    position: relative;
    padding: 8px 0;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 2px;
    width: 0; height: 2px;
    background: #fff;
    transition: width var(--transition);
}
.nav a:hover { color: rgba(255, 255, 255, .82); }
.nav a.active::after, .nav a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 2;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: var(--transition); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, .32), rgba(10, 10, 10, .40)), url('../img/header-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}
.hero h1 {
    color: var(--white);
    font-size: 52px;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto;
}
.page-hero { padding: 70px 0; }
.page-hero h1 { font-size: 44px; }
.breadcrumb { margin-top: 14px; font-size: 15px; color: #ffd9b0; }
.breadcrumb a:hover { color: var(--white); }

/* ============================================================
   À PROPOS (accueil)
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-imgs img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 16px; color: var(--gray); }

/* Mini-features (colonne droite) */
.mini-features { display: grid; gap: 22px; }
.mini-feature {
    background: var(--white);
    border: 1px solid #efefef;
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.mini-feature:hover { transform: translateY(-4px); }
.mini-feature .ic { font-size: 30px; color: var(--orange); margin-bottom: 12px; }
.mini-feature h5 { font-size: 20px; margin-bottom: 8px; }
.mini-feature p { color: var(--gray); font-size: 15px; }

/* ============================================================
   SERVICES — grille de cartes
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 50px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-bottom-color: var(--orange); }
.service-card .ic {
    width: 76px; height: 76px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rose);
    color: var(--orange);
    border-radius: 50%;
    font-size: 32px;
    transition: var(--transition);
}
.service-card:hover .ic { background: var(--orange); color: var(--white); }
.service-card h3 { font-size: 18px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.service-card p { color: var(--gray); font-size: 14.5px; }

/* ============================================================
   PARTENAIRES / véhicules — logos
   ============================================================ */
.logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}
.logos-row a { transition: transform var(--transition); }
.logos-row a:hover { transform: scale(1.08); }
.logos-row img { max-height: 70px; width: auto; }

/* ============================================================
   PAGE SERVICES — sections alternées
   ============================================================ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
/* Position de l'image gérée explicitement par classe (.order-right = image à droite) */
.feature-row__img.order-right { order: 2; }
.feature-row__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.feature-row__text .subtitle { color: var(--orange); font-weight: 600; margin-bottom: 14px; display: block; }
.feature-row__text p { color: var(--gray); margin-bottom: 14px; }

/* Section sans image (texte pleine largeur) */
.feature-block {
    max-width: 880px;
    margin: 0 auto 0;
    text-align: center;
}
.feature-block .lead, .feature-block p { color: var(--gray); }

/* Bouton de téléchargement (PDF) */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 13px 24px;
    border-radius: 50px;
    border: 2px solid var(--dark);
    transition: all var(--transition);
}
.btn-download:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-download svg { flex-shrink: 0; }

/* ============================================================
   PAGE HISTOIRE
   ============================================================ */
.histoire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.histoire-imgs { display: grid; gap: 20px; position: sticky; top: 100px; }
.histoire-imgs img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.histoire-text p { margin-bottom: 16px; color: var(--gray); }

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-list { display: grid; gap: 26px; margin-top: 10px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ic {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: var(--rose); color: var(--orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.contact-item h4 { font-size: 17px; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--gray); }
.contact-item a:hover { color: var(--orange); }

.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 7px; font-size: 14.5px; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--orange); }
textarea.form-control { resize: vertical; min-height: 130px; }

.map-wrap { margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ============================================================
   PAGE MENTIONS LÉGALES
   ============================================================ */
.legal-content { max-width: 880px; margin: 0 auto; }
.legal-content h2 { font-size: 26px; margin: 36px 0 16px; color: var(--orange); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--gray); margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px 22px; list-style: disc; color: var(--gray); }
.legal-content li { margin-bottom: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(135deg, #1a1110 0%, #2a1608 100%);
    color: #cfcfcf;
    padding: 60px 0 0;
}
.footer__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 40px;
}
.footer__cta h3 { color: var(--white); font-size: 26px; max-width: 320px; }
.footer__cta a:hover { color: var(--orange); }
.footer__logo { text-align: center; }
.footer__logo img { height: 80px; width: auto; margin: 0 auto; }
.footer__social { text-align: right; }
.footer__social span { display: block; color: var(--white); margin-bottom: 14px; font-weight: 600; }
.footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}
.footer__social a:hover { background: var(--orange); }
.footer__divider { height: 1px; background: rgba(255, 255, 255, .12); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 0;
    font-size: 14px;
}
.footer__bottom a:hover { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 32px; }
    .hero h1 { font-size: 42px; }
}

@media (max-width: 860px) {
    .section { padding: 60px 0; }
    .about-grid, .feature-row, .histoire-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .feature-row__img.order-right { order: 0; }
    .histoire-imgs { position: static; }
    .footer__top { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .footer__cta h3 { max-width: none; }
    .footer__social { text-align: center; }

    /* Bloc blanc plus large sur mobile pour garder le logo lisible */
    .header::before { width: 68%; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%); }
    .header__logo img { height: 46px; }

    /* Menu mobile */
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: 280px;
        max-width: 80%;
        background: var(--white);
        box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
        transform: translateX(100%);
        transition: transform .3s ease;
        padding: 90px 30px 30px;
        z-index: 99;
    }
    .nav.open { transform: translateX(0); }
    .nav ul { flex-direction: column; gap: 4px; }
    .nav a { display: block; padding: 12px 0; color: var(--dark); border-bottom: 1px solid #f0f0f0; }
    .nav a:hover { color: var(--orange); }
    .nav a::after { background: var(--orange); }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .about-imgs { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 80px 0; }
    .page-hero h1 { font-size: 32px; }
    .section-title { font-size: 26px; }
    .footer__bottom { flex-direction: column; text-align: center; }
}
