/* --- Réinitialisation et styles de base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* --- En-tête et Logo --- */
header {
    background-color: #1a237e; /* Un bleu foncé pour un look "tech" */
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* --- Navigation --- */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

/* Style pour le lien "actif" */
nav a.active {
    border-bottom-color: #ffc107; /* Un accent jaune */
}

nav a:hover {
    border-bottom-color: #ffffff;
}

/* --- Contenu Principal (Main) --- */
main {
    max-width: 1100px;
    margin: 2rem auto; /* Centre le contenu */
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- Module de Traduction --- */
.traducteur-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Colonne | Bouton | Colonne */
    gap: 1.5rem; /* Espace entre les colonnes */
    align-items: center;
}

.langue-col {
    display: flex;
    flex-direction: column;
}

.langue-col label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a237e;
}

textarea {
    width: 100%;
    min-height: 200px;
    border: 1px solid #c0c7d0;
    border-radius: 4px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box; /* Assure que le padding ne casse pas la largeur */
}

textarea#texte-resultat {
    background-color: #f4f7f6; /* Griser la sortie */
}

/* NOUVEAU STYLE (à coller) */
#btn-traduire {
    background-color: #1a237e;
    color: white;
    border: none;
    border-radius: 4px; /* Bords arrondis standards */
    padding: 0.5rem 1rem; /* Espace intérieur pour le texte */
    font-size: 1rem;    /* Taille de police normale */
    font-weight: 600; /* Un peu gras */
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Prend toute la largeur de sa colonne */
}

#btn-traduire:hover {
    background-color: #0d1241;
}


/* --- Pied de page (Footer) --- */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
}

/* Classe pour cacher les pages non actives (JavaScript va l'utiliser) */
.page {
    /* est affiché par défaut, JS va gérer le 'display: none' */
}
/* --- Styles pour la Section "Le Projet" (Solutions) --- */

.solution-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de taille égale */
    gap: 2rem; /* Espace entre les colonnes */
}

.solution-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.solution-box img {
    width: 100%; /* Image responsive */
    height: 200px; /* Hauteur fixe pour l'harmonie */
    object-fit: cover; /* L'image couvre la zone sans se déformer */
    border-radius: 4px;
    margin-bottom: 1rem;
}

.solution-box h3 {
    color: #1a237e; /* Bleu foncé (notre couleur de marque) */
    margin-top: 0;
}

/* Style pour les boutons "Call to Action" */
.cta-button {
    display: inline-block;
    margin-top: 1rem;
    background-color: #1a237e;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0d1241;
}

/* --- Styles pour la Section "Contact" --- */

.contact-box {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.contact-email {
    margin-top: 1.5rem;
}

.contact-email a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a237e; /* Notre couleur de marque */
    text-decoration: none;
    border-bottom: 2px solid #1a237e;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: #0d1241;
    border-bottom-color: #ffc107; /* Accent jaune au survol */
}

/* --- Responsive pour les mobiles --- */
@media (max-width: 768px) {
    .solution-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}