/* --- RESET & GLOBAL --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #480611; 
    font-family: 'Playfair Display', serif;
    color: white;
    overflow-x: hidden;
}

/* ================================================ */
/* SECTION 1: HERO / ACCUEIL                        */
/* ================================================ */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.container-hero {
    position: relative; 
    text-align: center; 
    width: fit-content; 
    padding: 40px;
}

#portfolio-title {
    font-size: clamp(80px, 15vw, 200px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 10px;
    position: relative; 
    z-index: 1;
    font-family: 'Playfair Display', serif;
}

.underline {
    width: 100%; 
    height: 2px; 
    background-color: #fff; 
    margin-top: 10px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 20px; 
    border-radius: 50px; 
    position: absolute; 
    white-space: nowrap; 
    backdrop-filter: blur(2px);
}

.date { 
    font-style: italic; 
    font-size: 1.2rem; 
    top: -20px; 
    left: 0; 
    transform: translateX(-20%); 
}

.circle-deco {
    width: 40px; 
    height: 40px; 
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%; 
    position: absolute; 
    top: -20px; 
    left: -60px;
}

.author { 
    font-family: 'Great Vibes', cursive; 
    font-size: 1.8rem; 
    bottom: -50px; 
    right: 0; 
    transform: translateX(10%); 
}

/* ================================================ */
/* SECTION 2: PROFIL (QUI SUIS-JE)                  */
/* ================================================ */
.section-profil {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.profil-container {
    width: 90%;
    max-width: 1400px;
    padding: 60px;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 400;
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.text-section {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    min-width: 350px;
    font-family: 'Poppins', sans-serif;
}

.text-section p {
    margin-bottom: 30px;
}

.graphic-section {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.photo-container {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ccc;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon {
    position: absolute;
    width: 50px;
    height: auto;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
    z-index: 20;
}

.ps   { top: 25%;    left: 8%;   transform: rotate(-20deg); width: 70px; }
.pr   { top: 10%;    left: 22%;  transform: rotate(-10deg); width: 70px; }
.ae   { top: 5%;     left: 45%;  transform: rotate(0deg);   width: 70px; }
.id   { top: 10%;    right: 22%; transform: rotate(10deg);  width: 70px; }
.ai   { top: 25%;    right: 8%;  transform: rotate(20deg);  width: 70px; }
.wp   { bottom: 25%; left: 5%;   transform: rotate(0deg);   width: 75px; }
.js   { bottom: 10%; left: 18%;  transform: rotate(-15deg); width: 70px; }
.css  { bottom: 2%;  left: 45%;  transform: rotate(0deg);   width: 60px; }
.html { bottom: 10%; right: 18%; transform: rotate(15deg);  width: 65px; }
.php  { bottom: 25%; right: 5%;  transform: rotate(20deg);  width: 80px; }

/* ================================================ */
/* SECTION 3: MES PROJETS — GRILLE BENTO            */
/* ================================================ */
.section-projets {
    padding: 60px 40px 80px;
}

.projets-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.projets-titre {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 48px 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ---- GRILLE ---- */
/*
  3 colonnes × 4 rangées
  Ligne 1-2 : La téloche (2col×2row) | Affiche ciné | web Inventory
  Ligne 3   : Affiche | L'odyssée | Nutri Way
  Ligne 4   : Campagne (2col) | MercatoViz
*/
.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 220px);
    gap: 12px;
}

/* ---- PLACEMENT EXPLICITE ---- */
.p-teloche       { grid-column: 1 / 3; grid-row: 1 / 3; }
.p-affiche-cine  { grid-column: 3 / 4; grid-row: 1 / 2; }
.p-web-inventory { grid-column: 3 / 4; grid-row: 2 / 3; }
.p-affiche       { grid-column: 1 / 2; grid-row: 3 / 4; }
.p-odyssee       { grid-column: 2 / 3; grid-row: 3 / 4; }
.p-nutri         { grid-column: 3 / 4; grid-row: 3 / 4; }
.p-campagne      { grid-column: 1 / 3; grid-row: 4 / 5; }
.p-mercato       { grid-column: 3 / 4; grid-row: 4 / 5; }

/* ---- CARTE DE BASE ---- */
.projet-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: #1a0408;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
}

.projet-card:hover {
    transform: scale(1.025);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ---- OVERLAY GRADIENT ---- */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.3)  45%,
        transparent         100%
    );
    transition: background 0.3s ease;
}

.projet-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.1)  100%
    );
}

/* ---- CONTENU TEXTE ---- */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 22px;
    color: #ffffff;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.projet-card:hover .card-content {
    transform: translateY(0);
}

/* Badge thème — Liquid Glass */
.card-theme {
    display: inline-block;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;

    /* Verre dépoli */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    /* Bordure lumineuse */
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

/* Reflet interne en haut */
.card-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 45%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    border-radius: 100px 100px 50% 50%;
    pointer-events: none;
}

/* Micro-reflet en bas à droite */
.card-theme::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 8px;
    width: 20%;
    height: 30%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.projet-card:hover .card-theme {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.22) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Titre */
.card-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

/* Grande carte La téloche */
.p-teloche .card-content h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

/* Carte large Campagne */
.p-campagne .card-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

/* Sous-titre */
.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.45;
}

/* ================================================ */
/* SECTIONS SUIVANTES (AVIS, COMPÉTENCES, CV, CONTACT) */
/* ================================================ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 50px;
}

h2.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-top: 60px;
    margin-bottom: 30px;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-avis {
    background-color: #5e0a16;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* SECTION AVIS */
.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.avis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    height: 70px;
}

.quote-icon {
    width: 30px;
    display: block;
}

.quote-icon.open {
    margin-bottom: 10px;
}

.quote-icon.close {
    margin-top: 10px;
    margin-left: auto;
    transform: rotate(180deg);
}

.avis-card p {
    font-size: 0.9rem;
    font-weight: 300;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

/* SECTION COMPÉTENCES */
.competences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.skill-card .subtitle {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 300;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: white;
    color: black;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: capitalize;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.tag:hover {
    background-color: #3e030c;
    color: white;
    transform: scale(1.05);
}

/* SECTION CV */
.cv-card-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background-color: #5e0a16;
}

.cv-text {
    width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cv-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.cv-text p {
    margin-bottom: 30px;
    font-weight: 300;
    font-family: 'Poppins', sans-serif;
}

.btn-download {
    display: inline-block;
    background-color: #3e030c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    width: fit-content;
    font-weight: 500;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: 'Poppins', sans-serif;
}

.btn-download:hover {
    background-color: #7a0e1f;
}

.cv-image-wrapper {
    width: 60%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f5f5f5;
}

.cv-image-wrapper img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* SECTION CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.contact-link {
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.contact-link:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.contact-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}

.contact-card p {
    font-weight: 300;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
}

/* card-section générique (compétences, cv, contact) */
.card-section {
    background-color: #5e0a16;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 30px;
}

/* ================================================ */
/* RESPONSIVE                                       */
/* ================================================ */

@media (max-width: 1024px) {
    .profil-container {
        padding: 40px;
    }
    
    .main-title {
        font-size: 5rem;
    }
    
    .graphic-section {
        width: 500px;
        height: 500px;
    }
    
    .photo-container {
        width: 320px;
        height: 320px;
    }
    
    .text-section {
        font-size: 1rem;
        min-width: 300px;
    }
    
    .content-wrapper {
        gap: 50px;
    }
    
    .ps, .pr, .ae, .id, .ai { width: 60px; }
    .wp   { width: 65px; }
    .js   { width: 60px; }
    .css  { width: 50px; }
    .html { width: 55px; }
    .php  { width: 70px; }
    
    .main-container {
        padding: 20px 30px;
    }
    
    h2.section-title {
        font-size: 3rem;
    }
    
    .avis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cv-text h3 {
        font-size: 1.5rem;
    }
    
    .cv-text {
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .text-section {
        text-align: justify;
        min-width: unset;
        width: 100%;
    }
    
    .graphic-section {
        width: 450px;
        height: 450px;
    }
    
    .photo-container {
        width: 280px;
        height: 280px;
    }

    .main-title {
        text-align: center;
        font-size: 4rem;
    }
    
    .profil-container {
        padding: 30px 20px;
    }
    
    .main-container {
        padding: 20px;
    }
    
    h2.section-title {
        font-size: 2.5rem;
        text-align: center;
        margin-top: 40px;
    }
    
    .avis-grid, .competences-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .cv-card-container {
        flex-direction: column;
    }

    .cv-text, .cv-image-wrapper {
        width: 100%;
    }
    
    .cv-text {
        padding: 30px;
        text-align: center;
    }
    
    .cv-text h3 {
        font-size: 1.5rem;
    }
    
    .btn-download {
        margin: 0 auto;
    }

    .cv-image-wrapper {
        height: 400px;
        padding: 15px;
    }
    
    .card-avis {
        padding: 25px;
    }

    /* Projets : 2 colonnes */
    .projets-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 200px);
    }

    .p-teloche       { grid-column: 1 / 3; grid-row: 1 / 3; }
    .p-affiche-cine  { grid-column: 1 / 2; grid-row: 3 / 4; }
    .p-web-inventory { grid-column: 2 / 3; grid-row: 3 / 4; }
    .p-affiche       { grid-column: 1 / 2; grid-row: 4 / 5; }
    .p-odyssee       { grid-column: 2 / 3; grid-row: 4 / 5; }
    .p-nutri         { grid-column: 1 / 3; grid-row: 5 / 6; }
    .p-campagne      { grid-column: 1 / 3; grid-row: 6 / 7; }
    .p-mercato       { grid-column: 1 / 3; grid-row: 7 / 8; }
}

@media (max-width: 768px) {
    .hero-section { 
        height: 90vh; 
    }
    
    .date { 
        font-size: 1rem; 
        left: 10px; 
        transform: none; 
    }
    
    .author { 
        font-size: 1.4rem; 
        right: 10px; 
        transform: none; 
    }
}

@media (max-width: 600px) {
    .section-projets {
        padding: 40px 20px 60px;
    }

    .projets-titre {
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    /* Projets : 1 colonne */
    .projets-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }

    .p-teloche,
    .p-affiche-cine,
    .p-web-inventory,
    .p-affiche,
    .p-odyssee,
    .p-nutri,
    .p-campagne,
    .p-mercato {
        grid-column: auto;
        grid-row: auto;
    }

    .main-title {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .graphic-section {
        width: 350px;
        height: 350px;
    }
    
    .photo-container {
        width: 220px;
        height: 220px;
    }
    
    .text-section {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .text-section p {
        margin-bottom: 20px;
    }
    
    .ps, .pr, .ae, .id, .ai { width: 45px; }
    .wp   { width: 50px; }
    .js   { width: 45px; }
    .css  { width: 40px; }
    .html { width: 45px; }
    .php  { width: 55px; }
    
    h2.section-title {
        font-size: 2rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .stars {
        height: 50px;
    }
    
    .avis-card p {
        font-size: 0.85rem;
    }
    
    .card-avis {
        padding: 20px;
    }
    
    .cv-text {
        padding: 25px;
    }
    
    .cv-text h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .cv-text p {
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
    
    .cv-image-wrapper {
        height: 350px;
    }
    
    .contact-card {
        padding: 30px;
    }
    
    .contact-icon {
        width: 50px;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 7px 20px;
    }
}

@media (max-width: 400px) {
    .section-projets {
        padding: 30px 15px 50px;
    }

    .projets-grid {
        grid-auto-rows: 200px;
        gap: 8px;
    }

    .main-title {
        font-size: 2.5rem;
    }
    
    .graphic-section {
        width: 280px;
        height: 280px;
    }
    
    .photo-container {
        width: 180px;
        height: 180px;
    }
    
    .text-section {
        font-size: 0.9rem;
    }
    
    .profil-container {
        padding: 20px 15px;
    }
    
    .icon  { width: 35px !important; }
    .wp    { width: 40px !important; }
    .php   { width: 45px !important; }
    
    .main-container {
        padding: 15px;
    }
    
    h2.section-title {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .stars {
        height: 40px;
    }
    
    .quote-icon {
        width: 25px;
    }
    
    .avis-card p {
        font-size: 0.8rem;
        text-align: left;
    }
    
    .card-avis {
        padding: 15px;
        border-radius: 15px;
    }
    
    .cv-text {
        padding: 20px;
    }
    
    .cv-text h3 {
        font-size: 1.1rem;
    }
    
    .cv-text p {
        font-size: 0.85rem;
    }
    
    .btn-download {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .cv-image-wrapper {
        height: 300px;
        padding: 10px;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .contact-icon {
        width: 45px;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .skill-card .subtitle {
        font-size: 0.85rem;
    }
}