:root {
    --bg-page: #f4e0c7;
    --bg-alt: #f9f1e7;
    --bg-card: #fff7ed;
    --primary: #0f766e;
    --primary-soft: rgba(15, 118, 110, 0.08);
    --accent: #0f766e;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --border-soft: rgba(148, 163, 184, 0.4);
    --radius-lg: 24px;
    --radius-card: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.15);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.12);
    --transition-fast: 180ms ease;
    --transition-med: 260ms ease;
}

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #fef3e7, var(--bg-page));
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--hero {
    padding-top: 7rem;
}

.section--alt {
    background: var(--bg-alt);
}

.section--small {
    padding: 3.5rem 0 4rem;
}

.section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section__title {
    font-size: clamp(1.8rem, 2.3vw, 2.2rem);
    margin: 0 0 0.6rem;
    letter-spacing: 0.03em;
}

.section__subtitle {
    /* L'ancienne marge 'margin: 0;' sera remplacée par 'margin: 0 auto;' */
    max-width: 640px;
    color: var(--text-muted);

    /* MODIFICATION CLÉ : Centre le bloc horizontalement */
    margin: 0 auto; 
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(244, 224, 199, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
}

.header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text-main);
}

.header__logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.header__name {
    font-weight: 600;
    font-size: 0.97rem;
}

/* Navigation */

.nav {
    display: flex;
}

.nav__list {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 1.3rem;
}

.nav__link {
    position: relative;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--text-muted);
    padding-bottom: 0.2rem;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-med);
}

.nav__link:hover {
    color: var(--text-main);
}

.nav__link--active {
    color: var(--text-main);
}

.nav__link--active::after {
    transform: scaleX(1);
}

/* Burger */

.header__toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.4rem;
}

.header__bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #111827;
    border-radius: 999px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero */

.hero {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero__text {
    max-width: 620px;
}

.hero__eyebrow {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.hero__title {
    font-size: clamp(2.2rem, 3.3vw, 3rem);
    margin: 0 0 1rem;
}

.accent {
    color: var(--accent);
}

.hero__subtitle {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.hero__infos {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero__infos li + li {
    margin-top: 0.25rem;
}

/* Hero card */

.hero__card {
    background: rgba(255, 247, 237, 0.97);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
    max-width: 320px;
    justify-self: end;
}

.hero__avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: #e5e7eb;
}

.hero__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__name {
    text-align: center;
    margin: 0;
    font-size: 1.2rem;
}

.hero__role {
    text-align: center;
    margin: 0.2rem 0 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.hero__contact-item {
    text-decoration: none;
    color: var(--text-main);
    padding: 0.45rem 0.6rem;
    border-radius: 0.7rem;
    background: var(--primary-soft);
}

.hero__contact-item--linked {
    display: inline-flex;
    justify-content: center;
    background: #0e7490;
    color: #ffffff;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn--primary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.4);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(15, 118, 110, 0.45);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text-main);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Cards and grids */

.grid {
    display: grid;
    gap: 1.8rem;
}

.grid--two {
    grid-template-columns: minmax(0, 1fr);
}

.grid--four-on-desktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card__image-wrapper {
    height: 180px;
    overflow: hidden;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card__body {
    padding: 1.4rem 1.4rem 1.6rem;
}

.card__title {
    margin: 0 0 0.25rem;
    font-size: 1.08rem;
}

.card__meta {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card__text {
    margin: 0 0 0.6rem;
    font-size: 0.94rem;
}

.card__subtitle {
    margin: 0.7rem 0 0.15rem;
    font-size: 0.93rem;
    font-weight: 600;
}

.card__tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--accent);
    margin: 0 0 0.85rem;
}

.card__link {
    margin-top: 0.9rem;
    display: inline-flex;
    font-size: 0.9rem;
    color: #0e7490;
    text-decoration: none;
}

.card__link:hover {
    text-decoration: underline;
}

/* Experience */

.experience {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    padding: 1.7rem 1.7rem 1.5rem;
}

.experience__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.1rem;
}

.experience__title {
    margin: 0;
    font-size: 1.15rem;
}

.experience__meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.experience__content {
    display: grid;
    gap: 1rem;
}

.experience__block h4 {
    margin: 0 0 0.15rem;
    font-size: 0.97rem;
}

.experience__block p {
    margin: 0;
    font-size: 0.94rem;
}

/* Skills */

.skills {
    display: grid;
    gap: 2rem;
}

.skills__group {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-card);
}

.skills__title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
}

.skills__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills__item + .skills__item {
    margin-top: 1rem;
}

.skills__item h4 {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
}

.skills__item p {
    margin: 0.1rem 0 0.35rem;
    font-size: 0.94rem;
}

.skills__link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #0e7490;
}

.skills__link:hover {
    text-decoration: underline;
}

.skills__chips {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills__chips li {
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.86rem;
    background: var(--primary-soft);
}

.skills__text {
    margin: 0;
    font-size: 0.94rem;
    color: var(--text-muted);
}

/* Hobbies */

.hobbies .card--hobby {
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.hobbies .card--hobby:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    border-color: rgba(15, 118, 110, 0.4);
}

/* CV */

.cv {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.9rem 1.6rem;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.cv__text {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
}

.cv__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

/* Contact */

.contact {
    text-align: center;
}

.contact__info {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.contact__link {
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
}

/* Footer */

.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.3rem 0 1.4rem;
    background: rgba(244, 224, 199, 0.95);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer__note {
    font-size: 0.8rem;
}

/* Scroll reveal */

.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* Responsive global */

@media (min-width: 720px) {
    .hero {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 3rem;
    }

    .grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skills {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

@media (min-width: 980px) {
    .grid--four-on-desktop {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header__toggle {
        display: inline-block;
    }

    .nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: rgba(244, 224, 199, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 220ms ease;
        box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
    }

    .nav--open {
        max-height: 320px;
    }

    .nav__list {
        flex-direction: column;
        padding: 0.7rem 1.5rem 1rem;
        gap: 0.6rem;
    }

    .hero__card {
        justify-self: stretch;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header__name {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__card {
        padding: 1.4rem 1.2rem;
    }
}

/* ============================
   SECTION PROJETS — VERSION PROPRE
   ============================ */

/* Conteneur global centré */
/* Conteneur global Projets (comme les autres sections) */
/* SECTION PROJETS — VERSION PROPRE */

/* Conteneur global Projets */
/* Dans la section PROJETS — VERSION PROPRE */
/* Conteneur global Projets (comme les autres sections) */
.projects {
    position: relative;
    width: 100%;
}

.projects__viewport {
    position: relative;
    
    overflow-x: hidden;
    overflow-y: visible;

    width: 100vw;                 /* largeur EXACTE de l’écran */
    margin-left: 50%;
    transform: translateX(-50%);  /* centre le viewport sur l’écran */
}

/* Fondu sur les côtés */
.projects__viewport::before,
.projects__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    pointer-events: none;
    z-index: 10;
}

.projects__viewport::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--bg-page) 0,
        transparent 100%
    );
}

.projects__viewport::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--bg-page) 0,
        transparent 100%
    );
}



/* Track horizontal */
.projects__track {
    display: flex;
    gap: 2rem;
    transition: transform 300ms ease;
    
    /* NOUVEAU : Ajout de l'espace vertical pour l'ombre */
    padding-top: 30px; 
    padding-bottom: 10vh;
}


/* Slides */
.projects__card {
    flex: 0 0 78%;
    max-width: 78%;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    
    /* MODIFICATIONS CLÉS POUR LA TAILLE ET L'OPACITÉ */
    opacity: 1; /* Toutes les cartes sont visibles à 100% */
    transform: scale(1); /* Toutes les cartes sont à taille réelle (pas de réduction) */
    filter: grayscale(0); /* Toutes les cartes en couleur */
    transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

/* Carte active au centre */
.projects__card.is-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0);
}

/* Carte suivante un peu plus visible */
.projects__card.is-next {
    opacity: 0.6;
    transform: scale(0.96);
    filter: grayscale(0.4);
}

/* Image en haut (optionnelle) */
.projects__card .card__image-wrapper {
    height: 260px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.projects__card .card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects__card .card__body {
    padding: 1.6rem 1.8rem 2rem;
}


/* Flèches */
.projects__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 20;               /* au-dessus du fondu (qui est à 10) */
}

/* flèche gauche : entre le bord et la carte */
.projects__arrow--prev {
    left: -6.5rem;
}

/* flèche droite : symétrique */
.projects__arrow--next {
    right: -6.5rem;
}


.projects__arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.projects__arrow[disabled] {
    opacity: 0.3;
    pointer-events: none;
}

.section--slider-dark {
    background: var(--bg-page);   /* même beige que le body */
}
.projects__card,
.experience-slider__card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); /* ombre individuelle */
}


.projects__card.is-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0);
}

.projects__card.is-next,
.projects__card.is-prev {
    opacity: 0.6;
    transform: scale(0.96);
    filter: grayscale(0.4);
}

/* Responsive */
@media (max-width: 880px) {
    .projects__card {
        flex: 0 0 90%;
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .projects__card {
        flex: 0 0 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .projects__card .card__image-wrapper {
        height: 190px;
    }
}


