/* --- 1. RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: aliceblue;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: sans-serif;
}

/* --- 2. LE CHÂSSIS DU TÉLÉPHONE --- */
.phone {
    width: 300px;
    aspect-ratio: 9 / 19;
    border: 12px solid #222;
    border-radius: 40px;
    background-color: aliceblue; /* Fond par défaut pour les pages sans photo */
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- 3. HEADER FIXE (BARRE DE STATUT & TERMINAL) --- */
.fixed-ui {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100; /* Toujours au-dessus */
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 5px 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.terminal-bar {
    margin: 15px auto;
    width: 90%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.terminal-bar .logo {
    height: 20px;
    width: 20px;
    border-radius: 0;
}

.terminal-bar input {
    background: transparent;
    border: none;
    color: white;
    margin-left: 10px;
    outline: none;
    width: 100%;
}

/* Nettoyage des suggestions du terminal */
.suggestions {
    list-style: none; /* Enlève les points noirs */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: 0.3s;
}

.terminal-bar:focus-within .suggestions {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.suggestions li button {
    width: 100%;
    padding: 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

/* --- 4. SYSTÈME DE SWIPE (PAGES) --- */
.screen {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.screen::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.pages-container {
    display: flex;
    height: 100%;
    width: 200%; /* Pour 2 pages */
}

.page {
    width: 50%; /* 100% de l'écran du téléphone */
    height: 100%;
    scroll-snap-align: start;
    padding-top: 130px; /* Décale les icônes sous le terminal */
}

/* Fond d'écran uniquement sur l'accueil */
#home {
    background: url('img/fond_ecran.webp') no-repeat center center;
    background-size: cover;
}

#page2 {
    background: url('img/fond_ecran.webp') no-repeat center center;
    background-size: cover;
}

/* --- 5. GRILLE D'ICÔNES --- */
.page nav ul {
    list-style: none; /* Enlève les points noirs sur les icônes */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.page nav ul li a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 11px;
    text-align: center;
}

.page .logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-bottom: 8px;
    object-fit: cover;
}

/* --- 6. FOOTER & INDICATEURS --- */
.page-indicator {
    position: absolute;
    bottom: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.dot { width: 6px; height: 6px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; }
.dot.active { background: white; }

.phone-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    z-index: 100;
}

.back-button {
    background: none; /* Supprime le carré blanc */
    border: none;
    cursor: pointer;
    position: absolute;
    left: 25px;
}

.back-button img {
    height: 22px;
    filter: invert(1); /* Rend l'icône undo-alt blanche */
}

/* Supprime les anciennes versions et colle celle-ci tout à la fin de ton CSS */
.home-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 40px;
    cursor: pointer;
    z-index: 110;
}

.home-bar {
    width: 80px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: none; /* Permet au clic de traverser la div pour atteindre le lien <a> */
}

.home-button:hover .home-bar {
    background-color: #ffffff !important;
    width: 100px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* --- CONFIGURATION PAGE PROFIL --- */
.profile-page {
    background-color: aliceblue !important; /* */
}

.dark-text {
    color: #333 !important; /* Barre de statut visible sur fond clair */
}

.content-scroll {
    height: 100%;
    overflow-y: auto; /* Scroll vertical */
    padding: 80px 15px 100px 15px; /* Espace pour header et footer */
}

/* CARTE À PROPOS */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.profile-pic {
    width: 70px;
    height: 100px;
    border-radius: 25px;
    margin-bottom: 10px;
    border: 3px solid aliceblue;
}

.bio-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

/* SECTIONS COMMUNES */
.info-section {
    margin-bottom: 25px;
}

.info-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #222;
    padding-left: 5px;
}

/* VISUEL CV */
.cv-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.cv-img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.cv-preview:hover .overlay { opacity: 1; }
.cv-preview:hover .cv-img { transform: scale(1.05); }

.download-btn {
    display: block;
    background: #222;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

/* GRILLE SKILLS */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-grid span {
    background: #e1e8ed;
    color: #333;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

/* SOFT SKILLS */
.soft-skills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pill {
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* --- STYLE PAGE PROJETS --- */
.page-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
}

.project-card {
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.project-card h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    border-left: 4px solid #007AFF; /* Petite barre bleue style iOS */
    padding-left: 10px;
}

.project-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.iframe-container, .design-box {
    margin-top: 15px;
}

.iframe-container h3, .design-box h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pour arrondir les angles des iframes Figma */
iframe {
    border-radius: 12px;
    display: block;
}

/* --- STYLE DES PROJETS VS CODE --- */

/* En-tête de la carte avec badges */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tech-badges {
    display: flex;
    gap: 5px;
}

.badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}

/* Couleurs des badges par techno */
.html { background: #E34F26; }
.css { background: #1572B6; }
.js { background: #F7DF1E; color: black; }
.node_js {background-color: #5fa730; }
.react {background-color: #08d9ff;}

/* Aperçu et Boutons */
.web-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.site-img {
    width: 100%;
    display: block;
    transition: filter 0.3s;
}

.project-actions {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    transform: translateY(100%); /* Caché par défaut */
    transition: transform 0.3s ease;
}

/* On affiche les boutons au clic/survol sur mobile */
.web-preview:active .project-actions,
.web-preview:hover .project-actions {
    transform: translateY(0);
}

.action-btn {
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: white;
}

.action-btn.live:hover { background: #e8f0fe; border-color: #4285f4; }
.action-btn.code:hover { background: #f6f8fa; border-color: #24292e; }

/* Couleur spécifique WordPress */
.wp-badge {
    background-color: #21759b !important;
    color: white;
}

/* On s'assure que les cartes WordPress occupent bien l'espace */
.project-card .web-preview {
    min-height: 150px;
    background-color: #f0f0f0;
}

/* --- COULEURS SEO & AUDIT --- */
.seo-perf { background-color: #0cce6b; } /* Vert Lighthouse */
.seo-acc { background-color: #005a9c; }  /* Bleu Accessibilité */
.seo-ux { background-color: #4285f4; }   /* Bleu Google */
.seo-eco { background-color: #2e7d32; }  /* Vert Éco */

.project-card h2 {
    font-size: 15px;
    border-left: 4px solid #333; /* On change la couleur de la barre pour le SEO */
}

/* --- GITHUB PROFILE LOOK --- */
.github-header {
    text-align: center;
    padding: 20px 0;
}

.gh-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid #d0d7de;
}

.gh-username { color: #57606a; font-size: 14px; margin-bottom: 10px; }

.gh-edit-btn {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #f6f8fa;
    color: #24292f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.gh-section { margin: 20px 0; }
.gh-section h3 { font-size: 14px; margin-bottom: 10px; color: #24292f; }

.gh-bio-card, .pin-card {
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
}

.gh-graph-img {
    width: 100%;
    border: 1px solid #d0d7de;
    border-radius: 6px;
}

.pinned-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pin-title { color: #0969da; font-weight: 600; display: block; margin-bottom: 5px; }

/* --- COULEURS DES LANGAGES GITHUB --- */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

/* Couleurs officielles GitHub */
.dot.html { background-color: #e34c26; }    /* Orange HTML5 */
.dot.css { background-color: #563d7c; }     /* Violet CSS */
.dot.js { background-color: #f1e05a; }      /* Jaune JS */
.dot.react { background-color: #61dafb; }   /* Bleu React */
.dot.node { background-color: #339933; }    /* Vert Node.js */
.dot.php { background-color: #4F5D95; }     /* Bleu-Violet PHP */

/* Style pour le texte à côté de la pastille */
.pin-lang {
    font-size: 12px;
    color: #57606a;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

/* --- COULEURS VEILLE TECHNO --- */
.tech-news { background-color: #f24e1e; }      /* Rouge/Orange Daily.dev */
.tech-fun { background-color: #ffcc00; color: black; } /* Jaune Humour */
.tech-community { background-color: #000000; } /* Noir Dev.to */

.download-btn {
    margin-top: 15px;
    background: #007AFF; /* Bleu iOS pour les boutons d'action */
    transition: background 0.3s;
}

.download-btn:hover {
    background: #0051a8;
}

/* --- STYLE DES CERTIFICATIONS --- */
.cert-simplon {
    border: 2px solid #ed1c24; /* Couleur Simplon */
    background: linear-gradient(to bottom right, #ffffff, #fff5f5);
}

.cert-sololearn {
    background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
    border-left: 5px solid #333;
}

.cert-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cert-date {
    font-size: 11px;
    color: #888;
    font-weight: bold;
}

.section-subtitle {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PLAYLIST VIBE --- */
.spotify-bg {
    background: linear-gradient(to bottom, #1e3a8a, #121212 40%) !important;
}

.playlist-header {
    text-align: center;
    padding-top: 20px;
    color: white;
}

.playlist-cover {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.playlist-info {
    font-size: 12px;
    color: #b3b3b3;
    margin-top: 5px;
}

.play-actions {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.play-btn {
    background: #1db954; /* Vert Spotify */
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

.song-list {
    list-style: none;
    padding: 0 15px;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.song-info {
    display: flex;
    flex-direction: column;
}

.song-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.song-artist {
    color: #b3b3b3;
    font-size: 12px;
}

/* --- COLORS POUR LA PAGE AUTRES --- */
.pro-badge { background-color: #0078d4; } /* Bleu Microsoft */
.tech-badge { background-color: #444; }    /* Gris Tech */
.fun-badge { background-color: #8257e5; }   /* Violet Gaming */

.gaming-list {
    margin-top: 10px;
    font-size: 13px;
    color: #444;
}

.gaming-list ul {
    list-style: none;
    margin-top: 5px;
    padding-left: 5px;
}

.gaming-list li {
    margin-bottom: 5px;
}

/* --- STYLE PAGE CONTACT --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    padding-left: 5px;
}

.input-group input, .input-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #007AFF;
}

.send-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-btn:active { transform: scale(0.95); }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: background 0.3s;
}

.contact-pill:hover { background: #f0f0f0; }