:root {
    --bg: #0a0a0a;
    --card: #121212;
    --muted: #9aa0a6;
    --text: #ffffff;
    --accent: #0A93C9;
    --glow: 0 10px 40px rgba(10, 147, 201, 0.25);
    --radius: 22px;
    --radius-lg: 26px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.portfolio-item img,
.gallery-item img,
.about-hero-image img,
.contact-hero-image img,
.home-background-image img {
    max-width: none;
}

body.home-page {
    background: #000000 !important;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.logo:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Home Page */
.home-page {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #000;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(100vh, auto) auto auto;
    grid-template-rows: minmax(100dvh, auto) auto auto;
    grid-template-areas:
        "hero"
        "separator"
        "footer";
}

.home-background-image,
.home-header,
.home-main {
    grid-area: hero;
}

.home-background-image {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 0;
    overflow: hidden;
}

.home-background-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.08) 45%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.home-background-image img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.home-header {
    position: relative;
    z-index: 3;
    align-self: start;
    justify-self: stretch;
    padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
    background: transparent;
}

.home-logo {
    font-size: clamp(1rem, 2.8vw, 1.8rem);
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.2;
}

.home-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(240px, 34%) 1fr;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.home-nav-section {
    pointer-events: auto;
    padding: clamp(5rem, 14vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 4rem);
    background: transparent;
    display: flex;
    align-items: flex-start;
    align-self: center;
}

.home-nav-menu {
    width: 100%;
}

.nav-main-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-main-links li {
    margin: 0;
}

.nav-main-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    display: block;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    position: relative;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.nav-main-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d946ef;
    transition: width 0.3s ease;
}

.nav-main-links a:hover::after {
    width: 100%;
}

.nav-main-links a:hover {
    color: #d946ef;
}

.nav-portfolio-group {
    display: block;
}

.nav-portfolio-group a {
    letter-spacing: 0.15em;
    line-height: 1.6;
}

.home-hero-image {
    display: block;
    pointer-events: none;
}

.home-separator {
    grid-area: separator;
    position: relative;
    width: 100%;
    height: clamp(80px, 12vh, 140px);
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.separator-line {
    width: min(50%, 420px);
    height: 1px;
    background: #ffffff;
    flex-shrink: 0;
}

.home-footer {
    grid-area: footer;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    background-image: url('../SITE WEB/2_ABOUT/Bandeau bas de page.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 200px;
    width: 100%;
}

.footer-left {
    display: none;
}

.footer-bottle {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-right p {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}


/* Hero Section (for other pages) */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 20px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--text);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* About Page */
.about-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.about-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    text-stroke: 2px var(--text);
    letter-spacing: 0.1em;
    z-index: 2;
    pointer-events: none;
}

.about-intro {
    padding: 4rem 20px;
    background: var(--bg);
}

.intro-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-sections {
    padding: 4rem 20px;
    background: var(--card);
}

.about-sections .container {
    max-width: 1200px;
}

.about-section-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    -webkit-text-stroke: 2px var(--text);
    text-stroke: 2px var(--text);
    color: transparent;
    line-height: 1;
    min-width: 120px;
}

.section-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-content p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
}

.about-stats {
    padding: 4rem 20px;
    background: var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    padding: 2rem;
    background: var(--card);
    border-radius: var(--radius);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--muted);
}

.about-cta {
    padding: 4rem 20px;
    background: var(--card);
    text-align: center;
}

.about-cta .container {
    max-width: 1200px;
}

.about-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.about-cta p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.cta-button-outline {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid var(--text);
    transition: all 0.3s ease;
    position: relative;
}

.cta-button-outline:hover {
    background: var(--text);
    color: var(--bg);
    transform: scale(1.11);
}

/* Portfolio Full Page */
.portfolio-full-page {
    background: var(--bg);
    width: 100%;
}

.portfolio-header {
    padding: 8rem 20px 6rem;
    text-align: center;
    background: var(--bg);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.portfolio-main-title {
    font-size: 7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0;
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

.portfolio-section {
    padding: 5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-section .portfolio-grid {
    margin-top: 1rem;
}

.portfolio-section:last-child {
    border-bottom: none;
    padding-bottom: 6rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: left;
    padding-bottom: 0;
    border-bottom: none;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.05em;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    width: 100%;
    grid-auto-rows: min-content;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Supprimer toutes les marges pour la section SPORT */
.portfolio-section-sport .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    grid-auto-rows: minmax(200px, auto);
}

/* Supprimer les contraintes d'aspect-ratio pour la section SPORT */
.portfolio-section-sport .portfolio-item {
    aspect-ratio: auto !important;
    min-height: 200px;
    border-radius: 0;
    box-shadow: none;
}

.portfolio-section-sport .portfolio-item.tall {
    aspect-ratio: auto !important;
    min-height: 400px;
    grid-row: span 2;
}

.portfolio-section-sport .portfolio-item.wide {
    aspect-ratio: auto !important;
    min-height: 200px;
    grid-column: span 2;
}

.portfolio-section-sport .portfolio-item img {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
}

/* Images hautes - prennent 2 rangées */
.portfolio-item.tall {
    grid-row: span 2;
    aspect-ratio: 1/2;
}

/* Images larges - prennent 2 colonnes */
.portfolio-item.wide {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2/1;
}

/* Images grandes - prennent 2 colonnes et 2 rangées */
.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
}

.portfolio-item img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--card);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.45s ease, filter 0.5s ease, transform 0.35s ease;
}

.portfolio-item img.loaded,
.gallery-item img.loaded {
    opacity: 1;
    filter: blur(8px);
}

.portfolio-item:hover {
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.portfolio-item:hover img,
.gallery-item:hover img {
    filter: blur(0);
    transform: scale(1.04);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-item img,
    .gallery-item img {
        opacity: 1;
        filter: none;
        transition: none;
    }

    .portfolio-item:hover img,
    .gallery-item:hover img {
        transform: none;
    }
}

/* Portfolio Categories (for category pages) */
.portfolio-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card a {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.category-card h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Gallery */
.portfolio-gallery {
    padding: 4rem 20px;
}

.portfolio-gallery h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

/* Contact Page */
.contact-hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.contact-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-main-section {
    padding: 4rem 20px;
    background: var(--bg);
}

.contact-main-section > .container {
    max-width: 1200px;
}

.section-title-large {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.contact-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.contact-info-left h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.contact-details {
    color: var(--text);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-details p {
    margin-top: 1.5rem;
    color: var(--muted);
    line-height: 1.6;
}

.contact-info-right {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
}

.calendly-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.calendly-widget p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.calendly-placeholder {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.contact-form-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}

.contact-form-detailed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.faq-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-answer {
    padding: 0 1.5rem;
    color: var(--muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    display: block;
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 1.5rem);
    bottom: clamp(1rem, 3vw, 1.5rem);
    z-index: 998;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        filter 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: var(--glow);
    pointer-events: none;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10, 147, 201, 0.4);
}

.back-to-top:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.back-to-top svg {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .back-to-top:hover {
        transform: none;
    }
}

/* Footer */
.site-footer {
    background: var(--card);
    padding: 2rem 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-main-title {
        font-size: 5rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }

    /* Page d'accueil — menu en bas du hero */
    .home-main {
        grid-template-columns: 1fr;
        align-content: end;
        align-items: end;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .home-nav-section {
        align-self: end;
        width: 100%;
        padding: 1rem 1.25rem 2.75rem;
    }

    .nav-main-links {
        gap: 1.1rem;
    }

    .home-hero-image {
        display: none;
    }

    .home-background-image img {
        object-position: center 22%;
    }

    .footer-right {
        justify-content: center;
        text-align: center;
    }

    /* Navigation interne */
    .logo {
        font-size: 1.1rem;
        max-width: calc(100% - 52px);
        line-height: 1.3;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        gap: 0;
        background: rgba(18, 18, 18, 0.98);
        width: min(100%, 320px);
        height: 100vh;
        height: 100dvh;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        padding: 5rem 1.5rem 2rem;
        z-index: 1001;
        display: flex;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1000;
    }

    /* Pages intérieures */
    .about-hero-section,
    .contact-hero-section {
        height: 50vh;
        min-height: 280px;
    }

    .hero-title-overlay {
        font-size: clamp(2.5rem, 12vw, 4rem);
        -webkit-text-stroke: 1.5px var(--text);
        text-stroke: 1.5px var(--text);
    }

    .about-section-item {
        flex-direction: column;
        gap: 1rem;
        padding: 0 16px;
    }

    .section-number {
        min-width: auto;
        font-size: 3rem;
    }

    .section-content h2 {
        font-size: 1.5rem;
    }

    .intro-text p,
    .section-content p {
        font-size: 1rem;
    }

    .contact-info-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button,
    .cta-button-outline {
        width: 100%;
        text-align: center;
    }

    .section-title-large {
        font-size: 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 16px;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .portfolio-header {
        padding: 5rem 16px 3rem;
    }

    .portfolio-main-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        letter-spacing: 0.08em;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-subtitle {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 0.95rem;
    }

    .portfolio-section {
        padding: 3rem 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        padding: 0 16px;
    }

    .portfolio-section-sport .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
        grid-auto-rows: auto;
    }

    .portfolio-section-sport .portfolio-item {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 0;
        aspect-ratio: 1;
    }

    .portfolio-section-sport .portfolio-item.tall,
    .portfolio-section-sport .portfolio-item.wide {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 1;
        min-height: 0;
    }

    .portfolio-item {
        aspect-ratio: 1;
        min-height: 0;
    }

    .portfolio-item.tall {
        grid-row: span 1;
        aspect-ratio: 1;
        min-height: 0;
    }

    .portfolio-item.wide {
        grid-column: span 2;
        aspect-ratio: 2/1;
    }

    .portfolio-item.large {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 2/1;
        min-height: 0;
    }

    .portfolio-categories {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .home-logo {
        letter-spacing: 0.1em;
    }

    .home-nav-section {
        padding-bottom: 2rem;
    }

    .nav-main-links {
        gap: 0.95rem;
    }

    .logo {
        font-size: 0.95rem;
    }

    .portfolio-grid,
    .portfolio-section-sport .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .portfolio-item.wide,
    .portfolio-item.large,
    .portfolio-section-sport .portfolio-item.wide {
        grid-column: span 1 !important;
        aspect-ratio: 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1.25rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
    animation: zoomIn 0.3s ease;
}

.lightbox-reserve-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(10, 147, 201, 0.3);
}

.lightbox-reserve-btn:hover {
    background: #0a8fb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 147, 201, 0.5);
}

.lightbox-reserve-btn:active {
    transform: translateY(0);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
    background: rgba(10, 147, 201, 0.2);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(10, 147, 201, 0.3);
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Optimize scroll performance - already defined above */

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        gap: 1.5rem;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 70vh;
    }

    .lightbox-reserve-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
        padding: 10px;
    }
}

