/* 1. Réglages de base */
:root {
    --bg-color: #2A2323;
    --text-color: #FFFFF7;
    --font-heading: 'Emilio Test', serif;
    --font-body: 'Satoshi', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 2. Menu du site */
.site-header {
    padding: 24px 80px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    mix-blend-mode: difference;
    color: #FFFFF7;
}

.nav-container {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 200;
    font-size: 24px;
    letter-spacing: -0.72px;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #FFFFF7;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* ne souligne pas l'élément actif dans le menu */
/* .nav-link.active::after,
.nav-link:not(.active):hover::after {
    transform: scaleX(1);
} */

/* 3. Section Accueil (Hero) */
.hero-container {
    background-color: #2A2323;
    padding: 64px 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
}

/* Texte "Portfolio" en fond */
.text-portfolio {
    width: 100%;
    text-align: right;
    font-family: 'Emilio Test',
        serif;
    font-weight: 200;
    font-style: italic;
    font-size: 200px;
    line-height: 100%;
    letter-spacing: -6px;
    color: #FFFFF7;
}

/* Groupe Titre et Rôle */
.title-group {
    display: flex;
    gap: 56px;
    align-items: flex-start;
    width: 100%;
}

/* Mon Nom */
.text-name {
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
    font-size: 240px;
    line-height: 0.85;
    letter-spacing: -7.2px;
    text-transform: uppercase;
    color: #FFFFF7;
    white-space: nowrap;
}

.text-name p {
    margin-bottom: 0;
}

/* Mon Rôle */
.text-role {
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    color: #FFFFF7;
    height: 408px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 174px;
}


/* Séparations lignes */
.separator-line {
    width: 100%;
    height: 1px;
    background-color: #FFFFF7;
}


/* 4. Section "Mes Travaux" */
.works-container {
    padding: 64px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background-color: #2A2323;
}

/* En-tête de la section travaux */
.works-header {
    display: flex;
    gap: 24px;
    align-items: baseline;
    position: relative;
    width: 100%;
}

/* Gros titre "Works" */
.text-works-title {
    font-family: 'Emilio Test', 'Playfair Display', serif;
    font-size: 144px;
    font-style: italic;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -4.32px;
    color: #FFFFF7;
    white-space: nowrap;
}

/* Texte de description */
.works-description-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 730px;
}

/* Style du paragraphe */
.text-works-description {
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: #FFFFF7;
}

/* Défilement horizontal (Galerie) */
.gallery-container {
    display: flex;
    gap: 16px;
    padding: 28px 0;
    margin-right: -80px;
    padding-right: 80px;
    overflow-x: auto;
    width: calc(100% + 80px);
    scrollbar-width: auto;
    will-change: scroll-position;
}

.gallery-image {
    width: 560px;
    height: 440px;
    flex-shrink: 0;
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* 5. Section "À Propos" */
.about-container {
    padding: 64px 80px;
    background-color: #2A2323;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.text-about-title {
    font-family: 'Emilio Test', 'Playfair Display', serif;
    font-size: 144px;
    font-style: italic;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -4.32px;
    color: #FFFFF7;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.about-content {
    width: 100%;
    max-width: 1280px;
    text-align: center;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: #FFFFF7;
}

.about-content p {
    margin-bottom: 24px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Lien "Start a conversation" */
.contact-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top: 32px;
}

.contact-line {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background-color: #d9d9d9;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-footer:hover .contact-line {
    transform: scaleX(1);
}

.text-contact {
    padding: 40px 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: #FFFFF7;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    line-height: 0.85;
    letter-spacing: -1.6px;
}

.text-start {
    font-family: 'Snell Roundhand', 'Great Vibes', cursive;
    font-style: italic;
    font-size: 64px;
    font-weight: 700;
}

.text-conversation {
    font-size: 40px;
    font-weight: 700;
}


/* 6. Footer (Réseaux sociaux) */
.site-footer {
    padding: 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: #2A2323;
}

.footer-separator {
    width: 100%;
    height: 1px;
    background-color: #FFFFF7;
}

.footer-links {
    display: flex;
    gap: 10px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    color: #FFFFF7;
    align-items: center;
}

.footer-link {
    text-decoration: none;
    cursor: pointer;
}


/* 7. Page Contact */
.contact-page-container {
    padding: 96px 80px;
    background-color: #2A2323;
    display: flex;
    justify-content: space-between;
    gap: 64px;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
}

/* Partie gauche (Titres) */
.contact-title-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: auto;
    flex-shrink: 1;
}

.text-contact-title {
    font-family: 'Emilio Test', 'Playfair Display', serif;
    font-size: 144px;
    font-style: italic;
    font-weight: 200;
    line-height: normal;
    letter-spacing: -4.32px;
    color: #FFFFF7;
    margin: 0;
    width: auto;
    align-self: flex-start;
}

.text-contact-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: #FFFFF7;
    text-align: left;
    width: auto;
    align-self: flex-start;
    margin-left: 0;
    padding-left: 20px;
}

/* Partie droite (Formulaire) */
.contact-form-wrapper {
    padding-top: 64px;
    width: 785px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 64px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.half-width {
    width: calc(50% - 32px);
    width: 360px;
}

.full-width {
    width: 100%;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #FFFFF7;
    color: #FFFFF7;
    font-family: 'Satoshi', sans-serif;
    font-size: 24px;
    padding-bottom: 0px;
    outline: none;
    width: 100%;
    resize: none;
    border-radius: 0;
}

.form-group textarea {
    height: 200px;
    padding-top: 0;
}

.btn-send {
    background: none;
    border: none;
    font-family: 'Satoshi', sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    color: #FFFFF7;
    cursor: pointer;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
}

.btn-line {
    width: 100%;
    height: 1px;
    background-color: #FFFFF7;
    margin-top: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-send:hover .btn-line {
    transform: scaleX(1);
}



/* 8. Page Catégorie (Générique) */
/* 8. Utilitaires de Thèmes (Variables PHP) */

/* Thème Web (Rouge) */
.category-line-bg {
    background-color: #DB6459 !important;
}

.category-text-color {
    color: #DB6459 !important;
}

.category-footer {
    background-color: #342324 !important;
}

/* Thème Visual (Clair) */
.visual-footer {
    background-color: #FFFFF7 !important;
}

.visual-line-bg {
    background-color: #2A2323 !important;
}

.visual-text-color {
    color: #2A2323 !important;
}

.visual-text-color a {
    color: #2A2323 !important;
}

/* Thème Motion (Sombre) */
.motion-footer {
    background-color: #1C1A18 !important;
}

.motion-line-bg {
    background-color: #d9d9d9 !important;
}

.motion-text-color {
    color: #FFFFF7 !important;
}

.motion-text-color a {
    color: #FFFFF7 !important;
}


/* 9. Page Détail Projet */
/* Image principale en haut */
.project-detail-hero {
    width: calc(100% - 32px);
    margin: 16px auto 0;
    height: 820px;
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contenu du projet (titre + texte) */
.project-detail-content {
    background-color: #342324;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 120px;
    width: 100%;
    padding: 48px 80px 64px;
    box-sizing: border-box;
}

.project-detail-title {
    font-family: 'Emilio Test', 'Playfair Display', serif;
    font-size: 144px;
    font-style: italic;
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -4.32px;
    color: #DB6459;
    margin: -40px 0 0 0;
    flex-shrink: 0;
    width: 587px;
}

.project-detail-text {
    width: 573px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    color: #DB6459;
    flex-shrink: 0;
}

.project-detail-text p {
    margin-bottom: 0;
}

/* Thèmes couleurs par catégorie */
.project-detail-content.theme-visual {
    background-color: #FFFFF7;
}

.project-detail-title.theme-visual,
.project-detail-text.theme-visual {
    color: #2A2323;
}

.project-detail-content.theme-motion {
    background-color: #1C1A18;
}

.project-detail-title.theme-motion,
.project-detail-text.theme-motion {
    color: #FFFFF7;
}

.project-detail-content.theme-web {
    background-color: #342324;
}

.project-detail-title.theme-web,
.project-detail-text.theme-web {
    color: #DB6459;
}


/* 10. Page Portfolio (Grille) */
.portfolio-page-container {
    padding: 64px 80px;
    background-color: #2A2323;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.portfolio-line {
    flex-grow: 1;
    height: 1px;
    background-color: #FFFFF7;
}

.portfolio-title {
    font-family: 'Emilio Test', 'Playfair Display', serif;
    font-size: 144px;
    font-style: italic;
    font-weight: 200;
    line-height: normal;
    letter-spacing: -4.32px;
    color: #FFFFF7;
    margin: 0;
}

/* Filtres de la grille */
.portfolio-filters {
    display: flex;
    gap: 160px;
    justify-content: center;
    width: 100%;
    padding-bottom: 64px;
}

.portfolio-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: max-content;
}

.portfolio-filter-item {
    font-family: 'Emilio Test', 'Playfair Display', serif;
    font-size: 48px;
    font-style: italic;
    font-weight: 200;
    line-height: normal;
    letter-spacing: -1.44px;
    color: #FFFFF7;
    text-decoration: none;
    position: relative;
    display: block;
}

.portfolio-filter-line {
    width: 100%;
    height: 1px;
    background-color: #D9D9D9;
    display: block;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-filter-group:hover .portfolio-filter-line,
.portfolio-filter-item.active+.portfolio-filter-line {
    transform: scaleX(1);
}

/* Grille des projets */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
    max-width: 1280px;
}

.portfolio-grid-item {
    width: 100%;
    height: 480px;
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    position: relative;
    overflow: hidden;
}

.portfolio-grid-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-grid-item::after {
    content: "Voir le projet";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFF7;
    font-family: 'Emilio Test', serif;
    font-size: 48px;
    font-style: italic;
    font-weight: 200;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-grid-item:hover::before {
    opacity: 1;
}

.portfolio-grid-item:hover::after {
    opacity: 1;
}