/* ========================================================================== */
/* ===================== 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); 
}

/* ========================================================================== */
/* ========================== PAGE PORTFOLIO CODING ======================== */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* ACCUEIL CODING                                                             */
/* -------------------------------------------------------------------------- */

.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;
}

/* -------------------------------------------------------------------------- */
/* PROJETS                                                            */
/* -------------------------------------------------------------------------- */

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

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

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

