/*
  1. BASE & RESET
  (Thème sombre moderne)
*/

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

:root {
    /* Couleurs (Palette Sombre) */
    --color-primary: #8a7cfd;       /* Un violet/indigo lumineux pour l'accent */
    --color-text-light: #e2e8f0;    /* Blanc cassé pour le texte clair */
    --color-text-dark: #cbd5e1;     /* Gris clair pour le texte secondaire */
    --color-background: #1e293b;    /* Gris foncé/Bleu nuit pour l'arrière-plan principal */
    --color-surface: #2d3748;       /* Gris légèrement plus clair pour les surfaces/cartes */
    --color-border: #4a5568;        /* Gris moyen pour les bordures */
    --color-hover-bg: #374151;      /* Fond léger pour le survol */

    /* Typographie */
    --font-family-sans: 'Inter', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 600;
    --font-weight-bold: 700;

    /* Espacement */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--color-text-light); /* Texte principal clair */
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    padding-top: 5rem;
}

/* Liens de base
*/
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

a:hover, a:focus {
    color: #a89eff; /* Variation plus claire de la couleur primaire */
    text-decoration: underline;
    outline-offset: 4px;
}

/* Conteneur central
*/
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typographie
*/
h1, h2, h3 {
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light); /* Titres clairs */
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: var(--spacing-lg); }
h3 { font-size: 1.5rem; }

.lead {
    font-size: 1.25rem;
    color: var(--color-text-dark); /* Texte secondaire légèrement plus foncé */
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
}

/* 2. HEADER
*/
.site-header {
    background-color: var(--color-surface); /* Utilise la couleur de surface pour une petite variation */
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ombre subtile pour le relief */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
    text-decoration: none;
}

.nav-link {
    margin-left: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    text-decoration: none;
    border-radius: 4px;
}

.nav-link:hover, .nav-link:focus {
    color: var(--color-primary);
    background-color: var(--color-hover-bg);
    text-decoration: none;
}

.nav-link.current {
    color: var(--color-primary);
    background-color: var(--color-hover-bg);
    text-decoration: none;
}


/* 3. HERO SECTION
*/
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.hero-text {
    max-width: 900px;
    margin-bottom: var(--spacing-xl);
}

.hero-photo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.photo-frame {
    /* Style du cadre autour de l'image (couleur primaire) */
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    overflow: hidden;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    /* Ombre subtile pour le dark mode */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--color-surface);
}

.photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. INTRO CARDS (Les liens vers les sections)
*/
.intro-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-xl);
}

.card {
    display: block;
    background-color: var(--color-surface); /* Surfaces des cartes */
    border: 1px solid var(--color-border);
    padding: var(--spacing-lg);
    border-radius: 12px; /* Un peu plus arrondi pour la modernité */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text-light);
}

/* Style spécifique aux liens/boutons de carte */
.card-btn:hover, .card-btn:focus {
    transform: translateY(-5px);
    /* Ombre plus prononcée au survol */
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
    outline: none;
    text-decoration: none;
}

.card h3 {
    margin-top: 0;
    color: var(--color-primary); /* Titre de la carte en couleur accentuée */
}

.card p {
    color: var(--color-text-dark);
    margin-bottom: 0;
}

/* 5. FOOTER
*/
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    text-align: center;
    background-color: var(--color-surface);
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin: 0;
}

/* 6. MEDIA QUERIES (Réactivité)
*/
/* Tablette */
@media (min-width: 768px) {
    .body {
        padding-top: 6rem;
    }

    .hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: var(--spacing-xl);
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
    }

    .hero-text {
        order: 1;
        flex: 1;
        margin-bottom: 0;
    }

    .hero-photo {
        order: 2;
        flex: none;
    }

    .intro-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

/* Ordinateur de bureau (ajustements fins) */
@media (min-width: 1024px) {
    .container {
        width: 85%;
    }
}