/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #000000;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #333333;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-primary);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   BARRE NOIRE EN HAUT - RESPONSIVE
   ============================================ */
.top-bar {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.portfolio-title {
    font-family: var(--font-secondary);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: lowercase;
    font-weight: 400;
    opacity: 0.8;
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.portfolio-title:hover {
    opacity: 1;
}

/* ============================================
   SECTION ACCUEIL - RESPONSIVE
   ============================================ */
#main {
    position: relative;
    min-height: 100vh;
    padding-top: 70px !important;
    background-image: url("fond-acceuil.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 1;
}

.main-header {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.header-content {
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    z-index: 999;
    text-align: center;
}

/* Titre principal */
.site-name {
    font-family: 'Baskervville', serif !important;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 0.95;
    display: block;
    width: 100%;
    margin: 0 auto !important;
    text-align: center;
    color: #ffffff;
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 15px;
}

.subtitle {
    font-family: 'Baskervville', serif;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #ffffff;
    font-weight: 400;
    line-height: 1.5;
    max-width: fit-content;
    margin: 0 auto;
    text-align: center;
}

/* ============================================
   SECTION PROJETS - PLEINE LARGEUR
   ============================================ */
#projects {
    padding-top: 40px;
    min-height: auto;
    position: relative;
    z-index: 10;
    background-color: var(--secondary-color);
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.projects-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 20;
}

.projects-container h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 700;
    padding: 0 15px;
    text-align: center;
}

.project-category {
    margin-bottom: 0.1rem;
}

/* Grille des projets - MOBILE FIRST */
.projects-preview {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
    padding: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Cartes de projet */
.project-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.3s ease;
    width: 100%;
    z-index: 30;
}

.project-card:hover {
    transform: translateY(-3px);
}

/* Images des projets - MOBILE FIRST */
.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
    flex-shrink: 0;
    display: block;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Titres des projets */
.project-title {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 20px 15px 10px 15px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)) !important;
    backdrop-filter: blur(1px);
}

.project-title h4 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: var(--secondary-color) !important;
    text-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
}

/* ============================================
   SECTION À PROPOS
   ============================================ */
.about-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.about-container h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--gray-dark);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.detail-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-item p {
    font-family: var(--font-secondary);
    color: var(--gray-dark);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Barre CV pleine largeur */
.cv-fullbar-link {
    display: block;
    background-color: var(--primary-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 24px 0;
    text-align: center;
    margin-top: 60px;
    text-decoration: none;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    transition: background-color 0.4s ease;
}

.cv-fullbar-link:hover {
    background-color: #1a1a1a;
    color: white;
}

/* ============================================
   MENU CIRCULAIRE - RESPONSIVE
   ============================================ */
.target-menu {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.menu-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1005;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: var(--primary-color);
}

.target-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.target-menu.active .target-circles {
    pointer-events: all;
}

.target-circle {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-secondary);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.target-menu.active .target-circle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Cercles - MOBILE */
.circle-1 {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    color: var(--primary-color);
    z-index: 1004;
    transition-delay: 0.1s;
}

.circle-2 {
    width: 105px;
    height: 105px;
    background: #f8f8f8;
    color: var(--primary-color);
    z-index: 1003;
    transition-delay: 0.2s;
}

.circle-3 {
    width: 140px;
    height: 140px;
    background: #888888;
    color: var(--secondary-color);
    z-index: 1002;
    transition-delay: 0.3s;
}

.circle-4 {
    width: 175px;
    height: 175px;
    background: var(--primary-color);
    color: var(--secondary-color);
    z-index: 1001;
    transition-delay: 0.4s;
}

.target-circle:hover {
    transform: translate(-50%, -50%) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* SVG Texte circulaire */
.circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.circular-text text {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.circle-2 .vertical-text,
.circle-3 .vertical-text,
.circle-4 .vertical-text {
    display: none;
}

.target-menu.active .menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* Sections principales */
#main-content {
    position: relative;
    padding-bottom: 100px;
}

.main-section {
    min-height: 100vh;
    padding: 40px 0;
    width: 100%;
}

/* ============================================
   RESPONSIVE - TABLETTES (600px+)
   ============================================ */
@media (min-width: 600px) {
    .top-bar {
        height: 55px;
        padding: 0 20px;
    }
    
    .portfolio-title {
        font-size: 12px;
    }
    
    #main {
        padding-top: 80px !important;
        min-height: 110vh;
    }
    
    .site-name {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
    
    .subtitle {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }
    
    .projects-preview {
        flex-direction: row;
        gap: 1.6rem;
        margin-bottom: 1.6rem;
    }
    
    .project-card img {
        height: 450px;
    }
    
    .project-title h4 {
        font-size: 1.6rem !important;
    }
    
    .projects-container h2 {
        font-size: 2rem;
    }
    
    .about-details {
        grid-template-columns: 1fr 1fr;
    }
    
    .menu-toggle {
        width: 70px;
        height: 70px;
    }
    
    .circle-1 { width: 80px; height: 80px; }
    .circle-2 { width: 120px; height: 120px; }
    .circle-3 { width: 160px; height: 160px; }
    .circle-4 { width: 200px; height: 200px; }
}

/* ============================================
   RESPONSIVE - TABLETTES (768px+)
   ============================================ */
@media (min-width: 768px) {
    .top-bar {
        height: 60px;
        padding: 0 25px;
    }
    
    .portfolio-title {
        font-size: 13px;
    }
    
    #main {
        padding-top: 90px !important;
        min-height: 115vh;
    }
    
    .site-name {
        font-size: clamp(3rem, 13vw, 6rem);
    }
    
    .project-card img {
        height: 550px;
    }
    
    .project-title {
        padding: 25px 20px 12px 20px !important;
    }
    
    .project-title h4 {
        font-size: 1.9rem !important;
    }
    
    .projects-container h2 {
        font-size: 2.3rem;
    }
    
    .about-container h2 {
        font-size: 2.2rem;
    }
    
    .about-content p {
        font-size: 1.05rem;
    }
    
    .cv-fullbar-link {
        padding: 28px 0;
        font-size: 1.05rem;
        margin-top: 80px;
    }
    
    .menu-toggle {
        width: 75px;
        height: 75px;
        font-size: 12px;
    }
    
    .circle-1 { width: 90px; height: 90px; }
    .circle-2 { width: 135px; height: 135px; }
    .circle-3 { width: 180px; height: 180px; }
    .circle-4 { width: 225px; height: 225px; }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .top-bar {
        height: 70px;
        padding: 0 30px;
    }
    
    .portfolio-title {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    #main {
        padding-top: 100px !important;
        min-height: 120vh;
    }
    
    .site-name {
        font-size: clamp(4rem, 14vw, 7.5rem);
    }
    
    .subtitle {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    
    .main-header {
        padding: 0 30px;
    }
    
    .project-card img {
        height: 700px;
    }
    
    .project-title {
        padding: 30px 25px 15px 25px !important;
    }
    
    .project-title h4 {
        font-size: 2.2rem !important;
    }
    
    .projects-container h2 {
        font-size: 3rem;
        padding: 0 30px;
    }
    
    .about-container {
        max-width: 900px;
        padding: 0 30px;
    }
    
    .about-container h2 {
        font-size: 2.8rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
    
    .cv-fullbar-link {
        padding: 32px 0;
        font-size: 1.1rem;
        margin-top: 100px;
    }
    
    .target-menu {
        bottom: 25px;
    }
    
    .menu-toggle {
        width: 85px;
        height: 85px;
        font-size: 13px;
    }
    
    .circle-1 { width: 105px; height: 105px; }
    .circle-2 { width: 157px; height: 157px; }
    .circle-3 { width: 210px; height: 210px; }
    .circle-4 { width: 262px; height: 262px; }
}

/* ============================================
   RESPONSIVE - GRANDS ÉCRANS (1440px+)
   ============================================ */
@media (min-width: 1440px) {
    .top-bar {
        height: 75px;
        padding: 0 40px;
    }
    
    .portfolio-title {
        font-size: 14px;
    }
    
    #main {
        padding-top: 110px !important;
        min-height: 120vh;
    }
    
    .site-name {
        font-size: clamp(5rem, 15vw, 8.5rem);
    }
    
    .subtitle {
        font-size: clamp(1.2rem, 4.5vw, 1.7rem);
    }
    
    .project-card img {
        height: 800px;
    }
    
    .project-title {
        padding: 35px 30px 18px 30px !important;
    }
    
    .project-title h4 {
        font-size: 2.5rem !important;
        letter-spacing: -0.5px !important;
    }
    
    .projects-container h2 {
        font-size: 3.5rem;
    }
    
    .about-container {
        max-width: 1100px;
    }
    
    .about-container h2 {
        font-size: 3.2rem;
    }
    
    .about-content p {
        font-size: 1.15rem;
    }
    
    .target-menu {
        bottom: 30px;
    }
    
    .menu-toggle {
        width: 95px;
        height: 95px;
        font-size: 14px;
        letter-spacing: 1.3px;
    }
    
    .circle-1 { width: 115px; height: 115px; }
    .circle-2 { width: 172px; height: 172px; }
    .circle-3 { width: 230px; height: 230px; }
    .circle-4 { width: 287px; height: 287px; }
}

/* ============================================
   TRÈS GRANDS ÉCRANS (1920px+)
   ============================================ */
@media (min-width: 1920px) {
    .top-bar {
        height: 80px;
    }
    
    #main {
        min-height: 120vh;
    }
    
    .site-name {
        font-size: clamp(6rem, 16vw, 10rem);
    }
    
    .project-card img {
        height: 900px;
    }
    
    .project-title h4 {
        font-size: 3rem !important;
    }
    
    .projects-container h2 {
        font-size: 4.2rem;
    }
    
    .about-container h2 {
        font-size: 3.8rem;
    }
    
    .menu-toggle {
        width: 100px;
        height: 100px;
        font-size: 16px;
    }
    
    .target-menu {
        bottom: 40px;
    }
    
    .circle-1 { width: 120px; height: 120px; }
    .circle-2 { width: 180px; height: 180px; }
    .circle-3 { width: 240px; height: 240px; }
    .circle-4 { width: 300px; height: 300px; }
}

/* Autres styles nécessaires */
.section {
    display: none;
    min-height: 100vh;
    padding: 80px 20px 40px;
}

.section.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}

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