/* COULEURS INTEGRALES : TOUT LE SITE */
:root {
    /* Logo palette: Orange #d07737, Black #080405, White #ffffff */
    --bg-dark: #080405;
    --bg-panel: #141113;
    --text-main: #e0e0e3;
    --text-muted: #a0a0a5;
    --accent: #d07737;
    --accent-rgb: 208, 119, 55;
    --accent-hover: #e18a4c;
    --border-color: #2a2628;
    --site-wallpaper: url("img/car-french-riviera.jpg");
    --glass-strong: rgba(8, 4, 5, 0.72);
    --glass: rgba(20, 17, 19, 0.62);
    --glass-soft: rgba(20, 17, 19, 0.45);
    --font-heading: 'Poppins', sans-serif;
    --font-subheading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-max: 1200px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

html {
    background: var(--bg-dark);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Keep anchored sections visible under the fixed header */
section[id] {
    scroll-margin-top: 90px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--site-wallpaper);
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.1) brightness(0.85);
    transform: scale(1.06);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 0%,
            rgba(255, 255, 255, 0.10),
            rgba(8, 4, 5, 0.662));
    z-index: -1;
    pointer-events: none;
}

/* -----------------------------------------------*/

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

/* Accessible focus */
:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.55);
    outline-offset: 3px;
}

/* Hero fade-in (used in index.html) */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-fade-in 900ms var(--ease-out) forwards;
}

.delay-1 {
    animation-delay: 200ms;
}

.delay-2 {
    animation-delay: 420ms;
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal utility (JS adds .reveal + .is-visible) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(2px);
    transition:
        opacity 650ms var(--ease-out) var(--reveal-delay, 0ms),
        transform 650ms var(--ease-out) var(--reveal-delay, 0ms),
        filter 650ms var(--ease-out) var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Ripple effect (JS injects a .ripple-ink span) */
.ripple {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ripple-ink {
    position: absolute;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.55);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.35;
    pointer-events: none;
    animation: ripple-ink 650ms var(--ease-out) forwards;
}

@keyframes ripple-ink {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Nav --- */
header {
    background: #000000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    transition: all 0.3s ease;
    margin: 0;
    border-radius: 0;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-link:hover .site-logo {
    transform: rotate(-1deg) scale(1.03);
}

.site-logo {
    transition: transform 350ms var(--ease-out);
}

.site-logo {
    height: 44px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.since-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: -5px;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.accent-text {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

nav a:not(.btn-nav)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms var(--ease-out);
    opacity: 0.9;
}

nav a:not(.btn-nav):hover::after,
nav a:not(.btn-nav):focus-visible::after {
    transform: scaleX(1);
}

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

.btn-nav {
    border: 2px solid var(--accent);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateZ(0);
}

.btn-nav:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.35);
}

.btn-nav:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.28);
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), color 180ms ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.06);
    color: var(--accent);
}

#mobile-menu-btn:active {
    transform: scale(0.98);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('img/background-header-garage1.webp');
    background-size: cover;
    background-position: top;
    padding-top: 70px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h2+h2 {
    margin-top: -15px;
}

.hero-content p {
    font-size: 1.25rem;
    font-family: var(--font-subheading);
    margin-bottom: 40px;
    color: #ccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-1934 {
    position: relative;
    display: inline-block;
    color: white;
    padding: 2px 6px;
    font-weight: 700;
}

.highlight-1934::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 4px;
    transform: skewX(-8deg);
    z-index: -1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-nav::before {
    content: "";
    position: absolute;
    inset: -40% -60%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-40%) rotate(10deg);
    transition: transform 700ms var(--ease-out);
    pointer-events: none;
}

.btn-primary:hover::before,
.btn-nav:hover::before {
    transform: translateX(55%) rotate(10deg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- Intro Section --- */
.intro-section {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
}

.intro-badge {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 30px;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.intro-badge:hover {
    transform: translateY(-4px) rotate(-2deg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.intro-section h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro-section p {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.intro-text-box {
    background: var(--glass-strong);
    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    padding: 30px 25px;
    border-radius: 8px;
    margin-top: 30px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms ease;
}

.intro-text-box:hover {
    transform: translateY(-4px);
    border-color: var(--accent-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.intro-text-box p {
    color: #e0e0e3;
    font-weight: 500;
    line-height: 1.8;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.separator {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
}

/* --- History Section --- */
.history-section {
    background: var(--glass-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 100px 0;
    /* separation tordue vers la gauche */
    clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0% 96%);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--text-muted);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    transition: transform 350ms var(--ease-out);
}

.timeline-item:hover {
    transform: translateY(-4px);
}

.timeline-item:hover::after {
    animation: dot-pulse 700ms var(--ease-out) 1;
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    }

    55% {
        transform: scale(1.12);
        box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: rgba(8, 4, 5, 1);
    border: 3px solid var(--accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline .year {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--accent);
    margin-bottom: 10px;
    background: var(--glass-strong);
    border: 2px solid var(--accent);
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 6px;
    display: inline-block;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-weight: 700;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.timeline-item:hover .year {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Clignotement pour l'élément "AUJOURD'HUI" de la timeline */
.timeline-item.final .year {
    transform: scale(1.035);
    border-color: var(--accent);
    box-shadow:
        0 0 20px rgba(var(--accent-rgb), 0.55),
        0 0 42px rgba(var(--accent-rgb), 0.22),
        inset 0 0 14px rgba(var(--accent-rgb), 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .timeline-item.final .year {
        animation: none;
    }
}

.timeline .content h4 {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.timeline .content p {
    color: var(--text-muted);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    cursor: default;
}

.service-card {
    background: var(--glass);
    border: 1px solid #333;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    /* Slight retro rounded corners but not too much */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    will-change: transform;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.service-card:active {
    transform: translateY(-2px) scale(0.99);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.3s, transform 350ms var(--ease-out);
}

.service-card:hover i {
    color: var(--accent);
    transform: translateY(-2px) rotate(-4deg);
}

.service-card h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.parts-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(var(--accent-rgb), 0.6);
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}


.parts-info p {
    margin: 5px 0;
    color: #ffffff;
}

.parts-info i {
    color: white;
    margin-right: 10px;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background: var(--glass-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.gallery-item {
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms var(--ease-out);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}


/* --- Reviews Section --- */
.reviews-section {
    padding: 100px 0;
    position: relative;
    /* Zigzag separation overlaying the gallery section */
    margin-top: -50px;
    padding-top: 150px;
    z-index: 10;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-strong);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--accent);
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rating-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.stars i.empty {
    color: #555;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-info h5 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
    opacity: 0.9;
}

.review-rating {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Team Section --- */
.team-section {
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
    cursor: default;
}

.team-card {
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 26px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms var(--ease-out);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.team-avatar {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(var(--accent-rgb), 0.25);
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    margin-bottom: 14px;
}

.team-card h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #fff;
}

.team-card p {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: var(--glass-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0% 100%);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.separator-left {
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    transition: transform 250ms var(--ease-out);
}

.info-item:hover {
    transform: translateX(6px);
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--glass-strong);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: transform 250ms var(--ease-out), background-color 250ms ease, color 250ms ease;
}

.info-item:hover i {
    transform: rotate(-5deg) scale(1.04);
    background: rgba(var(--accent-rgb), 0.4);
}

.info-item h5 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
    text-transform: uppercase;
}

.info-item p,
.info-item a {
    color: var(--text-muted);
}

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

.hours-list li {
    display: flex;
    justify-content: start;
    width: auto;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.hours-list span {
    color: #fff;
    font-weight: 600;
}

.hours-list .etat-hour {
    margin-left: 10px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 1px;
}

.alert-box {
    margin-top: 40px;
    background: rgba(42, 42, 46, 0.55);
    padding: 20px;
    border-left: 4px solid #ccaa00;
    display: flex;
    gap: 15px;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.alert-box i {
    color: #ccaa00;
    font-size: 1.5rem;
}

.alert-box p {
    font-size: 0.9rem;
    color: #ddd;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 500px;
}

.map-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: filter 350ms ease, transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms ease;
}

.map-frame:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    filter: saturate(1.1) contrast(1.02);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--glass-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out), border-color 350ms ease;
}

.contact-form:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    color: rgb(92, 92, 92);
    font-family: var(--font-body);
    transition: border-color 250ms ease, box-shadow 250ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 250ms ease, transform 250ms var(--ease-out);
}

.contact-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.contact-form p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2vh;
    text-align: right;
    ;
}

.full-map-container {
    margin-top: 40px;
    width: 100%;
}

.full-map-container .map-frame {
    height: 400px;
}


/* --- Footer --- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(5, 2, 3, 0.60);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin-top: -3px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: #fff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.footer-logo p {
    font-size: 0.8em;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms var(--ease-out);
    opacity: 0.8;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
    transform: scaleX(1);
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    margin-top: 20px;
}

.copyright a {
    font-weight: bold;
    color: rgb(124, 124, 124);
}

/* --- Responsive --- */
@media screen and (max-width: 900px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::after {
        left: 23px;
    }

    .timeline-item.right::after {
        left: 23px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 1330px) {
    header {
        padding: 0 20px;
    }

    .site-logo {
        height: 38px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    #mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--glass-strong);
        flex-direction: column;
        padding: 30px 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    nav ul.active {
        transform: translateY(0);
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .map-container {
        height: 300px;
    }

    .full-map-container .map-frame {
        height: 300px;
    }

    /* Fix mobile overflow caused by min-width */
    .contact-info,
    .contact-form,
    .map-container {
        min-width: 0;
        width: 100%;
    }
}

@media screen and (max-width: 488px) {
    .brand-text {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* --- Popup Informations Utiles --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out), visibility 0ms linear 300ms;
}

/* --- Popup Prestations --- */
body.modal-open {
    overflow: hidden;
}

/* --- Lightbox Galerie --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out), visibility 0ms linear 300ms;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 300ms var(--ease-out), visibility 0ms;
}

.lightbox-content {
    position: relative;
    width: min(96vw, 1200px);
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.lightbox-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.lightbox-btn {
    background: rgba(20, 17, 19, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 250ms var(--ease-out), background 250ms ease, border-color 250ms ease, color 250ms ease;
}

.lightbox-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.55);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
}

.lightbox-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    height: 90vh;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(90vh - 36px);
    width: auto;
    height: auto;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 180ms var(--ease-out);
    will-change: transform;
}

@media (max-width: 640px) {
    .lightbox-image-wrap {
        padding: 14px;
    }

    .lightbox-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

.service-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out), visibility 0ms linear 300ms;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 300ms var(--ease-out), visibility 0ms;
}

.service-modal-content {
    background: var(--glass-strong);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 720px;
    width: min(92vw, 720px);
    max-height: 84vh;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 360ms var(--ease-out), opacity 360ms var(--ease-out);
}

.service-modal-overlay.active .service-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.service-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
}

.service-modal-close-btn:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.10);
}

.service-modal-close-btn i {
    transition: transform 250ms var(--ease-out);
}

.service-modal-close-btn:hover i {
    transform: rotate(90deg);
}

.service-modal-body {
    padding: 18px 20px 22px;
    overflow: auto;
    max-height: calc(84vh - 64px);
}

.service-modal-body p {
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.service-modal-body p:last-child {
    margin-bottom: 0;
}

.service-modal-body .service-modal-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 16px;
}

.service-modal-body .service-modal-chip {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-modal-body .service-modal-chip strong {
    color: #fff;
    font-weight: 600;
}

.service-modal-body ul {
    margin: 10px 0 0 0;
    padding-left: 18px;
    list-style: disc;
    color: var(--text-main);
}

.service-modal-body li {
    margin: 8px 0;
    color: var(--text-main);
}

@media screen and (max-width: 560px) {
    .service-modal-body .service-modal-meta {
        grid-template-columns: 1fr;
    }
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 300ms var(--ease-out), visibility 0ms;
}

.popup-content {
    background: var(--glass-strong);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 360ms var(--ease-out), opacity 360ms var(--ease-out);
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0;
    text-transform: uppercase;
}

.popup-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.popup-close-btn:hover i {
    transform: rotate(90deg);
}

.popup-close-btn i {
    transition: transform 250ms var(--ease-out);
}

.popup-close-btn:active {
    transform: scale(0.96);
}

/* Reduced motion: keep things snappy & accessible */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }

    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .ripple-ink {
        animation: none;
        opacity: 0;
    }
}

.popup-close-btn:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.popup-text {
    padding: 20px;
    color: var(--text-main);
    line-height: 1.6;
    font-family: var(--font-body);
}

.popup-text p {
    margin: 0 0 15px 0;
}

.popup-text p:last-child {
    margin-bottom: 0;
}

/* Responsive popup */
@media screen and (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20px;
    }

    .popup-header {
        padding: 15px;
    }

    .popup-text {
        padding: 15px;
    }
}



/* --- PAGINATIION & HISTOIRE --- */
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('img/background-header-garage1.webp');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.page-hero-content p {
    font-size: 1.2rem;
    font-family: var(--font-subheading);
    color: #ddd;
    max-width: 600px;
    margin: 0 auto;
}

.story-container {
    padding: 80px 50px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--glass);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.story-block {
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e3;
    font-family: var(--font-body);
}

.story-block h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 25px;
    margin-top: 40px;
    text-transform: uppercase;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.story-block p {
    margin-bottom: 20px;
    text-align: justify;
}

.story-block.final-block p {
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.1);
}

/* Drop Cap */
.drop-cap::first-letter {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--accent);
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    font-family: var(--font-heading);
}

.story-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
    border-left: 4px solid var(--accent);
    background: var(--glass);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.story-quote i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 10px;
    opacity: 0.8;
}

/* Image Placeholders */
.story-media {
    margin: 50px 0;
}

.gallery-grid-story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

@media (min-width: 768px) {
    .gallery-grid-story {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 976px) {
    .footer-links {
        display: none;
    }
}

.story-container .media-frame {
    cursor: pointer;
}

.media-frame {
    background: var(--glass);
    border: 1px solid #333;
    padding: 10px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.story-float-right {
    float: right;
    width: 38%;
    margin-left: 40px;
    margin-bottom: 30px;
    clear: both;
}

.story-float-left {
    float: left;
    width: 30%;
    margin-right: 40px;
    margin-bottom: 30px;
    clear: both;
}

.media-frame:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.placeholder-img {
    background: #1a1a1a;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 2px dashed #444;
    border-radius: 2px;
}

.placeholder-img i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.placeholder-img span {
    font-family: var(--font-subheading);
    padding: 0 20px;
    text-align: center;
    font-size: 0.9rem;
}

figcaption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.cta-history {
    padding: 80px 20px;
    text-align: center;
    background: var(--glass-strong);
    border-top: 1px solid #333;
    margin-top: 50px;
}

.cta-history h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .story-block h3 {
        font-size: 1.5rem;
    }

    .story-quote {
        font-size: 1.1rem;
    }

    .story-float-right,
    .story-float-left {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-panel);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 15px;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--bg-panel);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
    z-index: 1;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: dropdown-fade 0.3s var(--ease-out);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--accent);
    color: white;
    padding-left: 25px;
}

.dropdown-menu a::after {
    display: none;
}

@media screen and (max-width: 1330px) {

    .dropdown-menu,
    .dropdown:hover .dropdown-menu {
        display: none !important;
    }
}

@keyframes dropdown-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}