/* ==========================================
   pages.css — styles des pages intérieures (FAQ, gazon, communes)
   Complète style.css sans le modifier.
   Couleurs reprises du site : vert #2C4A3F, sable #C8A882, fond #F5F3EF
   ========================================== */

:root {
    --ap-vert: #2C4A3F;
    --ap-sable: #C8A882;
    --ap-fond: #F5F3EF;
    --ap-texte: #333;
}

/* ---------- En-tête de page ---------- */
.page-hero {
    background: var(--ap-vert);
    color: #fff;
    padding: 150px 0 60px; /* laisse la place à la barre de navigation fixe */
}
.page-hero .container { max-width: 900px; }
.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
    margin: .4rem 0 1rem;
    color: #fff;
}
.page-hero .section-tag { color: var(--ap-sable); }
.page-hero-sub {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 640px;
    margin: 0;
}
.breadcrumb {
    font-size: .9rem;
    margin-bottom: 1.2rem;
    opacity: .85;
}
.breadcrumb a { color: var(--ap-sable); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Contenu ---------- */
.page-content {
    background: var(--ap-fond);
    padding: 60px 0 70px;
    color: var(--ap-texte);
    line-height: 1.7;
}
.container.narrow { max-width: 860px; }
.page-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 600;
    color: var(--ap-vert);
    margin: 2.6rem 0 1rem;
    line-height: 1.2;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin: 0 0 1rem; }
.page-content a { color: var(--ap-vert); text-decoration: underline; text-decoration-color: var(--ap-sable); text-underline-offset: 3px; }
.page-content a:hover { color: #1d332b; }
.page-content .lead { font-size: 1.15rem; }

/* ---------- FAQ (questions dépliables) ---------- */
.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin: 0 0 12px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-weight: 700;
    color: var(--ap-vert);
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ap-sable);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 22px 8px; }
.faq-more { margin-top: 2rem; font-style: italic; }

/* ---------- Tableau comparatif ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.compare {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    font-size: .97rem;
}
.compare th, .compare td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ece7df;
}
.compare thead th { background: var(--ap-vert); color: #fff; }
.compare tbody th { color: var(--ap-vert); white-space: nowrap; }

.encart {
    background: #fff;
    border-left: 4px solid var(--ap-sable);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1rem 0;
}

/* ---------- Listes ---------- */
.steps-list { padding-left: 1.3rem; }
.steps-list li { margin-bottom: .7rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ap-sable); font-weight: 900; }

/* Avis sur page commune */
.page-content .avis-card { max-width: 560px; }

/* ---------- Appel à l'action ---------- */
.page-cta {
    background: var(--ap-vert);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.page-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    margin: 0 0 .6rem;
    color: #fff;
}
.page-cta p { opacity: .85; margin: 0 0 1.6rem; }
.page-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}
.btn-outline-light:hover { background: #fff; color: var(--ap-vert); }

/* ---------- Bouton WhatsApp (copié de l'accueil) ---------- */
.whatsapp-button {
    position: fixed; bottom: 20px; right: 20px;
    width: 60px; height: 60px;
    background-color: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,.4);
    z-index: 999; transition: all .3s ease;
}
.whatsapp-button:hover { background-color: #20ba5a; transform: scale(1.1); }

/* ---------- Bannière cookies (copiée de l'accueil) ---------- */
.cookie-banner {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(44,74,63,.95); color: #fff;
    padding: 20px; z-index: 998;
    box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-content p { margin: 0; flex: 1; }
.cookie-buttons { display: flex; gap: 10px; }
.btn-accept, .btn-decline { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-accept { background: #25D366; color: #fff; }
.btn-decline { background: rgba(255,255,255,.2); color: #fff; }

@media (max-width: 768px) {
    .page-hero { padding: 120px 0 44px; }
    .page-content { padding: 44px 0 56px; }
    .whatsapp-button { width: 55px; height: 55px; bottom: 15px; right: 15px; }
    .cookie-content { flex-direction: column; align-items: flex-start; }
    .cookie-buttons { width: 100%; }
    .btn-accept, .btn-decline { flex: 1; }
}
