/* ============================================= */
/* 1. STYLES GÉNÉRAUX & RESET */
/* ============================================= */
:root {
    --couleur-primaire: #0044cc;      /* Bleu principal */
    --couleur-accent: #ff6600;        /* Orange d'action */
    --couleur-texte: #333;
    --couleur-fond-page: #f4f4f9;      /* Fond de page très clair */
}

body {
    font-family: sans-serif; 
    margin: 0;
    padding: 0;
    color: var(--couleur-texte); 
    line-height: 1.6;
    background-color: var(--couleur-fond-page); 
}

a {
    color: var(--couleur-primaire);
    text-decoration: none;
}

/* ============================================= */
/* 2. EN-TÊTE ET NAVIGATION */
/* ============================================= */
header {
    background-color: var(--couleur-primaire); 
    color: white;
    padding: 10px 0;
    text-align: center;
}

#bandeau-graphiste {
    padding: 50px 20px; 
}

#bandeau-graphiste img {
    /* Style ajouté pour l'image si elle est présente dans le bandeau */
    max-width: 100%; 
    height: auto;
    display: block;
    margin: 15px auto 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #0033aa; 
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #0055ff;
}

/* ============================================= */
/* 3. SECTIONS PRINCIPALES & TITRES */
/* ============================================= */
section {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1000px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    border-radius: 8px;
}

h2 {
    color: var(--couleur-primaire);
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ============================================= */
/* 4. ÉLÉMENTS SPÉCIFIQUES (Boutons, Services, etc.) */
/* ============================================= */
.bouton-principal, .zone-formulaire button[type="submit"] {
    display: inline-block;
    background-color: var(--couleur-accent); /* Orange */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bouton-principal:hover, .zone-formulaire button[type="submit"]:hover {
    background-color: #e65c00;
}

/* --- Services --- */
.liste-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.service-item h3 {
    display: flex; 
    align-items: center; 
    margin-top: 0;
    color: var(--couleur-primaire); 
    font-weight: bold; 
}

.icon-service {
    font-size: 1.5em; 
    color: var(--couleur-accent); 
    margin-right: 10px;
}

/* --- Tables de Tarifs (Uniformité du texte) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    font-weight: bold; 
}

th {
    background-color: var(--couleur-primaire);
    color: white;
    white-space: nowrap; 
    text-align: left; 
}

th:not(:first-child) {
    text-align: center;
}

td {
    white-space: normal; 
    text-align: left; 
    font-weight: normal; 
    color: var(--couleur-texte); 
}

td:not(:first-child) {
    text-align: center;
    font-weight: bold; 
}

/* Style pour la première colonne (Description) où le titre principal doit rester en gras, 
   mais pas la description détaillée. */
#tarifs table td:first-child {
    text-align: left; 
    font-weight: bold; 
}

/* Règle clé qui uniformise la police pour les détails (dans les <span>) */
#tarifs table td span {
    font-size: 0.85em; 
    display: block; 
    margin-top: 3px; 
    font-weight: normal; 
    text-align: left; 
}

/* Nouvelle règle pour que les sous-span (dans la description longue) aient la même taille */
#tarifs table td span span {
    font-size: 1em; 
    display: block; 
    margin-top: 2px;
}

/* La note sur le prix (dans la 4ème colonne) doit rester centrée et en normal */
#tarifs table td:last-child span {
    text-align: center !important; 
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}


/* --- Alertes Succès/Erreur (Pour le formulaire de contact) --- */
#zone-messages {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
}

.alerte {
    padding: 15px;
    font-weight: bold;
    color: white;
}

.alerte.succes {
    background-color: #4CAF50; /* Vert */
}

.alerte.erreur {
    background-color: #f44336; /* Rouge */
}


/* ============================================= */
/* 5. STYLES DE LA SECTION CONTACT (MODERNISÉE) */
/* ============================================= */

/* Le conteneur principal passe en Flexbox pour le 2 colonnes */
.section-contact {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
}

/* Titre de la section Contact s'aligne à gauche comme le reste */
.section-contact h2 {
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
}

/* --- Bloc Coordonnées (Côté gauche) --- */
.contact-infos {
    flex: 1 1 300px; 
    padding: 20px;
    background-color: #f8f8fd; 
    border-radius: 6px;
    border-left: 5px solid var(--couleur-accent); 
}

.contact-infos h3 {
    color: var(--couleur-primaire);
    margin-top: 0;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
    font-weight: bold;
}

.contact-infos p strong {
    color: #444; 
}
.contact-infos a {
    color: var(--couleur-texte); 
    transition: color 0.3s;
}
.contact-infos a:hover {
    color: var(--couleur-accent);
}

/* --- Bloc Formulaire (Côté droit) --- */
.zone-formulaire {
    flex: 2 1 450px; 
    padding: 25px;
    background-color: #f0f0f5; 
    border-radius: 6px;
    border: 1px solid #ddd;
}

.zone-formulaire h3 {
    color: var(--couleur-primaire);
    margin-top: 0;
    font-size: 1.5em;
}

.zone-formulaire form {
    display: flex;
    flex-direction: column;
}

.zone-formulaire label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--couleur-primaire);
}

.zone-formulaire input[type="text"],
.zone-formulaire input[type="email"],
.zone-formulaire input[type="tel"], 
.zone-formulaire select,
.zone-formulaire textarea {
    padding: 10px;
    border: 1px solid #bdc3c7; 
    border-radius: 4px;
    font-size: 1em;
    width: 100%; 
    box-sizing: border-box; 
    transition: border-color 0.3s;
}

.zone-formulaire input:focus,
.zone-formulaire select:focus,
.zone-formulaire textarea:focus {
    border-color: var(--couleur-primaire); 
    box-shadow: 0 0 5px rgba(0, 68, 204, 0.3); 
    outline: none;
}

.zone-formulaire textarea {
    resize: vertical; 
    min-height: 120px;
}

.zone-formulaire button[type="submit"] {
    align-self: flex-start;
    margin-top: 25px;
    width: 50%; 
}

/* ============================================= */
/* 6. PIED DE PAGE */
/* ============================================= */
footer {
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer a {
    color: var(--couleur-accent);
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* ============================================= */
/* 7. RESPONSIVE (POUR MOBILE) */
/* ============================================= */
@media (max-width: 768px) {
    /* Navigation */
    nav ul { flex-direction: column; }
    nav a { text-align: center; border-bottom: 1px solid #0055ff; }
    
    /* Contact */
    .section-contact { flex-direction: column; }
    .zone-formulaire button[type="submit"] { width: 100%; }
    
    /* Tables */
    th, td { padding: 8px; font-size: 0.9em; }
}