/* ============================================
   STYLE VISITEUR — Portfolio (Design iOS/VisionOS + Space Grotesk)
   ============================================ */

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- FIX NAVBAR : Règle le point d'arrivée des clics du menu --- */
html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

body {
    padding-top: 140px;
}

/* Classes utilitaires */
.text-transparent { color: transparent; }
.bg-clip-text { background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right, var(--color-highlight), #60a5fa); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.text-primary { color: var(--color-highlight); }
.text-white { color: #fff; }
.icon-small { font-size: 12px; }

/* ============================================
    BOUTONS (HERO, CONTACT)
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background-color: var(--color-button);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-glow {
    box-shadow: 0 0 25px rgba(37, 106, 244, 0.4);
}

/* ---- Section Header ---- */
.section-header {
    margin-bottom: 40px;
    padding: 0 10px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}
.section-subtitle {
    font-size: 14px;
}

/* ============================================
   FENETRES STYLE SAFARI (HERO, A PROPOS)
   ============================================ */
.safari-window {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-apple);
    overflow: hidden;
    width: 100%;
}

.safari-header {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.traffic-lights { display: flex; gap: 8px; width: 33.333%; }
.traffic-light { width: 12px; height: 12px; border-radius: 50%; }
.tl-red { background-color: #ff5f57; }
.tl-yellow { background-color: #ffbd2e; }
.tl-green { background-color: #28c840; }

.safari-title {
    width: 33.333%;
    display: flex;
    justify-content: center;
}
.safari-title-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 24px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.safari-actions {
    width: 33.333%;
    display: flex;
    justify-content: flex-end;
    color: var(--text-paragraph);
    font-size: 14px;
}

.lock-icon, .user-icon { font-size: 10px; }

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card,
.competence-category,
.outil-card,
.certif-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-apple);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-window-content {
    padding: 60px 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap-reverse;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-desc strong { font-weight: 500; color: var(--text-headline); }

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-img-container {
    flex-basis: 250px;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid #1c1c1e;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-status-badge {
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: #28c840;
    border-radius: 50%;
    border: 4px solid #1c1c1e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* ============================================
   A PROPOS
   ============================================ */
.about-window-content {
    padding: 40px;
}

.about-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 15px;
    line-height: 1.8;
}

.about-stats {
    margin-top: 30px;
    display: flex;
    gap: 40px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
}

.stat-label {
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

/* ============================================
   COMPÉTENCES
   ============================================ */
.competences-section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
.competences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.competence-category { padding: 30px; }
.competence-category h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.competence-category h3 i { color: var(--color-highlight); }
.skills-list { display: flex; flex-direction: column; gap: 18px; }
.skill-item { width: 100%; }
.skill-info { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--text-headline); margin-bottom: 8px; }
.skill-bar { width: 100%; height: 6px; background-color: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.skill-progress { height: 100%; width: 0; background: var(--color-highlight); border-radius: 10px; transition: width 1.5s ease; }

/* ============================================
   OUTILS
   ============================================ */
.outils-section { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }

.outils-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.outil-card {
    width: 120px;
    height: 120px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    z-index: 1;
}

.outil-card:hover {
    transform: scale(1.18);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.outil-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.outil-card:hover .outil-img {
    transform: scale(1.15);
}

.outil-name { font-size: 12px; font-weight: 500; text-align: center; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; }
.contact-content { display: flex; gap: 60px; }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item i { font-size: 20px; color: var(--color-highlight); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass); border-radius: 12px; }
.contact-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-item a, .contact-item p { font-size: 13px; text-decoration: none; }
.contact-item a:hover { color: var(--color-highlight); }
.contact-item a { color: #ffffff !important; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--color-highlight) !important; }

.contact-form { flex: 1.5; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 18px; }
.contact-form .form-group { display: flex; flex-direction: column; flex: 1; }
.contact-form label { font-size: 13px; font-weight: 500; margin-bottom: 8px; }

.contact-form input, .contact-form textarea {
    padding: 14px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-highlight);
    background: rgba(255, 255, 255, 0.08);
}
.contact-form textarea { resize: vertical; }

/* ============================================
   CV
   ============================================ */
.cv-section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.cv-download-btn { width: 100%; max-width: 400px; padding: 20px; background-color: var(--bg-glass); }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }

/* ============================================
   RESPONSIVE GLOBAL
   ============================================ */
@media (max-width: 900px) {
    .contact-content { flex-direction: column; }
    .form-row { flex-direction: column; }
}
@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; text-align: center; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 24px; }
    .hero-window-content, .about-window-content { padding: 30px 20px; }
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certif-grid-viewer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.certif-card-viewer {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-apple);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    cursor: default;
}

.certif-card-viewer img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.certif-card-viewer:hover {
    transform: scale(1.12);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

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

/* ============================================
   FOOTER VIEWER
   ============================================ */
.footer-viewer {
    margin-top: 80px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-text {
    color: var(--text-paragraph);
    font-size: 14px;
}

.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 106, 244, 0.3);
}

/* ============================================
   PARCOURS (Timeline Formations & Expériences)
   ============================================ */
.timeline { position: relative; padding-left: 30px; margin-top: 10px; }

/* Ligne verticale */
.timeline::before { content: ''; position: absolute; top: 0; left: 7px; height: 100%; width: 2px; background: var(--border-glass); }

.timeline-item { position: relative; padding: 25px; margin-bottom: 30px; text-align: left; cursor: default; }

/* Point lumineux sur la ligne */
.timeline-item::before {
    content: ''; position: absolute; top: 30px; left: -29px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-highlight); border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--color-highlight);
}

.timeline-date {
    font-size: 13px; color: var(--color-highlight); font-weight: 600; margin-bottom: 12px;
    display: inline-block; background: rgba(37, 106, 244, 0.1); padding: 4px 12px; border-radius: 20px;
}

.timeline-title { font-size: 18px; color: var(--text-headline); margin-bottom: 5px; }
.timeline-school { font-size: 14px; color: var(--text-paragraph); margin-bottom: 15px; font-style: italic; }
.timeline-desc { font-size: 14px; color: var(--text-paragraph); line-height: 1.6; }