.hero {
    padding: 2.25rem 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.hero-grid-single {
    grid-template-columns: 1fr;
    max-width: 980px;
}

.hero-identity {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
}

.hero-alex {
    width: min(10rem, 100%);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero-title {
    display: grid;
    gap: 0;
}

.hero-title h1 {
    max-width: none;
    font-size: clamp(3.8rem, 8vw, 6.4rem);
    color: #ffa135;
    letter-spacing: -0.045em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-copy-block {
    grid-column: 2;
}

.hero-copy {
    margin-top: 1.4rem;
    max-width: 34rem;
    font-size: 1.06rem;
    color: var(--muted);
}

.hero-copy-home {
    margin-top: 1.15rem;
    max-width: 100%;
    color: #f3f0ed;
    font-size: 1.03rem;
    line-height: 1.35;
}

.hero-copy-block .hero-copy-home {
    margin-top: 0.85rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
    grid-column: 2;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.35rem;
    border-radius: 0.95rem;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button-primary {
    background: var(--text);
    color: #050505;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--line);
}

.section {
    padding: 2rem 0 4rem;
}

.home-projects {
    margin-top: 0.25rem;
}

.home-projects .section-divider {
    margin-bottom: 1.15rem;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0 0 1.25rem;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-projects .section-header {
    margin-bottom: 1.05rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: -0.03em;
}

.home-projects .section-header h2 {
    font-size: clamp(2.1rem, 3.8vw, 3.8rem);
}

.section-header p {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--line);
}

.home-projects .project-thumb {
    aspect-ratio: 16 / 8.75;
}

.project-body {
    padding: 0.72rem 0.72rem 0.82rem;
}

.home-projects .project-body {
    padding: 0.62rem 0.62rem 0.7rem;
}

.project-body h3 {
    font-size: 1.35rem;
    margin-top: 0.3rem;
}

.home-projects .project-body h3 {
    font-size: 1.2rem;
}

.project-caption {
    color: var(--muted);
    margin: 0;
}

.home-projects .project-caption {
    font-size: 0.92rem;
}

.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    scroll-snap-align: start;
    display: block;
    background: var(--surface);
    border: 1px solid rgba(23, 20, 17, 0.08);
    box-shadow: var(--shadow);
    border-radius: 0.7rem;
    overflow: hidden;
}

.carousel-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--line);
}

.carousel-body {
    padding: 0.72rem 0.72rem 0.82rem;
}

.carousel-body .label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.carousel-body h3 {
    font-size: 1.2rem;
    margin: 0.3rem 0 0.4rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.carousel-arrow-prev {
    left: -1.2rem;
}

.carousel-arrow-next {
    right: -1.2rem;
}

.carousel-arrow-prev {
    left: -2.5rem; /* Auparavant : -1.2rem */
}

.carousel-arrow-next {
    right: -2.5rem; /* Auparavant : -1.2rem */
}

/* Optionnel : Ajoute un padding au carrousel pour plus d'espace */
.carousel {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-identity {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero-copy-block {
        grid-column: auto;
    }

    .hero-actions {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 2.5rem;
    }

    .hero-title h1 {
        font-size: clamp(3rem, 17vw, 4.7rem);
    }

    .hero-copy-home {
        font-size: 0.98rem;
    }

        .carousel-card {
        flex-basis: 100%;
    }

    .carousel-arrow-prev {
        left: 0;
    }

    .carousel-arrow-next {
        right: 0;
    }

    
}