/* VARIABLES & RESET */
:root {
    --bg-body: #ffffff;
    --bg-grey: #f5f5f7; /* Le gris clair classique d'Apple */
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent: #0071e3; /* Le bleu Apple */
    --accent-hover: #0077ed;
    --radius: 18px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* NAVIGATION */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* Effet verre dépoli */
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo { font-weight: 700; font-size: 1.2rem; }

.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: var(--text-main);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
}

/* HERO SECTION */
header {
    text-align: center;
    padding: 100px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background: var(--bg-grey);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

h1 { font-size: 3.5rem; margin: 20px 0 10px; letter-spacing: -1px; }
.subtitle { font-size: 1.5rem; color: var(--text-muted); font-weight: 400; margin-bottom: 20px; }
.bio { max-width: 600px; margin: 0 auto 40px; color: #555; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* BOUTONS GÉNÉRAUX */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}
.primary { background: var(--accent); color: white; }
.secondary { background: var(--bg-grey); color: var(--accent); }
.btn:hover { transform: scale(1.02); }

/* SECTIONS & LAYOUT */
section { padding: 80px 20px; }
.section-grey { background: var(--bg-grey); }
.container { max-width: 1000px; margin: 0 auto; }

.section-title { font-size: 2rem; margin-bottom: 40px; text-align: center; }

/* CARTES */
.card, .card-wide, .tech-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.card-wide { display: flex; gap: 30px; align-items: flex-start; }
.icon-box { font-size: 2rem; color: var(--accent); background: #eef6ff; padding: 15px; border-radius: 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* LISTES */
.list-check { list-style: none; margin-top: 15px; }
.list-check li:before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: bold; }

.timeline { margin-top: 15px; padding-left: 20px; }
.timeline li { margin-bottom: 10px; }

/* COMPETENCES */
.tech-card { text-align: center; transition: 0.3s; }
.tech-card i { font-size: 2.5rem; color: var(--text-main); margin-bottom: 15px; }
.tech-card:hover { transform: translateY(-5px); }

.procedures-block {
    margin-top: 40px;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
}

/* DOCUMENTS */
.docs-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-grey);
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.2s;
}
.doc-item:hover { background: #e5e5ea; }

footer { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-2, .card-wide { flex-direction: column; grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
}
/* SECTION A PROPOS / SETUP */
.tags-group {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e5e5ea;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.setup-card {
    background: var(--bg-grey); /* Fond gris pour contraster avec la section blanche */
    padding: 30px;
    border-radius: var(--radius);
}

.setup-card h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SECTION MON HISTOIRE / INSPIRATIONS */
.story-text p {
    font-size: 1.05rem; /* Un peu plus grand pour la lecture */
    color: #444;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Grille de 2 colonnes */
    gap: 20px;
}

.inspiration-item img {
    width: 100%;
    height: 180px; /* Hauteur fixe pour que tout soit aligné */
    object-fit: cover; /* L'image remplit le carré sans être déformée */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.inspiration-item img:hover {
    transform: scale(1.03); /* Petit effet de zoom au survol */
}

.inspiration-item figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* Petit ajustement pour mobile */
@media (max-width: 768px) {
    .inspiration-grid {
        margin-top: 30px;
    }
    .inspiration-item img {
        height: 140px; /* Images plus petites sur mobile */
    }
}
/* ESPACEMENT LISTE FORMATION */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre chaque diplôme */
}

.text-desc {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
}
/* SECTION ENTREPRISE / EXPÉRIENCE */
.company-header {
    display: flex;
    align-items: center;
    gap: 25px; /* Espace entre logo et titre */
    margin-bottom: 25px;
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain; /* Garde les proportions du logo */
    background: white;
    border-radius: 18px; /* Arrondi Apple */
    border: 1px solid #eee; /* Légère bordure grise */
    padding: 5px;
}

.company-info h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.company-info .role {
    color: var(--accent); /* Bleu */
    font-weight: 600;
    margin: 0;
}

.company-info .date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Style pour le "Long Texte" */
.company-story h4 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.company-story p {
    text-align: justify; /* Pour que le pavé de texte fasse "propre" */
    margin-bottom: 15px;
    line-height: 1.8; /* Bien aéré */
    color: #444;
}

/* Adaptation Mobile pour le logo */
@media (max-width: 600px) {
    .company-header {
        flex-direction: column;
        text-align: center;
    }
}
/* HERO SECTION - Style de la photo */
.profile-photo {
    width: 160px;            /* Taille de la photo */
    height: 160px;
    object-fit: cover;       /* Important : coupe l'image pour qu'elle remplisse le cercle sans être écrasée */
    border-radius: 50%;      /* C'est ça qui fait le rond parfait */
    border: 5px solid white; /* Grosse bordure blanche pour ressortir du fond gris */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Ombre douce pour donner du relief */
    margin: 0 auto 30px;     /* Centré horizontalement, avec de l'espace en dessous */
    display: block;          /* Nécessaire pour le centrage automatique */
}
/* MODALE DE CONTACT */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; 
    z-index: 2000; /* Au-dessus de tout, même du menu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* Fond noir transparent */
    backdrop-filter: blur(5px); /* Effet flou Apple derrière */
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
}

/* La croix pour fermer */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.close-btn:hover { color: #000; }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

/* Style des boutons dans la modale */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.contact-btn:hover { transform: scale(1.02); }

/* Couleurs spécifiques */
.linkedin { background: #0077b5; color: white; }
.email { background: #f5f5f7; color: #333; border: 1px solid #ddd; }
.github { background: #333; color: white; }

/* Animation d'apparition */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
/* GRILLE DES PROCÉDURES */
.procedures-block {
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.proc-grid {
    display: grid;
    /* Cela crée autant de colonnes que possible (min 180px de large) */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.proc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f7; /* Gris clair Apple */
    padding: 20px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.proc-item i {
    font-size: 1.8rem;
    color: var(--accent); /* Ton bleu */
    margin-bottom: 10px;
}

.proc-item:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
/* LIENS DANS LE TEXTE */
.text-link {
    color: var(--accent); /* Ton bleu Apple */
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent; /* Prépare le soulignement */
    transition: border-color 0.2s;
}

.text-link:hover {
    border-bottom-color: var(--accent); /* Souligne proprement au survol */
}

/* Modification pour aligner l'icône en haut */
.setup-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start; /* AVANT c'était 'center', MAINTENANT 'flex-start' */
}

/* On ajoute un petit décalage pour que l'icône soit pile face au titre */
.setup-item i {
    font-size: 1.5rem;
    color: var(--text-main);
    width: 30px;
    text-align: center;
    margin-top: 4px; /* PETIT AJOUT : pour descendre l'icône pile au niveau du texte */
}