/**
 * Styles publics - Site GMB Leads
 * Les couleurs sont définies via les CSS variables du thème
 */

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--color-text, #1a1a2e);
    background-color: var(--color-background, #ffffff);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-link, #4361ee);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover, #3a0ca3);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    background-color: var(--color-header-bg, #1a1a2e);
    color: var(--color-header-text, #ffffff);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-header-text, #ffffff);
}

.site-logo:hover {
    color: var(--color-header-text, #ffffff);
    opacity: 0.9;
}

.main-nav a {
    color: var(--color-header-text, #ffffff);
    margin-left: 30px;
    font-weight: 500;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--color-header-bg, #1a1a2e) 0%, var(--color-button-bg, #4361ee) 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Page header */
.page-header {
    background-color: var(--color-background-alt, #f8f9fa);
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border, #dee2e6);
}

.page-header h1 {
    font-size: 2rem;
    color: var(--color-text, #1a1a2e);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
}

.breadcrumb a {
    color: var(--color-link, #4361ee);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Breadcrumb bar (séparé du hero) */
.breadcrumb-bar {
    background-color: var(--color-background-alt, #f8f9fa);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border, #dee2e6);
}

.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
}

/* Content grid */
.page-content {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.main-column {
    min-width: 0;
}

.sidebar-column {
    min-width: 0;
}

.content-full {
    max-width: 1100px;
    margin: 0 auto;
}

.content-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text, #1a1a2e);
    line-height: 1.8;
}

/* Titres dans le contenu */
.content-text h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-button-bg, #4361ee);
}

.content-text h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-button-bg, #4361ee);
    border-radius: 50%;
    flex-shrink: 0;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--color-button-bg, #4361ee);
}

/* Paragraphes */
.content-text p {
    margin-bottom: 18px;
    text-align: justify;
}

.content-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--color-text, #1a1a2e);
}

/* Listes stylisées */
.content-text ul {
    list-style: none;
    margin: 25px 0;
    padding-left: 0;
}

.content-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--color-button-bg, #4361ee);
    border-radius: 50%;
}

/* Listes numérotées */
.content-text ol {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    counter-reset: step-counter;
}

.content-text ol li {
    position: relative;
    padding: 15px 15px 15px 55px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 8px;
    margin-bottom: 10px;
    counter-increment: step-counter;
}

.content-text ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-button-bg, #4361ee) 0%, var(--color-button-hover, #3a0ca3) 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Liens dans le contenu */
.content-text a {
    color: var(--color-link, #4361ee);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.content-text a:hover {
    color: var(--color-link-hover, #3a0ca3);
}

/* Citation / mise en valeur */
.content-text blockquote,
.content-text .highlight {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(67, 97, 238, 0.03) 100%);
    border-left: 5px solid var(--color-button-bg, #4361ee);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--color-text, #1a1a2e);
}

.content-text blockquote p:last-child,
.content-text .highlight p:last-child {
    margin-bottom: 0;
}

/* Strong / emphase */
.content-text strong {
    color: var(--color-text, #1a1a2e);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .content-text {
        font-size: 1rem;
    }

    .content-text h2 {
        font-size: 1.3rem;
    }

    .content-text h3 {
        font-size: 1.1rem;
    }

    .content-text p {
        text-align: left;
    }
}

/* Départements grid */
.departements-list {
    padding: 60px 0;
    background-color: var(--color-background-alt, #f8f9fa);
}

.departements-list h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text, #1a1a2e);
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.dept-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.dept-code {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-button-bg, #4361ee);
}

.dept-name {
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin: 8px 0;
}

.dept-villes {
    font-size: 0.85rem;
    color: var(--color-text-muted, #6c757d);
}

/* Villes grid (page accueil mode GMB) */
.ville-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.ville-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ville-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.ville-name {
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    font-size: 1rem;
}

.ville-dept {
    font-size: 0.85rem;
    color: var(--color-text-muted, #6c757d);
    margin-top: 4px;
}

/* Villes list */
.villes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ville-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.ville-link:hover {
    background-color: var(--color-button-bg, #4361ee);
    color: #ffffff;
}

.ville-cp {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Ville infos */
.ville-infos {
    margin-top: 40px;
}

.ville-infos h2 {
    margin-bottom: 20px;
    color: var(--color-text, #1a1a2e);
}

.info-list {
    list-style: none;
    background: var(--color-background-alt, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border, #dee2e6);
}

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

/* Partenaires */
.partenaires-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-background-alt, #f8f9fa) 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid var(--color-border, #dee2e6);
}

.partenaires-section h2 {
    margin-bottom: 25px;
    color: var(--color-text, #1a1a2e);
}

.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.partenaire-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partenaire-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.partenaire-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.partenaire-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.partenaire-info {
    flex: 1;
    min-width: 0;
}

.partenaire-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 8px;
}

.partenaire-description {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 12px;
    line-height: 1.5;
}

.partenaire-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.partenaire-phone,
.partenaire-email {
    font-size: 0.85rem;
    color: var(--color-link, #4361ee);
}

.partenaire-phone:hover,
.partenaire-email:hover {
    text-decoration: underline;
}

.partenaire-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.partenaire-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .partenaire-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .partenaire-contact {
        justify-content: center;
    }

    .partenaire-actions {
        justify-content: center;
    }
}

/* Google Map */
.google-map {
    margin: 40px 0;
}

.google-map h2 {
    margin-bottom: 20px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Partenaires box */
.partenaires-box {
    background: var(--color-background-alt, #f8f9fa);
    padding: 25px;
    border-radius: 8px;
}

.partenaires-box h3 {
    margin-bottom: 20px;
    color: var(--color-text, #1a1a2e);
}

.partenaire-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.partenaire-card:last-child {
    margin-bottom: 0;
}

.partenaire-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.partenaire-card h4 {
    margin-bottom: 10px;
    color: var(--color-text, #1a1a2e);
}

.partenaire-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 15px;
}

/* Contact box */
.contact-box {
    background: linear-gradient(135deg, var(--color-header-bg, #1a1a2e) 0%, var(--color-button-bg, #4361ee) 100%);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.contact-box h3 {
    margin-bottom: 10px;
}

.contact-box p {
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-button-bg, #4361ee);
    color: var(--color-button-text, #ffffff);
}

.btn-primary:hover {
    background-color: var(--color-button-hover, #3a0ca3);
    color: var(--color-button-text, #ffffff);
}

.btn-secondary {
    background-color: var(--color-secondary, #6c757d);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--color-secondary, #545b62);
    filter: brightness(0.85);
    color: #ffffff;
}

/* SEO Content (bas de page) */
.seo-content {
    padding: 60px 0;
    background-color: var(--color-background, #ffffff);
    border-top: 1px solid var(--color-border, #dee2e6);
}

.seo-text {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text, #1a1a2e);
    font-size: 1rem;
    line-height: 1.8;
}

.seo-text h2 {
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-text, #1a1a2e);
}

.seo-text h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--color-text, #1a1a2e);
}

.seo-text p {
    margin-bottom: 15px;
}

.seo-text ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.seo-text ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.seo-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.seo-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--color-button-bg, #4361ee);
    border-radius: 50%;
}

.seo-text ol li {
    margin-bottom: 10px;
}

.seo-text a {
    color: var(--color-link, #4361ee);
    text-decoration: underline;
}

.seo-text a:hover {
    color: var(--color-link-hover, #3a0ca3);
}

/* Footer */
.site-footer {
    background-color: var(--color-footer-bg, #1a1a2e);
    color: var(--color-footer-text, #ffffff);
    padding: 30px 0;
    margin-top: 60px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--color-footer-text, #ffffff);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-footer-text, #ffffff);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Error page */
.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--color-button-bg, #4361ee);
    margin-bottom: 10px;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-text, #1a1a2e);
}

.error-content p {
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 30px;
}

/* ===========================================
   Entreprises GMB / Fiches locales
   =========================================== */

.entreprises-gmb {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border, #dee2e6);
}

.entreprises-gmb h2 {
    margin-bottom: 30px;
    color: var(--color-text, #1a1a2e);
    font-size: 1.5rem;
}

.gmb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gmb-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gmb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gmb-logo {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: var(--color-background-alt, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmb-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmb-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gmb-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 10px;
    line-height: 1.3;
}

.gmb-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gmb-stars {
    display: inline-flex;
    align-items: center;
}

.gmb-stars .star {
    font-size: 1rem;
    line-height: 1;
}

.gmb-stars .star.full {
    color: #f59e0b;
}

.gmb-stars .star.half {
    color: #f59e0b;
    opacity: 0.6;
}

.gmb-stars .star.empty {
    color: #d1d5db;
}

.gmb-note {
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    font-size: 0.95rem;
}

.gmb-avis-count {
    font-size: 0.85rem;
    color: var(--color-text-muted, #6c757d);
}

.gmb-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 6px;
    width: fit-content;
}

.gmb-city {
    display: block;
    font-size: 0.85rem;
    color: var(--color-link, #4361ee);
    margin-bottom: 10px;
}

.gmb-address {
    font-size: 0.85rem;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 8px;
    line-height: 1.4;
}

.gmb-phone {
    margin-bottom: 10px;
}

.gmb-phone a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-link, #4361ee);
}

.gmb-phone a:hover {
    text-decoration: underline;
}

/* Horaires et statut ouvert/fermé */
.gmb-horaires {
    margin-bottom: 12px;
    padding: 10px 12px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 8px;
    overflow: hidden;
}

.gmb-horaires-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border, #dee2e6);
}

.gmb-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gmb-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.gmb-status.status-open {
    background-color: #dcfce7;
    color: #166534;
}

.gmb-status.status-open::before {
    background-color: #22c55e;
}

.gmb-status.status-closed {
    background-color: #fee2e2;
    color: #dc2626;
}

.gmb-status.status-closed::before {
    background-color: #ef4444;
}

/* Tableau des horaires */
.gmb-schedule {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 12px;
}

.gmb-schedule-row {
    display: contents;
}

.gmb-schedule-day {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 2px 0;
    font-size: 0.72rem;
    min-width: 0;
}

.gmb-schedule-day.is-today {
    font-weight: 600;
}

.gmb-schedule-day .day-name {
    color: var(--color-text-muted, #6c757d);
    min-width: 28px;
    flex-shrink: 0;
}

.gmb-schedule-day.is-today .day-name {
    color: var(--color-text, #1a1a2e);
}

.gmb-schedule-day .day-hours {
    color: var(--color-text, #1a1a2e);
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gmb-schedule-day .day-hours.closed {
    color: #dc2626;
}

.gmb-review {
    margin-top: auto;
    padding: 12px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 6px;
    border-left: 3px solid var(--color-button-bg, #4361ee);
}

.gmb-review p {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-muted, #6c757d);
    margin-bottom: 6px;
    line-height: 1.5;
}

.gmb-review cite {
    font-size: 0.8rem;
    color: var(--color-text-muted, #9ca3af);
    font-style: normal;
}

.gmb-actions {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border, #dee2e6);
    display: flex;
    gap: 10px;
}

.gmb-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        order: -1;
    }

    .gmb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .dept-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .ville-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .page-content {
        padding: 30px 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav a {
        margin-left: 15px;
        margin-right: 15px;
    }

    .gmb-grid {
        grid-template-columns: 1fr;
    }

    .gmb-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .gmb-schedule {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .gmb-actions {
        flex-direction: column;
    }

    .gmb-actions .btn {
        width: 100%;
    }
}

/* ===========================================
   Maillage interne - Liens internes SEO
   =========================================== */

.maillage-section {
    padding: 50px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--color-border, #dee2e6);
}

/* Grille de maillage */
.maillage-grid {
    display: grid;
    gap: 40px;
}

.maillage-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.maillage-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Blocs de maillage */
.maillage-block {
    padding: 0;
}

.maillage-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
}

.maillage-icon {
    color: #ffc107;
    font-size: 1.2rem;
}

/* Liste de liens (style texte) */
.maillage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maillage-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.maillage-list a {
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.maillage-list a:hover {
    color: var(--color-button-bg, #4361ee);
    text-decoration: underline;
}

.maillage-distance {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Tags (style boutons arrondis) */
.maillage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.maillage-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    border-radius: 25px;
    color: var(--color-text, #1a1a2e);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--color-border, #dee2e6);
}

.maillage-tag:hover {
    background-color: var(--color-button-bg, #4361ee);
    color: #ffffff;
    border-color: var(--color-button-bg, #4361ee);
}

/* Liens en grille (style pills) - pour page ville */
.maillage-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.maillage-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 20px;
    color: var(--color-text, #1a1a2e);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--color-border, #dee2e6);
}

.maillage-link:hover {
    background-color: var(--color-button-bg, #4361ee);
    color: #ffffff;
    border-color: var(--color-button-bg, #4361ee);
}

.maillage-link span {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 3px;
}

.maillage-link:hover span {
    opacity: 0.9;
}

/* Responsive maillage */
@media (max-width: 992px) {
    .maillage-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .maillage-section {
        padding: 40px 0;
    }

    .maillage-grid,
    .maillage-grid-3,
    .maillage-grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .maillage-block h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .maillage-list a {
        font-size: 0.9rem;
    }

    .maillage-tags {
        gap: 8px;
    }

    .maillage-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .maillage-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ===========================================
   Hero Professionnel avec Formulaire
   =========================================== */

.hero-pro {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    padding: 60px 0;
}

/* Conteneur pour scripts partenaires (formulaires externes) */
.partner-form-container {
    width: 600px;
    max-width: 100%;
    min-height: 450px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Laisser le widget externe gérer sa propre taille et style */
.partner-form-container > div,
.partner-form-container > script + div {
    width: 100% !important;
    max-width: 600px !important;
}

.partner-form-container iframe {
    width: 100% !important;
    max-width: 600px !important;
    min-height: 450px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive partner form - Tablette */
@media (max-width: 992px) {
    .partner-form-container {
        width: 100%;
        max-width: 500px;
        min-height: 400px;
    }

    .partner-form-container > div,
    .partner-form-container > script + div,
    .partner-form-container iframe {
        max-width: 100% !important;
    }
}

/* Responsive partner form - Mobile */
@media (max-width: 768px) {
    .partner-form-container {
        width: 100%;
        max-width: 100%;
        min-height: 350px;
        padding: 0 10px;
    }

    .partner-form-container iframe {
        min-height: 400px;
        border-radius: 8px;
    }
}

/* Responsive partner form - Petit mobile */
@media (max-width: 480px) {
    .partner-form-container {
        padding: 0 5px;
        min-height: 300px;
    }

    .partner-form-container iframe {
        min-height: 380px;
    }
}

/* Loading indicator pour le widget */
.widget-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #ffffff;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.widget-loading p {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cacher le loading une fois le widget chargé */
.partner-form-container.widget-loaded .widget-loading {
    display: none;
}

.hero-pro.hero-gradient {
    background: linear-gradient(135deg, var(--color-header-bg, #1a1a2e) 0%, var(--color-button-bg, #4361ee) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.hero-pro .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 50px;
    align-items: center;
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr 500px;
        gap: 30px;
    }
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: 1fr 450px;
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Contenu hero (gauche) */
.hero-content {
    color: #ffffff;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
    max-width: 550px;
}

/* Liste des points forts avec checkmarks */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-features .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Carte formulaire (droite) */
.hero-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    overflow: visible;
    height: auto;
}

.hero-form-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 8px;
    text-align: center;
}

.hero-form-card .form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted, #6c757d);
    text-align: center;
    margin-bottom: 25px;
}

/* Formulaire exemple (si pas de script partenaire) */
.hero-form-example .form-group {
    margin-bottom: 18px;
}

.hero-form-example label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 6px;
}

.hero-form-example input,
.hero-form-example textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-form-example input:focus,
.hero-form-example textarea:focus {
    outline: none;
    border-color: var(--color-button-bg, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.hero-form-example .btn-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--color-button-bg, #4361ee);
    color: var(--color-button-text, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.hero-form-example .btn-submit:hover {
    background-color: var(--color-button-hover, #3a0ca3);
}

.hero-form-example .btn-submit:active {
    transform: scale(0.98);
}

/* Le widget externe gère maintenant son propre style */

/* CTA supplémentaire sous le hero */
.hero-cta-bar {
    background-color: var(--color-button-bg, #4361ee);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.hero-cta-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-cta-bar .cta-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-cta-bar .cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-cta-bar .cta-phone:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Responsive Hero - Tablette */
@media (max-width: 900px) {
    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        display: inline-block;
        text-align: left;
    }

    .hero-form-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .partner-form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Responsive Hero - Mobile */
@media (max-width: 768px) {
    .hero-pro {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-grid {
        gap: 25px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-intro {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-features li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .hero-features .check {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    .hero-form-card {
        padding: 20px;
        max-width: 100%;
    }

    .hero-form-card h3 {
        font-size: 1.1rem;
    }

    .partner-form-container {
        max-width: 100%;
    }
}

/* Responsive Hero - Petit mobile */
@media (max-width: 480px) {
    .hero-pro {
        padding: 30px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-intro {
        font-size: 0.9rem;
    }

    .hero-features li {
        font-size: 0.9rem;
        gap: 8px;
    }

    .hero-form-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .hero-cta-bar .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===========================================
   Contenu structuré avec encadrés
   =========================================== */

.content-highlight-box {
    background: linear-gradient(135deg, var(--color-background-alt, #f8f9fa) 0%, #ffffff 100%);
    border-left: 4px solid var(--color-button-bg, #4361ee);
    border-radius: 8px;
    padding: 25px 30px;
    margin: 30px 0;
}

.content-highlight-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 15px;
}

.content-highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-highlight-box ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.content-highlight-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* Info boxes colorées */
.info-box {
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-box-content p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

.info-box.info-box-primary {
    background-color: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    color: var(--color-text, #1a1a2e);
}

.info-box.info-box-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--color-text, #1a1a2e);
}

.info-box.info-box-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--color-text, #1a1a2e);
}

/* ===========================================
   Pages légales (mentions légales, etc.)
   =========================================== */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-button-bg, #4361ee);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--color-text, #1a1a2e);
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-content ul li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--color-link, #4361ee);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-date {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, #dee2e6);
    color: var(--color-text-muted, #6c757d);
    font-size: 0.9rem;
}

/* ===========================================
   Encadré d'introduction
   =========================================== */

.intro-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px 35px;
    background: linear-gradient(135deg, var(--color-button-bg, #4361ee) 0%, var(--color-button-hover, #3a0ca3) 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
    color: #ffffff;
}

.intro-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    flex-shrink: 0;
}

.intro-box-content {
    flex: 1;
}

.intro-box-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
    border: none;
    padding: 0;
}

.intro-box-content h2::before {
    display: none;
}

.intro-box-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .intro-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }

    .intro-box-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .intro-box-content h2 {
        font-size: 1.3rem;
    }

    .intro-box-content p {
        font-size: 1rem;
    }
}

/* ===========================================
   CTA Buttons - Demande de devis
   =========================================== */

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-button-bg, #4361ee) 0%, var(--color-button-hover, #3a0ca3) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.5);
    color: #ffffff;
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta .cta-icon {
    font-size: 1.2rem;
}

/* CTA dans le contenu */
.content-cta {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--color-background-alt, #f8f9fa) 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 40px 0;
    border: 1px solid var(--color-border, #dee2e6);
}

.content-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 20px;
}

/* ===========================================
   Barre CTA Sticky Mobile
   =========================================== */

.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-button-bg, #4361ee) 0%, var(--color-button-hover, #3a0ca3) 100%);
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.sticky-cta-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sticky-cta-bar .btn-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    padding: 14px 25px;
    background-color: #ffffff;
    color: var(--color-button-bg, #4361ee);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sticky-cta-bar .btn-sticky-cta:hover {
    background-color: #f8f9fa;
    color: var(--color-button-bg, #4361ee);
}

.sticky-cta-bar .btn-sticky-cta .icon {
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .sticky-cta-bar {
        display: block;
    }
}

/* Padding au body sur mobile pour les barres sticky (notre barre OU widget externe) */
@media (max-width: 900px) {
    body {
        padding-bottom: 70px;
    }
}

/* ===========================================
   Badges de Réassurance
   =========================================== */

.reassurance-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    background-color: var(--color-background-alt, #f8f9fa);
    border-bottom: 1px solid var(--color-border, #dee2e6);
}

.reassurance-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.reassurance-badge .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.2rem;
}

.reassurance-badge .badge-text {
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    font-size: 0.95rem;
}

/* Badges dans le hero (version compacte) */
.hero-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.hero-reassurance .mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.hero-reassurance .mini-badge .icon {
    color: #22c55e;
}

@media (max-width: 768px) {
    .reassurance-badges {
        gap: 12px;
        padding: 20px 15px;
    }

    .reassurance-badge {
        padding: 12px 18px;
        flex: 1 1 calc(50% - 6px);
        min-width: 150px;
    }

    .reassurance-badge .badge-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .reassurance-badge .badge-text {
        font-size: 0.85rem;
    }

    .hero-reassurance {
        justify-content: center;
    }

    .hero-reassurance .mini-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* ===========================================
   Contenu Texte Amélioré
   =========================================== */

/* Section services avec checkmarks */
.services-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background-color: var(--color-background-alt, #f8f9fa);
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.services-list li:hover {
    transform: translateX(5px);
}

.services-list .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.services-list .service-text {
    font-weight: 500;
    color: var(--color-text, #1a1a2e);
    line-height: 1.4;
}

/* Bloc avantages avec icônes */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.advantage-card .advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-button-bg, #4361ee) 0%, var(--color-button-hover, #3a0ca3) 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.advantage-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted, #6c757d);
    line-height: 1.5;
    margin: 0;
}

/* Encadré témoignage/confiance */
.trust-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(67, 97, 238, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(67, 97, 238, 0.15);
    margin: 30px 0;
}

.trust-box .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-button-bg, #4361ee);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.trust-box .trust-content {
    flex: 1;
}

.trust-box .trust-content strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 5px;
}

.trust-box .trust-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted, #6c757d);
    margin: 0;
}

/* Sous-titre visuel */
.visual-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
}

.visual-subtitle::before {
    content: '';
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, var(--color-button-bg, #4361ee) 0%, var(--color-button-hover, #3a0ca3) 100%);
    border-radius: 3px;
}

/* Responsive contenu */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .advantage-card {
        padding: 25px 20px;
    }

    .trust-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .visual-subtitle {
        font-size: 1.15rem;
    }
}

/* ===========================================
   Bouton Flottant Formulaire
   =========================================== */

.floating-form-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* S'assurer que les iframes/widgets du bouton flottant s'intègrent bien */
.floating-form-button iframe,
.floating-form-button > div {
    max-width: 100%;
}

/* Le floating est visible sur tous les appareils (desktop + mobile) */

/* ===========================================
   Modals/Popups des scripts externes (agrandis sur desktop)
   =========================================== */

/* Cibler les iframes de formulaires en modal/popup */
@media (min-width: 768px) {
    /* Styles génériques pour les popups/modals externes */
    body > iframe[style*="position: fixed"],
    body > div[style*="position: fixed"] iframe,
    [class*="modal"] iframe,
    [class*="popup"] iframe,
    [id*="modal"] iframe,
    [id*="popup"] iframe {
        min-width: 600px !important;
        min-height: 700px !important;
        max-width: 90vw !important;
        max-height: 90vh !important;
    }

    /* Pour les conteneurs de modal */
    body > div[style*="position: fixed"][style*="z-index"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body > div[style*="position: fixed"][style*="z-index"] > div,
    body > div[style*="position: fixed"][style*="z-index"] > iframe {
        min-width: 550px !important;
        min-height: 650px !important;
    }
}

/* Sur très grand écran, encore plus grand */
@media (min-width: 1200px) {
    body > iframe[style*="position: fixed"],
    body > div[style*="position: fixed"] iframe {
        min-width: 700px !important;
        min-height: 800px !important;
    }
}

/* ===========================================
   Widgets sur mobile (≤900px)
   Sur mobile : seulement le floating
   Sur tablette/desktop : inline + floating
   =========================================== */

@media (max-width: 900px) {
    /* Cacher le widget inline sur mobile */
    .partner-form-container {
        display: none !important;
    }
}

/* ===========================================
   Modal Widget Mobile
   =========================================== */

.widget-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widget-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.widget-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.widget-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.widget-modal.active .widget-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.widget-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.widget-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.widget-modal-body {
    padding: 15px;
    padding-top: 50px; /* Espace pour le bouton fermer */
    max-height: 90vh;
    overflow-y: auto;
    min-height: 400px;
}

.widget-modal-body > div,
.widget-modal-body > script + div {
    width: 100% !important;
    min-height: 450px;
}

.widget-modal-body iframe {
    width: 100% !important;
    min-height: 500px;
    border: none;
}

/* Responsive modal */
@media (max-width: 480px) {
    .widget-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .widget-modal-body {
        max-height: calc(100vh - 50px);
        padding: 10px;
    }

    .widget-modal-close {
        top: 5px;
        right: 5px;
    }
}

/* Bouton sticky en mode bouton */
.sticky-cta-bar .btn-sticky-cta {
    border: none;
    cursor: pointer;
}

/* S'assurer que les widgets sticky externes ont un z-index élevé */
body > div[style*="position: fixed"],
body > div[style*="position:fixed"] {
    z-index: 9999 !important;
}

/* Wrapper pour le script sticky */
.sticky-script-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
}

.sticky-script-wrapper > *,
.sticky-script-wrapper button,
.sticky-script-wrapper a,
.sticky-script-wrapper div {
    max-width: 350px;
}

/* S'assurer que les iframes et boutons du script sont visibles */
.sticky-cta-bar .container iframe,
.sticky-cta-bar .container button,
.sticky-cta-bar .container a {
    max-width: 100%;
}

