/* ====
   STYLES COMMERCIAUX - SITE DE SERVICES
   version 2.5
   ==== */
:root {
    --primary-color: #0284c7;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --max-width: 1200px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
}
/* En-tête / Navigation responsive */
header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-color);
}
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}
nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--primary-color);
}
/* Section Héro / Présentation Commerciale */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}
.hero p {
    font-size: 1.125rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
}
/* Grille de services (Adaptative PC & Mobile) */
.services {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.hero-desc {
    font-size: 1.125rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}
/* Petits badges modernes pour lister tes spécialités */
.specialites-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}
.specialites-tags span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--dark-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* =================================================_
   SECTION FAQ ACCORDÉON
   ================================================= */
.content-wrapper {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.faq-section h2 {
    text-align: center;
    font-size: 1.875rem;
    color: var(--dark-color, #0f172a);
    margin-bottom: 2rem;
}
.faq-section details {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.faq-section details[open] {
    border-color: var(--primary-color, #0284c7);
    background-color: #f8fafc;
}
.faq-section summary {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark-color, #0f172a);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Supprime la flèche native des détails */
.faq-section summary::-webkit-details-marker {
    display: none;
}
/* Ajoute un marqueur (+) visuel moderne */
.faq-section summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-color, #0284c7);
    margin-left: 1rem;
    transition: transform 0.2s ease;
}
.faq-section details[open] summary::after {
    content: "−";
}
.faq-section details p {
    margin-top: 0.75rem;
    color: var(--gray-color, #64748b);
    line-height: 1.6;
    font-size: 0.95rem;
}
/* =================================================_
   FOOTER / PIED DE PAGE RESPONSIVE
   ================================================= */
footer {
    background-color: var(--dark-color, #0f172a);
    color: #f1f5f9;
    padding-top: 3rem;
    margin-top: 4rem;
}
.footer-container {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
}
.footer-col p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--primary-color, #0284c7);
}
.footer-bottom {
    border-top: 1px solid #334155;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* ---- CTA DES PAGES : une seule règle des bouton CTA pour toutes les pages/ ---- */
.page-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1.5rem 0;
}
/* =================================================_
   MOBILE : UN SEUL BLOC @media (max-width: 768px)
   Doit rester TOUT EN BAS du fichier, après toutes les règles de base.
   ================================================= */
@media (max-width: 768px) {
    /* ---- HEADER / NAVIGATION ---- */
    .nav-container {
        flex-direction: row;               /* logo et menu restent sur une ligne */
        justify-content: space-between;    /* logo à gauche, menu à droite */
        align-items: center;               /* alignement vertical centré */
    }
    /* ---- HERO ---- */
    .hero h1 {
        font-size: 2rem;                   /* titre plus petit sur mobile */
    }
    /* ---- FAQ ---- */
    .faq-section h2 {
        font-size: 1.5rem;                 /* titre de la FAQ réduit */
    }
    .faq-section details {
        padding: 0.875rem 1rem;            /* marges internes réduites */
    }
    .faq-section summary {
        font-size: 0.975rem;               /* texte des questions légèrement réduit */
    }
    /* ---- FOOTER ---- */
    footer {
        padding-top: 2rem;                 /* espace haut du footer réduit */
    }
    .footer-container {
        grid-template-columns: 1fr;        /* colonnes empilées, une seule colonne */
        gap: 1.5rem;                       /* espacement entre colonnes réduit */
    }
    /* ---- CTA DE PAGE ---- */
    .page-cta {
        display: none;                     /* masqué : la barre mobile du footer le remplace */
    }
}

/* Application strictement limitée aux cartes de la section prestations */
/* cible toute les cartes */
/*.services .card {*/
/* Ne cible que les cartes qui possèdent un lien à l'intérieur */
.services .card:has(.card-link) {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.services .card-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.services .card-link {
    color: inherit;
    text-decoration: none;
}
/* =================================================_
   PAGE LÉGALE / POLITIQUE DE CONFIDENTIALITÉ
   ================================================= */
.legal-notice h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.legal-notice p {
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.legal-notice h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-notice ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--gray-color);
}

.legal-notice li {
    margin-bottom: 0.5rem;
}

.legal-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.legal-notice table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-notice th {
    background-color: #f1f5f9;
    text-align: left;
    padding: 12px;
    border: 1px solid #e2e8f0;
    color: var(--dark-color);
    font-weight: 600;
}

.legal-notice td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* =================================================_
   PAGE À PROPOS
   ================================================= */
.about-section h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.about-section ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--gray-color);
}

.about-section li {
    margin-bottom: 0.5rem;
}

.about-phone {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
    text-decoration: none;
}
.about-cta-center {
    text-align: center;
    margin: 1.5rem 0;
}
	/* =================================================_
   PAGE PADEL
   ================================================= */
.padel-section h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.padel-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.padel-section p {
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.padel-section ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--gray-color);
}

.padel-section li {
    margin-bottom: 0.5rem;
}

/* =================================================
   PAGE SOLAIRE
   ================================================= */
.solaire-section h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.solaire-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.solaire-section p {
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.solaire-section ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--gray-color);
}

.solaire-section li {
    margin-bottom: 0.5rem;
}
/* Pages communes (zone_xxx.php) */
.zone-voisines {
    margin-top: 40px;
}
/* Page zones d'intervention (zone_intervention.php) */
.zone-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
}
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0 2rem;
}
.zone-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    /* border-top: 4px solid var(--primary-color);*/
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.zone-card h2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}
.zone-count {
    flex-shrink: 0;
    background: #e0f2fe;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}
.zone-list {
    list-style: none;
    columns: 2;
    column-gap: 1.5rem;
}
.zone-list li {
    break-inside: avoid;
    margin-bottom: 0.4rem;
}
.zone-list a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}
.zone-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.zone-note {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: center;
    color: var(--gray-color);
}