/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs */
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #A5D6A7;
    --secondary: #FF9800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Typographie */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Bordures */
    --border-radius: 8px;
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHIE RESPONSIVE ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
    margin-bottom: var(--space-md);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ===== HEADER VERT ===== */
.site-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.header-logo {
    height: 60px;
    width: auto;
}

/* ===== NAVIGATION ===== */
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    justify-content: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-dark);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: var(--space-lg);
    margin-top: auto;
}

/* ===== COMPOSANTS COMMUNS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) var(--space-md);
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: 0 4px 6px var(--shadow);
    margin-bottom: var(--space-lg);
}

/* ===== GRID SYSTEM RESPONSIVE ===== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* ===== STYLES SPÉCIFIQUES POUR SERVICES (SOLUTION 1) ===== */
.publics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.public-item {
    background: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px var(--shadow);
}

.public-item br {
    display: none;
}

@media (min-width: 480px) {
    .public-item {
        min-height: 100px;
    }
}

/* ===== STYLES SPÉCIFIQUES POUR À PROPOS (SOLUTION A) ===== */
.profile-intro {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: var(--border-radius);
}

.mission-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.mission-item {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.values-container {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.value-item:last-child {
    border-bottom: none;
}

.value-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

/* Solution A : Empilage vertical sur mobile pour les valeurs */
@media (max-width: 767px) {
    .value-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }
    
    .value-emoji {
        margin-bottom: var(--space-sm);
        font-size: 2rem;
    }
    
    .value-item h3 {
        margin-bottom: var(--space-xs);
    }
}

/* Parcours harmonieux en 4 blocs */
.journey-container {
    margin-top: var(--space-xl);
}

.journey-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    height: 100%;
    box-shadow: 0 2px 8px var(--shadow);
}

.journey-item h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.journey-item ul {
    list-style-position: inside;
    padding-left: var(--space-sm);
}

.journey-item li {
    margin-bottom: var(--space-xs);
}

/* Qualités */
.qualities-grid {
    margin-top: var(--space-lg);
}

.quality-item {
    text-align: center;
    padding: var(--space-md);
}

.quality-item h3 {
    color: var(--primary);
}

/* ===== STYLES SPÉCIFIQUES POUR CONTACT (SOLUTION C) ===== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.contact-info {
    margin-top: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-detail h3 {
    margin-bottom: var(--space-xs);
    color: var(--primary);
}

/* Solution C : Liste verticale compacte pour contacts mobile */
@media (max-width: 767px) {
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .contact-item {
        flex-direction: row;
        align-items: center;
        padding: var(--space-sm);
        background: white;
        border-radius: var(--border-radius);
        box-shadow: 0 1px 3px var(--shadow);
        margin-bottom: var(--space-sm);
    }
    
    .contact-icon {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .contact-detail {
        flex: 1;
        text-align: left;
    }
    
    .contact-detail h3 {
        margin-bottom: 0;
        font-size: 0.9rem;
        color: var(--text-light);
    }
    
    .contact-detail p {
        margin-bottom: 0;
        font-weight: bold;
        font-size: 1rem;
    }
}

/* ===== STYLES SPÉCIFIQUES POUR LA PAGE D'ACCUEIL ===== */
.hero {
    background: linear-gradient(rgba(76, 175, 80, 0.9), rgba(76, 175, 80, 0.7)),
                url('logo.jpg') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: var(--space-xl);
}

/* ===== STYLES SPÉCIFIQUES POUR LA PAGE SERVICES ===== */
.services-grid {
    margin-bottom: var(--space-xl);
}

.service-card {
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-emoji {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.service-card h2 {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.publics-container {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
}

/* Responsive pour les services */
@media (max-width: 767px) {
    .service-card {
        padding: var(--space-md);
    }
    
    .publics-container {
        padding: var(--space-md);
    }
}

/* ===== STYLES CATALOGUE SERVICES ===== */
.catalog-card {
    display: flex;
    flex-direction: column;
}

.catalog-card .service-points {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    flex: 1;
}

.catalog-card .service-points li {
    padding: var(--space-xs) 0 var(--space-xs) 1.6rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-light);
}

.catalog-card .service-points li:last-child {
    border-bottom: none;
}

.catalog-card .service-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-price {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-dark);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary-light), white);
    border-radius: var(--border-radius);
}

.service-price small {
    display: block;
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.service-cta {
    display: block;
    text-align: center;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.service-cta:hover {
    background-color: var(--primary-dark);
}

/* ===== STYLES PAGE TARIFS ===== */
.tarif-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.tarif-table th,
.tarif-table td {
    padding: var(--space-md);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.tarif-table th {
    background-color: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.tarif-table tr:last-child td {
    border-bottom: none;
}

.tarif-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.tarif-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
}

.tarif-table .tarif-prix {
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--primary-dark);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .tarif-table th,
    .tarif-table td {
        padding: var(--space-sm);
    }
    
    .tarif-table th {
        font-size: 1rem;
    }
    
    .tarif-table .tarif-prix {
        font-size: 1rem;
    }
}

.tarif-note {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
}

.tarif-cta {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.tarif-cta:hover {
    background-color: var(--primary-dark);
}

/* ===== APERÇU PRESTATIONS ACCUEIL ===== */
.presta-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .presta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.presta-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    display: flex;
    flex-direction: column;
}

.presta-card .presta-emoji {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.presta-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.presta-card p {
    flex: 1;
}

.presta-card .presta-price {
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

.presta-link {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.presta-link:hover {
    background-color: var(--primary-dark);
}
