/* ============================================
   RESET
   Supprime les marges par défaut du navigateur
============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;    /* Les paddings ne s'ajoutent pas à la largeur */
}

/* ============================================
   BODY
   Fond dégradé violet, centrage vertical
============================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============================================
   CONTENEUR PRINCIPAL
   Limite la largeur du contenu
============================================= */
.container {
    max-width: 1200px;
    width: 100%;
}

/* ============================================
   EN-TÊTE
   Titre et sous-titre centrés en blanc
============================================= */
header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ============================================
   GRILLE
   Place les blocs côte à côte
   - auto-fit : s'adapte au nombre de blocs
   - minmax : minimum 500px, sinon prend l'espace
============================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   Sur petit écran : une seule colonne
============================================= */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* ============================================
   SECTION (BLOC BLANC)
   Carte avec ombre et effet au survol
============================================= */
.section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);           /* Monte de 5px */
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

/* ============================================
   TITRE DE SECTION
   Icône + texte alignés
============================================= */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 0.75rem;                          /* Espace entre icône et texte */
}

.section-title svg {
    width: 32px;
    height: 32px;
}

/* ============================================
   CONTENEUR DE LIENS
   Empile les liens verticalement
============================================= */
.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   LIEN (BOUTON)
   Style par défaut : violet
============================================= */
.link-item {
    display: block;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;                 /* Pas de soulignement */
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.link-item:hover {
    transform: translateX(8px);            /* Glisse vers la droite */
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.link-item .link-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.link-item .link-desc {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
   VARIANTE OUTILS (ROSE)
   Surcharge les couleurs pour .tools
============================================= */
.tools .link-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.tools .link-item:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

/* ============================================
   COULEURS DES ICÔNES
============================================= */
.icon-tools {
    color: #f5576c;                        /* Rose */
}

.icon-sites {
    color: #667eea;                        /* Violet */
}

/* ============================================
   PIED DE PAGE
============================================= */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 2rem;
}
