/* --- STYLES SPÉCIFIQUES À L'ACCUEIL --- */

.hero {
    background: linear-gradient(rgba(36, 59, 85, 0.95), rgba(36, 59, 85, 0.95)), url(https://placehold.co/1600x900/243B55/2BC4A4?text=Code) no-repeat center center;
    background-size: cover;
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero h1 .highlight {
    color: var(--color-secondary);
    font-style: italic;
}

.hero p {
    font-size: 1.25em;
    max-width: 750px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #26a991;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tools-section {
    text-align: center;
}

.tools-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    text-align: left;
}

.tool-card {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* --- STYLES POUR LES NOUVELLES CARTES D'OUTILS --- */

/* Style pour la carte Standard (bordure vert menthe) */
.tool-card.standard {
     border-top-color: var(--color-secondary); /* Vert menthe */
}

/* Style pour la carte Premium (bordure jaune doré) */
.tool-card.premium {
     border-top-color: #F5A623; /* Jaune doré (var(--color-accent)) */
     position: relative;
     overflow: hidden;
}

/* Style pour le badge "Freemium" */
.tool-card .badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background-color: #F5A623; /* Jaune doré */
    color: #FFFFFF; /* var(--color-white) */
    padding: 5px 40px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
}

/* Style pour le bouton Accent (jaune) */
.btn-accent {
    background-color: #F5A623; /* Jaune doré */
    color: #FFFFFF; /* var(--color-white) */
}

.btn-accent:hover {
    background-color: #d48f1e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Ajustement du bouton sur les cartes pour qu'il soit cohérent */
.tool-card .btn {
    margin-top: auto; /* Pousse le bouton en bas */
    align-self: flex-start; /* Aligne le bouton à gauche */
}

/* Dans votre CSS, le bouton est centré, si vous le voulez à gauche, utilisez la règle ci-dessus,
   sinon, pour le garder centré comme initialement, utilisez : */
.tool-card .btn {
    margin-top: auto; /* Pousse le bouton en bas */
/*    align-self: center;  Centre le bouton horizontalement */
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.tool-card h3 {
    margin-top: 0;
    font-size: 1.6em;
}

.tool-card .btn {
    margin-top: 25px;
    align-self: center;
}

/* --- RESPONSIVE SPÉCIFIQUE --- */
@media (max-width: 820px) {
    .hero h1 {
        font-size: 2.4em;
    }
    .hero p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
/*
 * CORRECTION SPÉCIFIQUE POUR LA LARGEUR DE L'ACCUEIL
 * --------------------------------------------------
 * On cible la section #outils pour lui redonner sa 
 * largeur d'origine de 1100px et corriger le centrage.
*/
#outils.container {
    max-width: 1100px;
}