/* ============================================
   Smart Bicycle Gear — Feuille de style corrigée et optimisée
   Thème unifié : fond sombre / texte clair
   ============================================ */

:root {
    --bg-main: #121212;      /* fond général des pages */
    --bg-card: #1E1E1E;      /* cartes, sections, header, footer */
    --bg-panel: #2C3E50;     /* champs de formulaire, encarts */
    --border-color: #34495E; /* bordures discrètes */
    --text-light: #E0E0E0;   /* texte principal */
    --text-secondary: #bdc3c7; /* texte secondaire / légendes */
    --text-muted: #888;      /* mentions légales, copyright */
    --accent: #D35400;       /* orange de marque (liens, titres, CTA) */
    --accent-hover: #E67E22; /* orange au survol */
    --success: #2E8B57;      /* vert (points forts, validations) */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Réinitialisation des styles par défaut */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Conteneur général */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   Header / Navigation (commun aux 4 pages)
   ============================================ */
header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.65rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Icône boutique */
.boutique-icon {
    font-size: 1.4rem;
    margin-left: 1.5rem;
}

/* Menu hamburger pour mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    header nav.container {
        flex-wrap: wrap;
    }
    .nav-links {
        flex-direction: column;
        display: none;
        width: 100%;
        background-color: var(--bg-card);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        gap: 1rem;
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 0.5rem 0;
    }
    .hamburger {
        display: block;
    }
}

/* ============================================
   Hero Section (page d'accueil : 2 images côte à côte)
   ============================================ */
.hero-images {
    display: flex;
    width: 100%;
    height: 60vh;
    margin: 0;
    padding: 0;
}

.hero-images > div {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.hero-images picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    filter: contrast(110%) brightness(95%);
    transition: all 0.5s ease;
    will-change: transform, filter;
}

.hero-img:hover {
    transform: scale(1.05);
    filter: contrast(120%) brightness(100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-light);
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 3px;
}

/* ============================================
   Hero Section pour offres.html (1 image pleine largeur)
   ============================================ */
.offres-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.offres-hero picture {
    display: block;
    width: 100%;
    height: 100%;
}

.offres-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
    filter: contrast(110%) brightness(95%);
    transition: all 0.5s ease;
    will-change: transform, filter;
}

.offres-hero-img:hover {
    transform: scale(1.05);
    filter: contrast(120%) brightness(100%);
}

.offres-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
}

.offres-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--text-light);
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin: 0.5rem 0;
}

/* Media Queries pour Hero */
@media (max-width: 768px) {
    .hero-images {
        flex-direction: column;
        height: auto;
    }
    .hero-images > div {
        height: 40vh;
    }
    .hero-img {
        height: 40vh;
    }
    .offres-hero {
        height: 40vh;
    }
    .offres-hero-img {
        height: 40vh;
    }
    .hero-title, .offres-hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   Section de présentation (accueil)
   ============================================ */
.presentation {
    padding: 3rem 0;
    background-color: var(--bg-card);
    text-align: center;
    width: 100%;
    margin: 0;
    color: var(--text-light);
}

.presentation h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.presentation p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
}

.presentation ul {
    text-align: left;
    display: inline-block;
    margin: 1rem 0;
    padding: 0;
}

.presentation li {
    margin-bottom: 0.5rem;
    list-style-type: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   Cartes technologies / vélos
   ============================================ */
.tech-card, .velo-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: transform 0.3s ease;
    color: var(--text-light);
    will-change: transform;
}

.tech-card:hover, .velo-card:hover {
    transform: translateY(-10px);
}

.tech-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform, filter;
}

.tech-card:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(120%);
}

.tech-section {
    padding: 4rem 0;
}

.tech-section h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
}

/* Colonnes technologies : texte + photo */
.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Photo à gauche, paragraphes à droite */
.tech-layout.img-left .tech-media   { order: 1; }
.tech-layout.img-left .tech-content { order: 2; }

/* Photo à droite, paragraphes à gauche */
.tech-layout.img-right .tech-media   { order: 2; }
.tech-layout.img-right .tech-content { order: 1; }

@media (max-width: 768px) {
    .tech-layout {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Boutons
   ============================================ */
.btn, button {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover, button:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

/* ============================================
   Pied de page (commun aux 4 pages)
   ============================================ */
.footer, footer {
    background-color: var(--bg-card);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer a, footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover, footer a:hover {
    color: var(--accent);
}

footer h3, footer h5 {
    color: var(--accent);
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .copyright,
footer .text-center {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================
   Page "Qui sommes-nous"
   ============================================ */
.banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.projet {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.projet h1 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.projet p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.equipe {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    padding: 0 1rem;
}


.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.cta-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
    border-radius: 8px;
}

.cta-section h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-section p {
    color: var(--text-secondary);
}
.cta-section a {
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .equipe {
        flex-direction: column;
        align-items: center;
    }
    .projet {
        font-size: 1rem;
    }
}

/* ============================================
   Section "Nos partenaires"
   ============================================ */
.partners-section {
    padding: 4rem 0;
    text-align: center;
}

.partners-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.partners-section p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    will-change: transform, filter, opacity, border-color;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
    border-color: var(--accent);
}

.partner-logo img {
    max-width: 100%;
    max-height: 45px;
    object-fit: contain;
}

.partner-logo span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* ============================================
   Formulaire (page Nos offres)
   ============================================ */
.questionnaire-section {
    background-color: var(--bg-card);
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    max-width: 600px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

select, input[type="number"] {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-panel);
    color: var(--text-light);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.budget-info {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 15px;
    display: block;
}

/* ============================================
   Accessibilité : Réduction des animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
/* ============================================
   Liens légaux — bas de page, à droite
   ============================================ */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: flex-end;
    margin-left: auto;
}

.footer-legal a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}
/* Footer structure commune à toutes les pages */
.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 60px;
    width: auto;
}

.footer-brand p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 260px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-bottom p { margin: 0; }
.footer-grid ul a { font-size: 0.85rem; }
.footer-grid h5 { font-size: 0.85rem; }

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: start;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}