/* --- PARAMÈTRES GLOBAUX --- */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche le scroll latéral */
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
}

/* =========================================
   SECTION 1 : HERO (Rose)
   ========================================= */

.hero-section {
    min-height: 100vh;
    background-color: #ffcae1; /* Le rose */
    color: #3e2723; /* Le marron foncé */
}

.titre-principal {
    font-size: 8vw; /* Texte géant dynamique */
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin: 0;
}

.description-droite p {
    font-size: 1.5vw;
}

.lien-projets {
    color: #3e2723;
    font-size: 1.5vw;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* La Photo (object-fit: cover pour le cadrage automatique) */
.image-moi {
    width: 100%;
    height: auto;
    object-fit: cover; /* Remplit l'espace en se recadrant (edge-to-edge) */
    aspect-ratio: 16/9; /* Aspect dynamique */
    display: block;
}

/* =========================================
   SECTION 2 : CE QUE JE FAIS (Split Screen)
   ========================================= */

.bloc-creme {
    background-color: #fcf9f2; /* Blanc cassé / Crème */
}

.bloc-sombre {
    background-color: #3e2723; /* Le marron foncé */
    color: #ffffff;
}

.video-portfolio {
    width: 100%;
    height: 50vh; /* La vidéo prend la moitié de l'écran en hauteur */
    object-fit: cover;
    display: block;
}

.titre-section {
    font-size: 6vw;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    color: #3e2723;
    margin: 0;
}

.titre-rajouter {
    font-size: 3vw;
    font-weight: 900;
    text-transform: uppercase;
}

.texte-description {
    font-size: 1.5vw;
    color: #3e2723;
    max-width: 85%;
}

/* =========================================
   SECTION 3 : COMPÉTENCES (Vert Pistache)
   ========================================= */

.section-verte {
    background-color: #c4d647; /* Le vert pistache */
}

/* --- TAILLES AJUSTÉES POUR COLLER À L'IMAGE --- */
.titre-competences {
    font-size: 5.5vw; /* Taille réduite pour que le mot tienne dans sa colonne */
    font-weight: 900;
    line-height: 0.9; /* Lignes bien resserrées */
    letter-spacing: -1px; /* Rapproche un tout petit peu les lettres */
    text-transform: uppercase;
    color: #3e2723;
    margin: 0;
}

.carte-competence {
    background-color: #fcf9f2; /* Crème */
    border-radius: 0; /* Bords nets */
}

.titre-carte {
    color: #3e2723;
    font-size: 1.1rem; /* Plus petit pour correspondre à la maquette */
    font-weight: 900;
    margin-bottom: 2px;
}

.texte-carte {
    color: #3e2723;
    font-size: 0.85rem; /* Petit et fin comme sur ton image */
}

/* ICÔNES 100% CSS (Inchangées) */
.icone-css { width: 120px; height: 120px; flex-shrink: 0; position: relative; }
.icone-1 { background-color: #3e2723; display: flex; flex-direction: column; justify-content: space-between; }
.icone-1 .demi-cercle-haut { width: 120px; height: 60px; background-color: #ffcae1; border-radius: 60px 60px 0 0; }
.icone-1 .demi-cercle-bas { width: 120px; height: 60px; background-color: #ffcae1; border-radius: 0 0 60px 60px; }
.icone-2 { background-color: #ffcae1; display: flex; justify-content: space-evenly; align-items: center; }
.icone-2 .ovale { width: 30px; height: 100px; background-color: #3e2723; border-radius: 50px; }
.icone-3 { background-color: #ffcae1; }
.icone-3 .carre-coin { width: 60px; height: 60px; background-color: #3e2723; position: absolute; top: 0; right: 0; }

/* =========================================
   RESPONSIVE (Téléphone)
   ========================================= */
@media (max-width: 768px) {
    /* Section 1 */
    .titre-principal { font-size: 15vw; }
    .description-droite p, .lien-projets { font-size: 4.5vw; }
    .image-moi { aspect-ratio: 4/3; }

    /* Section 2 */
    .titre-section { font-size: 12vw; }
    .titre-rajouter { font-size: 8vw; }
    .texte-description { font-size: 4.5vw; max-width: 100%; }
    .video-portfolio { height: 35vh; }

    /* Section 3 */
    .titre-competences { 
        font-size: 16vw; /* Encore plus gros sur mobile */
        letter-spacing: -1px;
    }
    .titre-carte { font-size: 1rem; }
    .texte-carte { font-size: 0.8rem; }
    
    /* Le reste de ton responsive (icônes, etc.) reste ici... */
    .icone-css { width: 80px; height: 80px; }
    .icone-1 .demi-cercle-haut, .icone-1 .demi-cercle-bas { width: 80px; height: 40px; }
    .icone-2 .ovale { width: 20px; height: 70px; }
    .icone-3 .carre-coin { width: 40px; height: 40px; }
}

/* =========================================
   SECTION 4 : PROJETS (Fond Rose)
   ========================================= */

.section-projets {
    background-color: #ffcae1; /* On reprend le rose du début */
}

.titre-projets {
    font-size: 6vw; /* Taille responsive */
    font-weight: 900;
    text-transform: uppercase;
    color: #3e2723;
    letter-spacing: -1px;
    margin: 0;
}

.carte-projet {
    background-color: #fcf9f2; /* Le crème habituel */
    /* Pas de bordure arrondie pour la carte pour garder ton style */
}

.image-carte {
    width: 100%;
    height: 220px; /* Fixe la hauteur des images pour qu'elles soient toutes alignées */
    object-fit: cover; /* Recadre l'image proprement sans l'écraser */
    display: block;
}

.titre-carte-projet {
    color: #3e2723;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.texte-carte-projet {
    color: #3e2723;
    font-size: 1rem;
    line-height: 1.4;
}

/* --- LE BOUTON CLICQUABLE --- */
.btn-projet {
    background-color: #3e2723;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px; /* Bords très arrondis comme sur ta maquette */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-projet:hover {
    background-color: #5d4037; /* S'éclaircit légèrement au survol */
    color: #ffffff;
    transform: scale(1.05); /* Grossit légèrement au survol */
}

/* =========================================
   RESPONSIVE (Téléphone) - Ajout pour Section 4
   ========================================= */
@media (max-width: 768px) {
    .titre-projets {
        font-size: 12vw; /* Plus grand sur mobile */
    }
    .image-carte {
        height: 200px;
    }
}

/* =========================================
   PAGE SECONDAIRE : DESSINS & GRAFFS
   ========================================= */

.page-secondaire {
    background-color: #ffcae1; /* Le fond rose de ton image */
    min-height: 100vh;
}

/* Le bouton pour revenir en arrière */
.btn-retour {
    color: #3e2723;
    font-weight: 900;
    text-decoration: none;
    font-size: 1.1rem;
    border: 2px solid #3e2723;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-retour:hover {
    background-color: #3e2723;
    color: #ffcae1;
}

/* Le gros titre marron */
.titre-page-secondaire {
    font-size: 8vw;
    font-weight: 900;
    color: #3e2723;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin: 0;
}

/* Les carrés crème avec bords arrondis (Tes futures images) */
.boite-image {
    background-color: #fcf9f2; /* La couleur crème */
    width: 100%;
    aspect-ratio: 1 / 1; /* Force la boîte à être un carré parfait */
    border-radius: 20px; /* Les bords bien arrondis comme sur ton dessin */
    
    /* Plus tard, pour mettre ton image dedans, tu auras juste à ajouter l'image en CSS ou HTML */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

/* Petit effet quand on passe la souris sur un carré */
.boite-image:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
}

/* Responsive pour téléphone */
@media (max-width: 768px) {
    .titre-page-secondaire {
        font-size: 14vw; /* Plus gros sur mobile */
    }
    .boite-image {
        border-radius: 12px; /* Bords un peu moins ronds sur petit écran */
    }
}

/* =========================================
   PAGE SECONDAIRE : RÉSEAUX
   ========================================= */

/* Les grandes cartes verticales crème */
.boite-reseau {
    background-color: #fcf9f2; /* La couleur crème */
    border-radius: 20px;
    height: 100%;
    min-height: 450px; /* Donne cet effet "carte de tarot" haute */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boite-reseau:hover {
    transform: translateY(-10px); /* La carte monte un peu au survol */
    box-shadow: 0px 15px 30px rgba(0,0,0,0.1);
}

/* Textes à l'intérieur des cartes */
.titre-reseau {
    color: #3e2723;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.texte-reseau {
    color: #3e2723;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Le bouton des réseaux */
.btn-reseau {
    background-color: #3e2723;
    color: #ffcae1; /* Texte en rose pour rappeler le fond */
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px; /* Bouton très arrondi */
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%; /* Le bouton prend toute la largeur de la carte */
    display: block;
}

.btn-reseau:hover {
    background-color: #5d4037;
    color: #ffcae1;
    transform: scale(1.02);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .boite-reseau {
        min-height: auto; /* Laisse la boîte s'adapter au texte sur mobile */
    }
}

/* =========================================
   PAGE SECONDAIRE : VIDÉOS & PARTS
   ========================================= */

/* Le texte explicatif sur les côtés */
.texte-cote-video {
    color: #3e2723;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Le conteneur de la vidéo (Le rectangle crème de ton dessin) */
.lecteur-container {
    background-color: #fcf9f2; /* Fond crème */
    width: 100%;
    max-width: 350px; /* Limite la largeur pour garder l'aspect vertical */
    aspect-ratio: 3 / 4; /* Format vertical (portrait) */
    border-radius: 20px;
    overflow: hidden; /* Empêche la vidéo de dépasser les bords arrondis */
    box-shadow: 0px 15px 30px rgba(0,0,0,0.1);
}

/* La vidéo elle-même */
.boite-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le rectangle sans écraser l'image */
    transition: opacity 0.3s ease; /* Crée l'animation de fondu au changement */
}

/* Les boutons flèches */
.btn-fleche {
    background: none;
    border: none;
    color: #3e2723;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
    line-height: 0.8;
}

/* Animation quand on passe la souris sur les flèches */
.btn-fleche:hover {
    transform: scale(1.3); /* La flèche grossit */
    color: #5d4037;
}

/* Responsive pour mobile (on réduit un peu le texte) */
@media (max-width: 768px) {
    .texte-cote-video {
        font-size: 1rem;
    }
}

/* =========================================
   MODALE POUR LES DESSINS (IMAGE EN GRAND)
   ========================================= */

/* On met un curseur "pointeur" sur tes dessins pour montrer qu'on peut cliquer */
.boite-image {
    cursor: pointer;
}

/* Le fond sombre qui recouvre l'écran */
.modale-dessin {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste fixe même si on scroll */
    z-index: 9999; /* Toujours par-dessus le reste du site */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.9); /* Marron foncé transparent (90%) */
    justify-content: center;
    align-items: center;
}

/* L'image en grand au centre */
.modale-dessin img {
    max-width: 90vw; /* 90% de la largeur de l'écran max (pas de plein écran total) */
    max-height: 90vh; /* 90% de la hauteur de l'écran max */
    border-radius: 10px;
    box-shadow: 0px 15px 40px rgba(0,0,0,0.5);
    object-fit: contain; /* Affiche le dessin en entier sans jamais le couper */
}

/* La petite croix pour fermer */
.btn-fermer {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffcae1; /* Rose clair */
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-fermer:hover {
    transform: scale(1.2);
    color: #ffffff;
}