/* ============================================
   PORTFOLIO PERSONNEL - STYLES CSS
   Alitoh Martin ALABIDJARE
   ============================================ */

/* Variables CSS */
:root {
    --couleur-principale: #00BCD4;
    --couleur-sombre: #1a1a1a;
    --couleur-blanc: #ffffff;
    --couleur-gris-clair: #f5f5f5;
    --couleur-gris-moyen: #e0e0e0;
    --couleur-gris-fonce: #333333;
    --couleur-texte: #333333;
    --couleur-texte-leger: #666666;
    --couleur-erreur: #ef4444;
    --transition: all 0.3s ease;
    --ombre: 0 4px 6px rgba(0, 0, 0, 0.1);
    --ombre-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   STYLES GÉNÉRAUX
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--couleur-blanc);
    color: var(--couleur-texte);
    line-height: 1.6;
}

.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   EN-TÊTE ET NAVIGATION
   ============================================ */

.entete {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--couleur-blanc);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.barre-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.conteneur-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--couleur-principale);
    object-fit: cover;
}

.nom-site {
    color: var(--couleur-sombre);
}

.prenom-site {
    color: var(--couleur-principale);
}

/* Menu Desktop */
.menu-desktop {
    display: flex;
    gap: 30px;
}

.lien-menu {
    text-decoration: none;
    color: var(--couleur-texte-leger);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.lien-menu:hover,
.lien-menu.actif {
    color: var(--couleur-principale);
}

/* Menu Mobile */
.bouton-menu-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--couleur-texte);
    cursor: pointer;
}

.menu-mobile {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: var(--couleur-blanc);
    border-top: 1px solid var(--couleur-gris-moyen);
}

.lien-menu-mobile {
    text-decoration: none;
    color: var(--couleur-texte-leger);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.lien-menu-mobile:hover {
    color: var(--couleur-principale);
}

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */

.section {
    padding: 80px 20px;
}

.section-accueil {
    background: linear-gradient(to bottom right, #f9f9f9, var(--couleur-blanc));
    margin-top: 70px;
}

.section-apropos {
    background-color: var(--couleur-blanc);
}

.section-projets {
    background-color: #f5f5f5;
}

.section-competences {
    background-color: var(--couleur-blanc);
}

.section-contact {
    background-color: var(--couleur-sombre);
    color: var(--couleur-blanc);
}

/* ============================================
   TITRES ET TEXTES
   ============================================ */

.titre-principal {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--couleur-sombre);
    text-align: center;
}

.Bienvenue {
        font-family: "Arial", sans-serif;
        font-size: 40px;
        color: #6F4E37;
        text-align: center; /* Justification adaptée */
        padding: 20px 40px;
        border-radius: 10px;
        position: relative;
        animation: glow 3s infinite alternate;
    }
    /* Animation de "jeu de lumière" style Noël */
    @keyframes glow {
        0%   { text-shadow: 0 0 10px red, 0 0 20px red; }
        25%  { text-shadow: 0 0 10px green, 0 0 20px green; }
        50%  { text-shadow: 0 0 10px gold, 0 0 20px gold; }
        75%  { text-shadow: 0 0 10px blue, 0 0 20px blue; }
        90% { text-shadow: 0 0 10px purple, 0 0 20px purple; }
    }

.titre-section {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--couleur-sombre);
}

.titre-contact {
    color: var(--couleur-blanc);
}

.accent {
    color: var(--couleur-principale);
}

.description-accueil {
    font-size: 16px;
    color: var(--couleur-texte-leger);
    margin-bottom: 30px;
    line-height: 1.8;
}

.texte-apropos {
    font-size: 16px;
    color: var(--couleur-texte-leger);
    margin-bottom: 20px;
    line-height: 1.8;
}

.sous-titre-contact {
    text-align: center;
    color: #999;
    margin-bottom: 40px;
    font-size: 16px;
}

/* ============================================
   BOUTONS
   ============================================ */

.bouton-principal,
.bouton-voir,
.bouton-envoyer {
    background-color: var(--couleur-principale);
    color: var(--couleur-blanc);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.bouton-principal {
    padding: 15px 40px;
    font-size: 16px;
}

.bouton-principal:hover,
.bouton-voir:hover,
.bouton-envoyer:hover {
    background-color: #0097a7;
    box-shadow: var(--ombre-hover);
    transform: translateY(-2px);
}

.bouton-principal:active,
.bouton-voir:active,
.bouton-envoyer:active {
    transform: scale(0.98);
}

.bouton-envoyer:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* ============================================
   GRILLES ET LAYOUTS
   ============================================ */

.grille-accueil {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grille-apropos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

.grille-projets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grille-competences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grille-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* ============================================
   SECTION ACCUEIL
   ============================================ */

.illustration-accueil {
    display: flex;
    justify-content: center;
}

.boite-illustration {
    width: 550px;
    height: 500px;
    background: 
        url("../img/ac1.png") center no-repeat,
        linear-gradient(135deg, #b3e5fc 0%, #80deea 100%);
    background-size: 100% auto; /* ← Adaptation à la largeur */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Pour garder le texte en bas */
    padding-bottom: 0,2px; /* espace pour le texte */
}

.icone-illustration {
    display: none; /* Image en background */
}

.boite-illustration p {
    text-align: center;
    color: var(--couleur-texte);
    font-weight: 500;
}

/* ============================================
   SECTION À PROPOS
   ============================================ */

.photo-profil-conteneur {
    display: flex;
    justify-content: center;
    position: relative;
}

.photo-profil-conteneur::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097a7 100%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
}

.photo-profil {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid var(--couleur-principale);
    object-fit: cover;
    box-shadow: var(--ombre-hover);
}

.section {
    margin-top: -6px;
}


/* ============================================
   SECTION PROJETS
   ============================================ */

.carte-projet {
    background-color: var(--couleur-blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ombre);
    transition: var(--transition);
}

.carte-projet:hover {
    box-shadow: var(--ombre-hover);
    transform: scale(1.05);
}

.image-projet {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--couleur-gris-moyen);
}

.image-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-projet:hover img {
    transform: scale(1.1);
}

.overlay-projet {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-projet:hover .overlay-projet {
    background-color: rgba(0, 0, 0, 0.4);
}

.overlay-projet span {
    color: var(--couleur-blanc);
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
}

.image-projet:hover .overlay-projet span {
    opacity: 1;
}

.contenu-carte {
    padding: 20px;
}

.titre-projet {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.description-projet {
    font-size: 14px;
    color: var(--couleur-texte-leger);
    text-align: center;
    margin-bottom: 15px;
}

.tags-projet {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    color: var(--couleur-principale);
    background-color: #e0f7fa;
    padding: 5px 12px;
    border-radius: 20px;
}

.bouton-voir {
    width: 100%;
}

/* ============================================
   SECTION COMPÉTENCES
   ============================================ */

.boite-competences {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 12px;
}

.titre-competences {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--couleur-sombre);
}

.liste-competences {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.item-competence {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entete-competence {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nom-competence {
    font-weight: 600;
    color: var(--couleur-sombre);
}

.pourcentage-competence {
    color: var(--couleur-principale);
    font-weight: 700;
}

.barre-competence {
    width: 100%;
    height: 8px;
    background-color: var(--couleur-gris-moyen);
    border-radius: 10px;
    overflow: hidden;
}

.barre-remplie {
    height: 100%;
    background-color: var(--couleur-principale);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ============================================
   SECTION CONTACT
   ============================================ */

.formulaire-contact {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
}

.groupe-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.groupe-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-formulaire {
    background-color: var(--couleur-blanc);
    color: var(--couleur-texte);
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.input-formulaire:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--couleur-principale);
}

.input-formulaire.erreur {
    box-shadow: 0 0 0 2px var(--couleur-erreur);
}

textarea.input-formulaire {
    resize: vertical;
    min-height: 150px;
}

.message-erreur {
    color: var(--couleur-erreur);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.message-erreur.visible {
    display: block;
}

.bouton-envoyer {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

.infos-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.info-email {
    text-align: center;
}

.info-email i {
    font-size: 40px;
    color: var(--couleur-principale);
    margin-bottom: 15px;
}

.info-email p {
    color: #999;
    font-size: 16px;
}

.reseaux-sociaux {
    display: flex;
    gap: 20px;
}

.lien-reseau {
    width: 50px;
    height: 50px;
    background-color: var(--couleur-principale);
    color: var(--couleur-blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
}

.lien-reseau:hover {
    background-color: #0097a7;
    transform: scale(1.1);
    box-shadow: var(--ombre-hover);
}

/* ============================================
   PIED DE PAGE
   ============================================ */

.pied-page {
    background-color: #000000;
    color: #999;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

.pied-page p {
    margin: 5px 0;
}

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

@media (max-width: 768px) {
    /* Navigation */
    .menu-desktop {
        display: none;
    }

    .bouton-menu-mobile {
        display: block;
    }

    .menu-mobile.actif {
        display: flex;
    }

    /* Titres */
    .titre-principal {
        font-size: 32px;
    }

    .titre-section {
        font-size: 28px;
    }

    /* Grilles */
    .grille-accueil,
    .grille-apropos,
    .grille-contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grille-projets {
        grid-template-columns: 1fr;
    }

    .grille-competences {
        grid-template-columns: 1fr;
    }

    /* Groupe inputs */
    .groupe-inputs {
        grid-template-columns: 1fr;
    }

    /* Photo profil */
    .photo-profil {
        width: 250px;
        height: 250px;
    }

    /* Illustration */
    .boite-illustration {
        width: 280px;
        height: 280px;
    }

    .icone-illustration {
        font-size: 60px;
    }

    /* Section */
    .section {
        padding: 60px 20px;
    }

    .section-accueil {
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    /* En-tête */
    .conteneur-logo {
        gap: 8px;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .nom-site {
        font-size: 14px;
    }

    /* Titres */
    .titre-principal {
        font-size: 24px;
    }

    .titre-section {
        font-size: 22px;
        margin-bottom: 30px;
    }

    /* Boutons */
    .bouton-principal {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Section */
    .section {
        padding: 40px 15px;
    }

    .section-accueil {
        margin-top: 70px;
    }

    /* Illustration */
    .boite-illustration {
        width: 200px;
        height: 200px;
    }

    .icone-illustration {
        font-size: 40px;
    }

    /* Photo profil */
    .photo-profil {
        width: 200px;
        height: 200px;
    }

    /* Conteneur */
    .conteneur {
        padding: 0 15px;
    }

    /* Textes */
    .description-accueil,
    .texte-apropos {
        font-size: 14px;
    }

    /* Boite competences */
    .boite-competences {
        padding: 20px;
    }

    .titre-competences {
        font-size: 18px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   MISE A PAGE A PROPOS
   ============================================ */

/* Justification du texte */
.texte-apropos {
    text-align: justify;
}


/* Troisième paragraphe légèrement agrandi */
.contenu-apropos p:nth-child(3) {
    grid-column: 1 / 2; 
    width: 130%; /* agrandissement léger */
}

.p3 {
    margin-top: -70px;
}

/* Décalage de la photo */
.photo-profil-conteneur {
    margin-left: 60px; /* repousse légèrement vers la droite */
    margin-top: -110px;
}

        



