/* ========================================================================== */
/* ===================== ELEMENTS COMMUNS AUX DEUX PAGES ================== */
/* ========================================================================== */

/* Prépare l'écran rose hors de la fenêtre avant chaque navigation interne. */
.page-transition {
    /* Place le panneau au-dessus de toute l'interface. */
    position: fixed;
    /* Étend le panneau sur toute la surface visible. */
    inset: 0;
    /* Empêche le panneau caché de bloquer les interactions. */
    pointer-events: none;
    /* Donne au panneau une priorité supérieure au curseur personnalisé. */
    z-index: 10000;
    /* Colore l'écran avec la teinte rose principale du portfolio. */
    background: var(--blush);
    /* Commence entièrement sous la fenêtre. */
    transform: translateY(100%);
    /* Anime la montée avec une sensation de rideau. */
    transition: transform 0.76s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Fait monter l'écran rose lorsque le changement de page commence. */
body.page-transition-active .page-transition {
    /* Recouvre toute la page avant que le navigateur charge la suivante. */
    transform: translateY(0);
}

/* Centre le pseudo dans l'écran rose sans créer de décalage de mise en page. */
.page-transition-name {
    /* Centre le texte horizontalement et verticalement. */
    position: absolute;
    inset: 50% auto auto 50%;
    /* Utilise la typographie expressive déjà présente dans le site. */
    font-family: var(--Rossa);
    /* Dimensionne le pseudo comme un titre de transition. */
    font-size: clamp(3rem, 8vw, 7rem);
    /* Renforce la lisibilité sur le fond rose clair. */
    color: var(--text);
    /* Ajoute un espacement élégant entre les lettres. */
    letter-spacing: 0.08em;
    /* Centre précisément le bloc de texte. */
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Place le texte de destination juste sous le pseudo. */
.page-transition-destination {
    /* Positionne la destination au centre du panneau. */
    position: absolute;
    /* Aligne le texte sous le pseudo principal. */
    top: calc(50% + 58px);
    left: 50%;
    /* Utilise une typographie discrète pour créer une hiérarchie. */
    font-family: var(--Jost);
    /* Garde le texte lisible sur tous les écrans. */
    font-size: clamp(0.7rem, 1.4vw, 1rem);
    /* Espace les lettres comme les autres éléments de navigation. */
    letter-spacing: 0.18em;
    /* Met la phrase en majuscules pour renforcer son aspect signalétique. */
    text-transform: uppercase;
    /* Utilise la couleur douce du texte du portfolio. */
    color: var(--text-soft);
    /* Centre exactement la ligne sous le pseudo. */
    transform: translateX(-50%);
    opacity: 1;
}

/* Respecte les préférences d’accessibilité liées à la réduction du mouvement. */
@media (prefers-reduced-motion: reduce) {
    /* Rend la montée du panneau quasiment instantanée pour limiter le mouvement. */
    .page-transition {
        /* Réduit la durée de l'écran rose sans modifier sa logique. */
        transition-duration: 0.01ms;
    }

}


/* -------------------------------------------------------------------------- */
/* FONTS                                                                      */
/* -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Roxie-Rossa' ;
    src: url(assets/fonts/Roxie-Rossa.otf) format('truetype');
}

@font-face {
    font-family: 'Dingbats' ;
    src: url(assets/fonts/Karoshi-Dingbats.otf) format('truetype');
}

@font-face {
    font-family: 'Karoshi' ;
    src: url(assets/fonts/Karoshi.otf) format('truetype');
}


:root {
    --back: #fdfbfd;
    --main: #F9F6F3;
    --blush: #F5E8EE;
    --accent: #E8C5D4;
    --accent-deep: #D4A0B8;
    --text: #3A3035;
    --text-soft: #7A6870;

    --Rossa: 'Roxie-Rossa', sans-serif;
    --Karoshi: 'Karoshi', sans-serif;
    --Dingbats: 'Dingbats', sans-serif;
    --Jost: 'Jost', sans-serif;

}

html, body, * {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--back);
    color: var(--text);
    font-family: var(--Jost);
    font-weight: 300;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------- */
/* CURSEUR COMMUN                                                             */
/* -------------------------------------------------------------------------- */
.cursor {
    width: 10px; height: 10px;
    background: var(--accent-deep);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: multiply;
}

.cursor-ring {
    width: 36px; height: 36px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

  body.hover-active .cursor {
    width: 18px; height: 18px; background: var(--accent-deep); 
}

  body.hover-active .cursor-ring {
    border-color: var(--accent-deep);
}

@media screen and (pointer: coarse) {
    .cursor, .cursor-ring {
        display: none;
    }
}
 
/* -------------------------------------------------------------------------- */
/* NAVIGATION COMMUNE                                                         */
/* -------------------------------------------------------------------------- */
nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 5vw;
    height: 72px;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(232, 197, 212, 0.25);
    transition: box-shadow 0.4s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 25px;
    color: var(--text);
    letter-spacing: 5px;
    text-decoration: none;
}
.nav-logo span { 
    color: var(--accent-deep); 
}

.portfolio-switch {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--Jost);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.portfolio-switch a,
.portfolio-switch-current {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-switch a:hover {
    color: var(--accent-deep);
}

.portfolio-switch-current {
    color: var(--accent-deep);
    font-weight: 400;
}

.portfolio-switch-current::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    background: var(--accent-deep);
}

.portfolio-switch-divider {
    color: var(--accent);
}

.nav-links {
    display: flex; 
    gap: 40px;
    list-style: none;
  }

.nav-links a {
    font-family: var(--Jost);
    font-weight: 200;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px;
    background: var(--accent-deep);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-links a:hover { 
    color: var(--accent-deep); 
}

.nav-links a:hover::after { 
    transform: scaleX(1); 
}

/* ========================================================================== */
/* ============================ PORTFOLIO DRAWING ============================ */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* ACCUEIL ART                                                                */
/* -------------------------------------------------------------------------- */


.home{
    height: 100vh; 
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* DECORATEURS LATERAUX DE L'ACCUEIL                                         */
/* -------------------------------------------------------------------------- */

.home-side-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    pointer-events: none;
    z-index: 1;
    margin-top: 0px;
}

.home-side-decoration.left {
    left: 5vw; 
}

.home-side-decoration.right {
    right: 5vw;
}

.home-side-text {
    font-family: var(--Karoshi);
    font-size: 35px;
    font-weight: 400;
    line-height: 1.02;
    color: var(--accent-deep);
    letter-spacing: 2px;
    margin-top: 0px;
    margin-bottom: 15px;
    padding: 0px 10px;
}

.home-side-decoration .line {
    width: 2px;
    height: 180px; 
    background: var(--accent-deep);
    opacity: 0.5;
}

.home-side-decoration .line:first-child {
    background: linear-gradient(to top, var(--accent-deep), transparent);
}

.home-side-decoration .line:last-child {
    background: linear-gradient(to bottom, var(--accent-deep), transparent);
}

@media screen and (max-width: 700px) {
    .home-side-decoration {
        display: none;
    }
}

/* Toutes les classes suivantes appartiennent uniquement a la page coding. */
/* La page dessin pourra utiliser ses propres classes sans conflit.        */

.home-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--Jost);
    font-weight: 200;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 10px;
}

.home-site span {
    font-family: var(--Karoshi);
    font-size: 35px;
    color: var(--accent-deep);
}

.home-title {
    font-family: var(--Rossa);
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 400;
    line-height: 1.02;
    color: var(--text);
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 10px;
}

.home-title em {
    font-style: italic;
    color: var(--accent-deep);
}

.home-info {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-soft);
    margin-top: 19px;
    margin-bottom: 56px;
}

/* -------------------------------------------------------------------------- */
/* BOUTONS DE L'ACCUEIL                                                       */
/* -------------------------------------------------------------------------- */

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.home-main-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gallery {
    padding: 12px 30px;
    font-family: var(--Jost);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--back);
    background: var(--accent-deep);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-contact {
    padding: 12px 30px;
    font-family: var(--Jost);
    text-decoration: none;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--back);
    border: 2px solid var(--accent-deep);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease, transform 0.2s ease;
}

.btn-project {
    padding: 12px 30px;
    font-family: var(--Jost);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--back);
    background: var(--accent-deep);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-gallery:hover, .btn-project:hover, .btn-contact:hover {
    transform: scale(1.07);
}

/* -------------------------------------------------------------------------- */
/* ABOUT ME                                                                   */
/* -------------------------------------------------------------------------- */

.about {
    min-height: 100vh;
    padding: 120px 5vw 80px;
}

/* -------------------------------------------------------------------------- */
/* GALERIE DESSIN                                                             */
/* -------------------------------------------------------------------------- */

.gallery {
    min-height: 100vh;
    padding: 120px 5vw 80px;
    height: auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--Jost);
    font-weight: 200;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 10px;
}

.gallery-header .section-label span {
    font-family: var(--Karoshi);
    font-size: 35px;
}

.gallery-title {
    font-family: var(--Rossa);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    color: var(--text);
    letter-spacing: 2px;
    margin: 0 0 8px;
}

.gallery-title em {
    font-style: italic;
    color: var(--accent-deep);
}

/* ─── FILTER ─── */

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 9px 24px;
    font-family: var(--Jost);
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-soft);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 50px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    color: var(--back);
    border-color: var(--accent-deep);
    background: var(--accent-deep);
}

.filter-btn.active {
    background: var(--accent-deep);
    color: var(--back);
    transform: scale(1.05);
}

/* ─── GALLERY GRID ─── */

.gallery-grid {
    display: block;
    column-count: 3; 
    column-gap: 20px; 
    width: 100%;
}

/* Tablettes */
@media screen and (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

/* Mobiles */
@media screen and (max-width: 550px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    display: inline-block; 
    width: 100%;
    margin-bottom: 20px; 
    break-inside: avoid;
    overflow: hidden;
    position: relative;
    background: var(--back); 
    border: 2px solid rgba(232, 197, 212, 0.9); 
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(58, 48, 53, 0.05); 
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:not(.hidden) {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-more {
    /* Affiche le bouton comme un élément indépendant sous la galerie. */
    display: block;
    /* Centre le bouton et ajoute un espace avec les photos. */
    margin: 35px auto 0;
    /* Définit la taille intérieure du bouton. */
    padding: 12px 30px;
    /* Utilise la police déjà prévue pour les boutons du site. */
    font-family: var(--Jost);
    /* Rend le texte du bouton léger. */
    font-weight: 300;
    /* Définit la taille du texte. */
    font-size: 12px;
    /* Espace les lettres pour correspondre aux filtres. */
    letter-spacing: 3px;
    /* Met le texte en majuscules. */
    text-transform: uppercase;
    /* Utilise la couleur principale du bouton. */
    color: var(--accent-deep);
    /* Laisse le fond transparent au repos. */
    background: transparent;
    /* Ajoute le contour du bouton. */
    border: 1px solid var(--accent-deep);
    /* Arrondit le bouton. */
    border-radius: 50px;
    /* Indique que le bouton peut être cliqué. */
    cursor: pointer;
    /* Anime les changements au survol. */
    transition: 0.3s ease, transform 0.2s ease;
}

.gallery-more:hover {
    /* Rend le texte clair au survol. */
    color: var(--back);
    /* Remplit le bouton avec la couleur principale au survol. */
    background: var(--accent-deep);
    /* Agrandit légèrement le bouton au survol. */
    transform: scale(1.05);
}

.gallery-more.hidden {
    /* Masque le bouton lorsqu'il n'est pas nécessaire. */
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ─── OVERLAY ─── */

.gallery-item-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: rgba(232, 197, 212, 0.9);
    padding: 20px 0px 20px 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover .gallery-item-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-info h3 {
    font-family: var(--Rossa);
    font-size: 18px;
    font-weight: 400;
    color: var(--back);
    margin: 0 0 4px;
    letter-spacing: 1px;
}

.gallery-item-info .item-category {
    font-family: var(--Jost);
    font-weight: 200;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--main);
}

/* ─── EMPTY STATE FINAL ─── */

.gallery-empty {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.gallery-empty.visible {
    display: flex;
}

.gallery-empty p {
    justify-content: center;
    text-align: center; 
    align-items: center;
    display: flex;
    gap: 20px;
    font-family: var(--Jost);
    font-style: italic;
    font-size: clamp(14px, 2vw, 22px);
    color: var(--text-soft);
    white-space: nowrap; 
}

.empty-content {
    display: flex;
    align-items: center; 
    gap: 10px;
}

.gallery-empty .line-gallery {
    height: 2px;
    width: clamp(50px, 10vw, 150px);
    background: var(--accent-deep);
    opacity: 0.4;
    border-radius: 50px;
    flex-shrink: 0;
}

.gallery-empty .line-gallery:first-child {
    background: linear-gradient(to left, var(--accent-deep), transparent);
}

.gallery-empty .line-gallery:last-child {
    background: linear-gradient(to right, var(--accent-deep), transparent);
}

.gallery-empty .symbol-gallery {
    font-family: var(--Karoshi);
    font-size: 35px;
    color: var(--accent-deep);
    vertical-align: middle;
}

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

.contact {
    height: 100vh;
    padding-top: 75px;
}