:root {
    --red: #ff0000;
    --dark-gray: #545454;
    --light-gray: #a6a6a6;
    --black: #000000;
    --white: #ffffff;
    --off-white: #f5f5f5;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* Pop-up scolaire */
.scolaire-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.scolaire-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    color: var(--black);
}

.close-scolaire-btn {
    margin-top: 10px;
    padding: 5px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close-scolaire-btn:hover {
    background-color: #0056b3;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: padding 0.3s;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: var(--white);
    text-decoration: none;
}

.nav-logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: 2px;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
    color: var(--white) !important;
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 4rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 1) 100%), url('https://images.unsplash.com/photo-1598387180429-b3f7d6e3efd7?w=1600&q=80') center/cover no-repeat;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    width: fit-content;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 9vw, 9rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: var(--white);
    position: relative;
    margin-bottom: 1.5rem;
}

.hero-title .accent {
    color: var(--red);
}

.hero-sub {
    font-size: 1rem;
    color: var(--light-gray);
    font-weight: 300;
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 0.9rem 2.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s, opacity 0.15s;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--light-gray);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--white);
}

.btn-secondary svg {
    transition: transform 0.2s;
}

.btn-secondary:hover svg {
    transform: translateX(3px);
}

.hero-scroll {
    position: absolute;
    right: 4rem;
    bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--light-gray);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* SECTIONS COMMUNES */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--white);
}

/* STUDIOS */
#studios {
    background: var(--black);
    padding: 7rem 4rem;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
}

.studio-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-gray);
}

.studio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(30%) brightness(0.7);
}

.studio-card:hover img {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(0.8);
}

.studio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.studio-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.4rem;
}

.studio-card-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.studio-card-desc {
    font-size: 0.78rem;
    color: var(--light-gray);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.studio-card:hover .studio-card-desc {
    max-height: 60px;
}

.studio-card-cta {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
}

.studio-card:hover .studio-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ÉQUIPEMENT */
#equipement {
    background: #0a0a0a;
    padding: 7rem 4rem;
}

.equip-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.equip-visual {
    position: relative;
}

.equip-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 2px;
    filter: brightness(0.85);
}

.equip-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--red);
    color: var(--white);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.2;
}

.equip-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.equip-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.equip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.equip-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--red);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
    font-size: 1rem;
}

.equip-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.equip-item-desc {
    font-size: 0.78rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* TARIFS */
#tarifs {
    background: var(--black);
    padding: 7rem 4rem;
}

.tarifs-intro {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 4rem;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
}

.tarif-card {
    background: #0d0d0d;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 0.3s;
}

.tarif-card:hover {
    background: #141414;
}

.tarif-card.featured {
    background: #111;
    border-top: 2px solid var(--red);
}

.tarif-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 1px;
}

.tarif-type {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.tarif-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1rem;
}

.tarif-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.tarif-from {
    font-size: 0.72rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.price-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    color: var(--white);
    letter-spacing: 0.03em;
}

.price-suffix {
    font-size: 0.78rem;
    color: var(--light-gray);
}

.tarif-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
}

.tarif-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    margin-bottom: 2rem;
}

.tarif-features li {
    font-size: 0.8rem;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    line-height: 1.4;
}

.tarif-features li::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--red);
    flex-shrink: 0;
}

.btn-tarif {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.btn-tarif:hover,
.tarif-card.featured .btn-tarif {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.tarifs-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: var(--light-gray);
}

.tarifs-note a {
    color: var(--red);
    text-decoration: none;
}

/* RÉSERVATION */
#reservation {
    background: #0a0a0a;
    padding: 7rem 4rem;
}

.resa-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: flex-start;
}

.resa-info p {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.resa-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resa-contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--light-gray);
}

.resa-contact-list li strong {
    color: var(--white);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    flex-shrink: 0;
}

/* Stepper */
.resa-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    position: relative;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-line {
    position: absolute;
    left: 17px;
    top: 34px;
    width: 1px;
    height: 30px;
    background: rgba(255, 0, 0, 0.25);
}

.step:last-child .step-line {
    display: none;
}

.step-content {
    padding-top: 0.3rem;
    padding-bottom: 2rem;
}

.step:last-child .step-content {
    padding-bottom: 0;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--light-gray);
    line-height: 1.5;
}

/* Formulaire */
.resa-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 2.5rem;
}

.form-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.form-sub {
    font-size: 0.78rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.studio-type-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.type-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    background: transparent;
    color: var(--light-gray);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn:hover,
.type-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

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

label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-gray);
}

input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

input::placeholder, textarea::placeholder {
    color: rgba(166, 166, 166, 0.5);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--red);
}

select option {
    background: #1a1a1a;
    color: var(--white);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.form-note {
    font-size: 0.72rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.btn-submit {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* FOOTER */
footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 5rem 4rem 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand-name span {
    color: var(--red);
}

.footer-brand-desc {
    font-size: 0.82rem;
    color: var(--light-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 240px;
}

.social-links {
    display: flex;
    gap: 0.7rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
    border-color: var(--red);
    color: var(--red);
}

.footer-col-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.72rem;
    color: rgba(166, 166, 166, 0.5);
}

.footer-bottom a {
    color: rgba(166, 166, 166, 0.5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--light-gray);
}

/* MENTIONS LÉGALES */
#mentions {
    display: none;
    background: var(--black);
    padding: 10rem 4rem 7rem;
    min-height: 100vh;
}

.mentions-content {
    max-width: 760px;
    margin: 0 auto;
}

.mentions-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 2.5rem 0 0.8rem;
}

.mentions-content p,
.mentions-content li {
    font-size: 0.88rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TOAST */
#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-left: 3px solid var(--red);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 2px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    #hero, #studios, #equipement, #tarifs, #reservation, footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

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

    .equip-layout, .resa-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-submit {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 5rem);
    }
}
