/* =========================================
   DESIGN MAHTEK - VERSION FINALE CORRIGÉE
   ========================================= */

/* 1. RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: #424340;
    background-color: #FFFFFF;
    font-size: 18px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

.no-select {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

/* 2. PALETTE */
:root {
    --c-dark: #424340;
    --c-sage: #606C5A;
    --c-grey: #B0B9A8;
    --c-light: #C9E3CC;
    --c-sky: #B8CBD0;
    
    --bg-card: #FFFFFF;
    --text-main: #424340;
    --text-body: #555754;
    --border: #E5E7EB;
    
    --fil-bleu: #B8CBD0; 
    --fil-marron: #B0B9A8;
}

/* 3. LAYOUT */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 4. HEADER */
header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-dark);
    letter-spacing: -0.5px;
}

nav a {
    margin-left: 30px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-body);
    position: relative;
    padding-bottom: 4px;
}

nav a:hover, nav a.active {
    color: var(--c-sage);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--c-sage);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* 5. HERO */
.hero, .contact-hero {
    background-color: #F9FAFB;
    padding: 100px 0 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1, .contact-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-body);
    max-width: 750px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    background: var(--c-sage);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(96, 108, 90, 0.2);
    transition: all 0.2s;
}

.btn:hover {
    background: var(--c-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(96, 108, 90, 0.3);
}

.btn-container {
    text-align: center;
    margin-top: 3rem;
}

/* 6. SERVICES */
.services {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    justify-content: center;
}

.card {
    background: #FFFFFF;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 12px 12px 0 0;
}
.card-pc::before { background: var(--c-sage); }
.card-mobile::before { background: var(--c-grey); }
.card-reseau::before { background: var(--c-sky); }

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--c-sage);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card ul li {
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Points pour les cartes services (uniquement) */
.card ul li::before {
    content: "•";
    color: var(--c-sage);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* 7. SECTION APPROCHE */
.why {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.why-container {
    background: #FFFFFF;
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.why h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.why h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--c-sage);
    border-radius: 2px;
}

.why p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

/* 8. PAGE CONTACT */
.contact-details {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.contact-unified {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.contact-header {
    padding: 40px 40px 30px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: #FAFAFA;
}

.contact-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 12px;
}

.contact-header p {
    color: var(--text-body);
    font-size: 1.05rem;
}

.contact-rows {
    display: flex;
    flex-direction: column;
}

.contact-row-link, .contact-row-info {
    display: flex;
    align-items: center;
    padding: 25px 40px;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    gap: 20px;
}

.contact-row-link:last-child, .contact-row-info:last-child {
    border-bottom: none;
}

.row-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-sage);
    transition: all 0.3s ease;
}

.row-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.row-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.row-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-body);
    font-weight: 700;
    margin-bottom: 4px;
}

.row-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-dark);
}

.row-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-sage);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.row-action svg {
    width: 18px;
    height: 18px;
}

.contact-row-link:hover {
    background-color: #F0F7F1;
    padding-left: 50px;
    cursor: pointer;
}

.contact-row-link:hover .row-icon {
    background: var(--c-sage);
    color: #fff;
    transform: scale(1.1);
}

.contact-row-link:hover .row-value {
    color: var(--c-dark);
}

.contact-row-link:hover .row-action {
    opacity: 1;
    transform: translateX(0);
}

/* SPECIFIQUE PAGE PRESENTATION */
.values-grid {
    display: grid;
    /* FORCE 2 COLONNES POUR ÉQUILIBRER LES 5 CARTES */
    grid-template-columns: repeat(2, 1fr); 
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Centrer la dernière carte si elle est seule sur sa ligne */
.value-card:last-child:nth-child(odd) {
    grid-column: span 2;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card {
    background: #F0F7F1;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--c-sage);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    background: #FFFFFF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.value-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--c-dark);
    display: block;
    margin-bottom: 0.4rem;
}
.value-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-sage);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}
.value-card p {
    line-height: 1.7;
    color: var(--text-body);
    font-size: 0.95rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    color: var(--c-dark);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.contact-card h3:first-child {
    margin-top: 0;
}
.contact-card > p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-body);
}
h3#histoire + p, h3#histoire + p + p, h3#histoire + p + p + p {
    margin-bottom: 2rem; 
    line-height: 1.9;
}

/* Liste générale dans .contact-card (pour Mission par exemple) */
.contact-card ul {
    margin-bottom: 1.5rem;
    padding-left: 10px;
}
.contact-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: var(--text-body);
}
/* Points pour la liste Mission */
.contact-card ul li::before {
    content: "•";
    color: var(--c-sage);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* LISTE ENGAGEMENTS AVEC COCHES (SANS POINTS) */
.commitment-list {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.commitment-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-start;
    list-style-type: none; 
}

.commitment-list li:last-child {
    border-bottom: none;
}

/* La coche verte */
.check-icon {
    color: var(--c-sage);
    margin-right: 1.2rem;
    font-weight: bold;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: -2px;
    display: block;
}

/* Le texte : Gras pour le titre, normal pour la suite */
.commitment-list li strong {
    color: var(--c-dark);
    margin-right: 4px;
}

/* SUPPRESSION EXPLICITE DES POINTS POUR CETTE LISTE SPÉCIFIQUE */
.commitment-list li::before {
    content: none; 
    display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1, .contact-hero h1 { font-size: 2.2rem; }
    .nav-container { flex-direction: column; height: auto; padding: 20px 24px; gap: 20px; }
    nav { margin: 0; display: flex; flex-direction: column; gap: 15px; width: 100%; text-align: center; }
    nav a { margin: 0; }
    .why-container, .contact-unified { padding: 0; border: none; box-shadow: none; background: transparent; }
    .contact-header { padding: 30px 20px; border-radius: 12px; }
    .contact-row-link, .contact-row-info { 
        padding: 20px; 
        background: #fff;
        margin-bottom: 10px;
        border-radius: 8px;
        border: 1px solid var(--border);
    }
    .contact-row-link:hover { padding-left: 20px; }
    .row-action { opacity: 1; transform: none; }
    .grid-3 { grid-template-columns: 1fr; }
    
    /* Sur mobile, on repasse à 1 colonne pour BASIC */
    .values-grid { 
        grid-template-columns: 1fr; 
        max-width: 100%;
    }
    .value-card:last-child:nth-child(odd) {
        grid-column: auto;
        text-align: left;
        max-width: 100%;
        align-items: flex-start;
    }
}

/* 9. FOOTER */
footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-body);
    font-size: 0.9rem;
}
footer p { margin-bottom: 10px; }

#ecoindex-badge {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
