/* =====================================================
   ABC BAT - Optimisation : Sticky CTA, Cookies, Maps
   Charge apres style.css
   ===================================================== */

/* --- Sticky CTA flottant : tel + WhatsApp --- */
.sticky-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sticky-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.sticky-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.sticky-tel {
    background: var(--primary, #1a4971);
}

/* Bouton Devis : pilule orange avec texte sur desktop, icone seule sur mobile */
.sticky-devis {
    background: var(--secondary, #f5a623);
    width: auto;
    padding: 0 22px;
    height: 56px;
    border-radius: 28px;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    transition: opacity 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    animation: pulse-devis 2.6s ease-in-out infinite;
}

.sticky-devis-icon {
    font-size: 16px;
}

@keyframes pulse-devis {
    0%   { box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35); }
    50%  { box-shadow: 0 4px 22px rgba(245, 166, 35, 0.65); }
    100% { box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35); }
}

@media (max-width: 480px) {
    .sticky-buttons { bottom: 16px; right: 16px; gap: 10px; }
    .sticky-btn { width: 52px; height: 52px; font-size: 20px; }
    .sticky-devis {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
    }
    .sticky-devis-text {
        display: none;
    }
    .sticky-devis-icon {
        font-size: 20px;
    }
}

/* --- Banniere cookies RGPD --- */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    padding: 20px 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: slide-up 0.4s ease;
}

@keyframes slide-up {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
    color: #4a4a5a;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.cookie-banner strong {
    color: #1a1a2e;
}

.cookie-banner a {
    color: var(--primary, #1a4971);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cookie-refuse {
    background: transparent;
    color: #6b7280;
    border-color: #e0e0e0;
}

.cookie-refuse:hover {
    background: #f5f5f5;
    color: #1a1a2e;
}

.cookie-accept {
    background: var(--primary, #1a4971);
    color: white;
}

.cookie-accept:hover {
    background: var(--primary-dark, #0f3555);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .cookie-banner { bottom: 8px; left: 8px; right: 8px; padding: 16px; }
    .cookie-actions button { flex: 1; }
}

/* --- Section Google Maps --- */
.contact-map {
    margin-top: 48px;
}

.contact-map iframe {
    display: block;
    width: 100%;
}

/* --- Eviter chevauchement CTA flottant sur mobile --- */
@media (max-width: 768px) {
    body { padding-bottom: 80px; }
    .footer { padding-bottom: 90px; }
}

/* --- Page legales (mentions, RGPD) --- */
.legal-page {
    padding: 140px 0 80px;
    max-width: 820px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 32px;
    color: var(--dark, #1a1a2e);
}

.legal-page h2 {
    font-size: 22px;
    margin: 40px 0 16px;
    color: var(--primary, #1a4971);
}

.legal-page p,
.legal-page ul {
    margin-bottom: 16px;
    color: #4a4a5a;
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 24px;
    list-style: disc;
}

/* --- Page merci (post-soumission formulaire) --- */
.thanks-page {
    padding: 140px 0 100px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.thanks-icon {
    font-size: 88px;
    color: #25D366;
    margin-bottom: 24px;
    animation: pop-in 0.5s ease-out;
}

@keyframes pop-in {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.thanks-page h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.thanks-lead {
    font-size: 18px;
    color: var(--grey-dark, #4a4a5a);
    line-height: 1.6;
    margin-bottom: 40px;
}

.thanks-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.thanks-direct {
    background: var(--grey-light, #f7f8fa);
    padding: 32px 24px;
    border-radius: 16px;
}

.thanks-direct p {
    margin-bottom: 16px;
    color: var(--grey-dark, #4a4a5a);
}

.thanks-tel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary, #1a4971);
    text-decoration: none;
}

.thanks-tel:hover {
    color: var(--primary-dark, #0f3555);
}

/* --- Champs RGPD / honeypot --- */
.form-consent {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
    color: var(--grey-dark, #4a4a5a);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary, #1a4971);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checkbox-label a {
    color: var(--primary, #1a4971);
    text-decoration: underline;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .thanks-page h1 { font-size: 32px; }
    .thanks-lead { font-size: 16px; }
    .thanks-tel { font-size: 22px; }
}

/* --- FAQ accordion (native <details>) --- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(26, 73, 113, 0.08);
    box-shadow: 0 2px 8px rgba(26, 73, 113, 0.04);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 18px rgba(26, 73, 113, 0.08);
    border-color: rgba(26, 73, 113, 0.18);
}

.faq-item[open] {
    box-shadow: 0 8px 24px rgba(26, 73, 113, 0.10);
    border-color: rgba(26, 73, 113, 0.22);
}

.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    position: relative;
    user-select: none;
}

.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #1a4971;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] > summary::after {
    content: "−";
    transform: translateY(-50%) rotate(0deg);
}

.faq-item > p {
    margin: 0;
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.65;
    color: #4a4a5a;
}

.faq-item > p strong {
    color: #1a4971;
    font-weight: 600;
}

@media (max-width: 600px) {
    .faq-item > summary { font-size: 15px; padding: 18px 48px 18px 18px; }
    .faq-item > summary::after { right: 18px; }
    .faq-item > p { padding: 0 18px 18px; font-size: 14px; }
}

/* =====================================================
   Pages SEO localisees (/services/)
   ===================================================== */

.breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: #1a4971;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover { text-decoration: underline; }

.article-header .article-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #4a4a5a;
    margin: 16px 0 24px;
    max-width: 760px;
}

.article-header .article-lead strong {
    color: #1a1a2e;
    font-weight: 600;
}

.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.article-container section {
    margin: 48px 0;
}

.article-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #1a1a2e;
    margin: 0 0 16px;
    line-height: 1.25;
}

.article-container h3 {
    font-size: 18px;
    color: #1a4971;
    margin: 0 0 12px;
    font-weight: 600;
}

.article-container p {
    font-size: 17px;
    line-height: 1.7;
    color: #3a3a4a;
    margin: 0 0 16px;
}

.article-container p strong {
    color: #1a1a2e;
    font-weight: 600;
}

.article-container a {
    color: #1a4971;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-container a:hover { color: #f5a623; }

/* --- Listes services / process / zones --- */
.service-detail-list,
.zones-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.service-detail-list li,
.zones-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid #eef0f4;
    font-size: 16px;
    line-height: 1.5;
    color: #3a3a4a;
}

.service-detail-list li::before,
.zones-list li::before {
    content: "\f00c"; /* check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: #1a4971;
    font-size: 14px;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: process;
}

.process-list li {
    position: relative;
    padding: 16px 16px 16px 60px;
    margin-bottom: 12px;
    background: #f7f8fa;
    border-left: 3px solid #1a4971;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #3a3a4a;
    counter-increment: process;
}

.process-list li::before {
    content: counter(process);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 32px;
    height: 32px;
    background: #1a4971;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.process-list li strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* --- Tableau de prix --- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.price-card {
    background: #fff;
    border: 1px solid rgba(26, 73, 113, 0.12);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(26, 73, 113, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.price-card:hover {
    box-shadow: 0 8px 24px rgba(26, 73, 113, 0.10);
    transform: translateY(-2px);
}

.price-card h3 {
    font-size: 16px;
    color: #1a4971;
    margin: 0 0 8px;
    font-weight: 700;
}

.price-card .price-range {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #f5a623;
    margin: 0 0 16px;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-card ul li {
    padding: 6px 0 6px 22px;
    font-size: 14px;
    color: #4a4a5a;
    position: relative;
    line-height: 1.4;
}

.price-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 7px;
    color: #1a4971;
    font-size: 11px;
}

/* --- CTA section --- */
.cta-section {
    background: linear-gradient(135deg, #1a4971 0%, #0f3555 100%);
    color: #fff;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0 0;
}

.cta-section h2 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 26px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin: 0 0 24px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cta-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 600px) {
    .article-container { padding: 24px 16px 48px; }
    .article-container h2 { font-size: 24px; }
    .article-container p { font-size: 16px; }
    .process-list li { padding: 14px 14px 14px 54px; font-size: 15px; }
    .cta-section { padding: 32px 20px; }
    .cta-section h2 { font-size: 22px; }
}
