/* --- 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: PROJETS */
/* ================================================ */
.projects-section {
    min-height: 100vh;
    padding: 80px 10%;
    position: relative;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
    flex-wrap: wrap;
    gap: 40px;
}

.projects-title h2 {
    font-size: clamp(60px, 8vw, 100px);
    line-height: 0.9;
    font-weight: 400;
}

.projects-description {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: right;
    font-weight: 300;
}

/* Container pour les cartes de projets */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    justify-items: center;
}

/* Cartes de projets animées */
.card {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    transition-delay: 0.5s;
}

.card:hover {
    width: 600px;
    transition-delay: 0.5s;
}

.card .circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .circle::before {
    content: "";
    position: absolute;
    top: 30;
    left: 2;
    right: 2;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #191919;
    border: 8px solid var(--clr);
    filter: drop-shadow(0 0 10px var(--clr)) drop-shadow(0 0 60px var(--clr));
    transition: 0.5s, background 0.5s;
    transition-delay: 0.75s, 1s;
}

.card:hover .circle::before {
    transition-delay: 0.5s;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--clr);
}

.card .circle .logo {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    transition: 0.5s;
    transition-delay: 0.5s;
}

.card:hover .circle .logo {
    transform: scale(0);
    transition-delay: 0s;
}

.card .product_img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(315deg);
    height: 300px;
    transition: 0.5s ease-in-out;
}

.card:hover .product_img {
    transition-delay: 0.75s;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%) scale(1);
    height: 330px;
}

.card .content {
    position: absolute;
    width: 50%;
    left: 20%;
    padding: 20px 20px 20px 20px;
    opacity: 0;
    transition: 0.5s;
    visibility: hidden;
}

.card:hover .content {
    transition-delay: 0.75s;
    opacity: 1;
    visibility: visible;
    left: 20px;
}

.card .content h2 {
    color: #fff;
    text-transform: uppercase;
    font-size: 2.5em;
    line-height: 1em;
}

.card .content p {
    color: #fff;
}

.card .content a {
    position: relative;
    color: #111;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

/* ================================================ */
/* SECTION 3: 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; }

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

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

@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; 
    }
    
    .projects-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .projects-description { 
        text-align: center; 
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 60px 5%;
    }
    
    .container {
        grid-template-columns: 1fr !important;
        gap: 40px;
        padding: 0 10px;
    }
    
    .card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .card:hover {
        max-width: 350px;
    }
    
    .card .content h2 {
        font-size: 1.3em;
    }
    
    .card .content p {
        font-size: 0.85em;
    }
    
    .card .content a {
        padding: 8px 18px;
        font-size: 0.9em;
    }
    
    .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) {
    .projects-section {
        padding: 40px 3%;
    }
    
    .container {
        grid-template-columns: 1fr !important;
        gap: 35px;
        padding: 0 5px;
    }
    
    .card {
        max-width: 300px;
        min-height: 180px;
        margin: 0 auto;
    }
    
    .card:hover {
        max-width: 300px;
    }
    
    .card .content {
        padding: 15px;
    }
    
    .card .content h2 {
        font-size: 1.1em;
        line-height: 1.2;
    }
    
    .card .content p {
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    .card .content a {
        padding: 7px 15px;
        font-size: 0.85em;
    }
    
    .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;
    }
}