/* VARIABLES DE COULEURS */
:root {
    --color-fuchsia: #ea00ff;
    --color-vert: #a3f10d;
    --color-orange: #ff9000;
    --color-bleu: #00d2d3;
    --color-corail: #ff6b5b;
    --bg-primary: #fcfcfb;
    --bg-card: #f4f4f1;
    --text-main: #222222;
    --text-muted: #555555;
}

/* SCROLL FLUIDE */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* RESET TOTAL */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
}

/* TYPOGRAPHIES */
h1, h2, h3, h4, .nom-prenom, .nav-menu a, .site-footer h2, .footer-tag, .contact-label, .btn {
    font-family: 'Syne', sans-serif;
}

/* ---------------------------------------------------- */
/* EN-TÊTE FIXE */
/* ---------------------------------------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    background-color: rgba(252, 252, 251, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.nom-prenom {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* NAVIGATION */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

.nav-menu a:hover {
    opacity: 0.6;
}

.nav-picto {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* BURGER */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
}

/* ---------------------------------------------------- */
/* BANNIÈRE INTRO */
/* ---------------------------------------------------- */
.intro-section {
    padding: 40px 6% 20px 6%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.6;
}

.intro-banner .hero-tagline {
    font-size: 1.4rem !important;
    line-height: 1.6;
}

/* ---------------------------------------------------- */
/* MAIN CONTENT & CARTS SÉPARÉES */
/* ---------------------------------------------------- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding: 30px 6%;
    max-width: 1500px;
    margin: 0 auto;
}

.content-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-picto-title {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.section-title-wrap h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ACCROCHE TEXTE ANIMATION (BORDURE VERTE) */
.animation-intro-box {
    background-color: #ffffff;
    padding: 20px 25px;
    border-left: 5px solid var(--color-vert) !important;
}

.intro-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    font-weight: 500;
}

/* SPLIT CARDS */
.split-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background-color: var(--bg-card);
    overflow: hidden;
    align-items: stretch;
}

.split-card.reverse {
    grid-template-columns: 1fr 380px;
    margin: 0 60px;
}

.split-card.reverse .split-card-img {
    grid-column: 2;
}

.split-card.reverse .split-card-body {
    grid-column: 1;
    grid-row: 1;
}

/* CADRE NOIR EN POINTILLES */
.split-card.cadre-pointille {
    border: 1px dashed #000000 !important;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.25) !important;
    overflow: visible !important;
}

/* FONDS SPÉCIFIQUES DES CARTES */
.card-fuchsia-bg {
    background-color: #f8e6fe !important;
}

.card-orange-bg {
    background-color: #fde7cb !important;
}

/* IMAGE */
.split-card-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.split-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENU */
.split-card-body {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-intro {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-main);
}
/* ---------------------------------------------------- */
/* SOUS-SECTIONS PORTFOLIO (ANIMATION) */
/* ---------------------------------------------------- */
.portfolio-thematic-wrap {
    display: flex;
    flex-direction: column;

    margin-top: 10px;
    margin-left: 10%;
}

.sub-portfolio-main-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.gallery-subgroup {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-text-header {
    background-color: #fff;
    padding: 15px 20px 15px 0;
}

.sub-portfolio-title {
    display: flex;
    align-items: center;
    gap: 0.55em;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.sub-portfolio-title::before {
    content: "";
    flex: none;
    width: 0.75em;
    height: 0.75em;
    border-radius: 50% !important;
    background-color: var(--color-vert);
}

.gallery-comment {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

/* ---------------------------------------------------- */
/* PUCES LUDIQUES ET BONBONS (RONDES & GROSSES) */
/* ---------------------------------------------------- */
.mini-puces {
    list-style: none;
    margin-bottom: 20px;
}

.mini-puces li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
}

.mini-puces li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
}

/* COULEURS DES PUCES PAR SECTION */
.puces-fuchsia li::before {
    background-color: var(--color-fuchsia);
}

.puces-verte li::before {
    background-color: var(--color-vert);
}

.puces-orange li::before {
    background-color: var(--color-orange);
}

.mini-puces strong {
    color: var(--text-main);
}

/* ---------------------------------------------------- */
/* BADGES DES PROJETS */
/* ---------------------------------------------------- */
.project-badge {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 4px 10px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.badge-vert {
    background-color: var(--color-vert);
    color: #222222;
}

.badge-fuchsia {
    background-color: var(--color-fuchsia);
    color: #ffffff;
}

.card-action {
    margin-top: 10px;
}

.card-action-centered {
    text-align: center;
    margin-top: 25px;
}

/* ---------------------------------------------------- */
/* BOUTONS ORIGAMI PAR COULEUR */
/* ---------------------------------------------------- */
.btn-origami {
    position: relative;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn-origami:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-fuchsia {
    background-color: var(--color-fuchsia);
    color: #ffffff;
}

.btn-vert {
    background-color: var(--color-vert);
    color: #222222;
}

.btn-orange {
    background-color: var(--color-orange);
    color: #ffffff;
}

/* ---------------------------------------------------- */
/* GALERIE MOSAÏQUE */
/* ---------------------------------------------------- */
.block-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.gallery-card {
    height: 260px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.gallery-card.card-wide {
    grid-column: span 1;
}

.gallery-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-card:hover {
    z-index: 2;
}

.gallery-card:hover img {
    transform: scale(1.2);
}

.split-card-img img {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.split-card-img:hover img {
    transform: scale(1.08);
}


/* ---------------------------------------------------- */
/* FOOTER / CONTACT */
/* ---------------------------------------------------- */

.site-footer {
    width: 100%;
    background-color: #00D2D3;
    padding: 60px 6% 30px;
    position: relative;
    margin-top: 40px;
    box-sizing: border-box;
}

.footer-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #FFFFFF;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #FFFFFF;
    display: inline-block;
    margin-bottom: 8px;
}

.site-footer h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.site-footer p {
    color: #FFFFFF;
    font-size: 1.20rem;
    margin-bottom: 30px;
}

.footer-contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.contact-card:hover {
    background-color: #F2FFFF;
    transform: translateY(-2px);
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00AEB0;
}

.contact-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: #00AEB0;
}

.copyright {
    font-size: 0.85rem;
    color: #FFFFFF;
    margin-top: 30px;
}

.site-footer p.copyright {
    font-size: 0.65rem;
    margin-top: 30px;
    margin-bottom: 0;
}



/* ---------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------- */
@media (max-width: 900px) {
    .split-card, .split-card.reverse {
        grid-template-columns: 1fr;
    }

    .split-card.reverse .split-card-img {
        grid-column: 1;
    }

    .split-card-img {
        height: 250px;
    }

    .block-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .split-card.reverse {
        width: 90%;
        margin: 0 auto;
        grid-template-columns: 1fr;
    }

    .split-card.reverse .split-card-img,
    .split-card.reverse .split-card-body {
        grid-column: 1;
    }

    .split-card.reverse .split-card-img {
        grid-row: 1;
        min-height: 220px;
    }

    .split-card.reverse .split-card-body {
        grid-row: 2;
        padding: 25px 20px;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(252, 252, 251, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.35s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-contact-cards {
        flex-direction: column;
    }

    /* PORTFOLIO THÉMATIQUE ANIMATION : centré, 95% de la largeur d'écran */
    .portfolio-thematic-wrap {
        width: 95vw;
        margin-left: calc(50% - 47.5vw);
        margin-right: 0;
        align-items: center;
    }

    .sub-portfolio-main-title {
        width: 100%;
        text-align: center;
    }

    .gallery-subgroup {
        width: 100%;
    }

    .gallery-text-header {
        padding: 15px 10px;
        text-align: center;
    }

    .sub-portfolio-title {
        justify-content: center;
    }

    .gallery-comment {
        text-align: center;
    }

    .portfolio-thematic-wrap .block-gallery-grid {
        width: 100%;
        margin: 0 auto;
    }

    .portfolio-thematic-wrap .gallery-card {
        width: 100%;
    }
}

/* ---------------------------------------------------- */
/* APPARITIONS DOUCES AU DÉFILEMENT                      */
/* ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js .intro-banner h1,
    .js .hero-tagline,
    .js .section-title-wrap,
    .js .split-card,
    .js .animation-intro-box,
    .js .gallery-text-header,
    .js .gallery-card,
    .js .footer-content {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .js .hero-tagline { transition-delay: 0.12s; }
    .js .animation-intro-box,
    .js .gallery-text-header { transform: translateX(-22px); }
    .js .gallery-card { transition-delay: calc(var(--k, 0) * 110ms); }

    .js .reveal-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
