/* ==========================================================================
   PAGE MAIRIES & COLLECTIVITÉS
   Palette : --blue (#1AB4BA) / --warm-green (#B2CF61) / --black (#1E2226)
   ========================================================================== */

.page-collectivites {
    --coll-ink: #1E2226;
    --coll-ink-soft: #4d565e;
    --coll-line: #e6eaed;
    --coll-radius: 16px;
    --coll-shadow: 0 6px 24px rgba(30, 34, 38, 0.07);
    --coll-shadow-hover: 0 12px 32px rgba(30, 34, 38, 0.13);
}

.coll-container {
    width: 1180px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.coll-section {
    padding: 64px 0;
}

.coll-section.is-tinted {
    background-color: var(--off-white);
}

.coll-section.is-blue-tint {
    background-color: var(--blue-light);
}

/* Titre de section : centré + filet d'accent, pas de bande pleine largeur */
.coll-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.coll-head h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--coll-ink);
    margin: 0;
}

.coll-head h2 em {
    font-style: normal;
    color: var(--blue);
}

.coll-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--blue), var(--warm-green));
}

.coll-head p {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--coll-ink-soft);
}

@media (min-width: 1024px) {
    .coll-section { padding: 88px 0; }
    .coll-head h2 { font-size: 40px; }
    .coll-head p { font-size: 19px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.coll-hero {
    position: relative;
    overflow: hidden;
    background-color: #0f3f47;
}

.coll-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.coll-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(12, 40, 46, 0.92) 0%, rgba(12, 40, 46, 0.80) 42%, rgba(12, 40, 46, 0.35) 100%),
        linear-gradient(0deg, rgba(12, 40, 46, 0.55) 0%, rgba(12, 40, 46, 0) 45%);
}

.coll-hero-inner {
    position: relative;
    z-index: 2;
    width: 1180px;
    max-width: 100%;
    margin: 0 auto;
    padding: 64px 24px 56px;
}

.coll-hero-content {
    max-width: 660px;
    color: #fff;
}

.coll-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.coll-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warm-green);
}

.coll-hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.coll-hero h1 .accent {
    color: var(--warm-green);
}

.coll-hero-sub {
    font-size: 17px;
    line-height: 1.65;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin-bottom: 28px;
}

.coll-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.coll-btn {
    display: inline-block;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.coll-btn-primary {
    background-color: var(--blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 180, 186, 0.35);
}

.coll-btn-primary:hover {
    background-color: var(--warm-green);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(178, 207, 97, 0.4);
}

.coll-btn-ghost {
    background-color: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.coll-btn-ghost:hover {
    background-color: #fff;
    color: var(--coll-ink);
    transform: translateY(-2px);
}

.coll-btn-dark {
    background-color: var(--coll-ink);
    color: #fff;
}

.coll-btn-dark:hover {
    background-color: var(--blue);
    transform: translateY(-2px);
}

.coll-hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    border-left: 3px solid var(--warm-green);
    padding-left: 14px;
    max-width: 470px;
}

.coll-hero-trust strong {
    color: #fff;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .coll-hero-inner { padding: 104px 24px 88px; }
    .coll-hero-sub { font-size: 19px; }
}

@media (max-width: 780px) {
    .coll-hero::after {
        background:
            linear-gradient(180deg, rgba(12, 40, 46, 0.78) 0%, rgba(12, 40, 46, 0.92) 100%);
    }
    .coll-hero-inner { padding: 48px 20px 44px; }
    .coll-hero-cta .coll-btn { flex: 1 1 100%; text-align: center; }
}

/* ==========================================================================
   REPÈRES CLÉS (bandeau sous le hero)
   ========================================================================== */

.coll-keyfigures {
    background: #fff;
    border-bottom: 1px solid var(--coll-line);
}

.coll-keyfigures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 28px 24px;
    width: 1180px;
    max-width: 100%;
    margin: 0 auto;
}

.coll-keyfigure {
    text-align: center;
    padding: 4px 10px;
    border-right: 1px solid var(--coll-line);
}

.coll-keyfigure:last-child { border-right: 0; }

.coll-keyfigure-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue);
}

.coll-keyfigure-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 300;
    color: var(--coll-ink-soft);
}

@media (max-width: 780px) {
    .coll-keyfigures-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 8px;
        padding: 24px 16px;
    }
    .coll-keyfigure:nth-child(2n) { border-right: 0; }
    .coll-keyfigure-value { font-size: 22px; }
    .coll-keyfigure-label { font-size: 13px; }
}

/* ==========================================================================
   INTRO — 2 colonnes texte / image
   ========================================================================== */

.coll-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

.coll-split-text h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--coll-ink);
    margin-bottom: 20px;
}

.coll-split-text p {
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--coll-ink-soft);
    margin-bottom: 16px;
}

.coll-split-text strong {
    font-weight: 600;
    color: var(--coll-ink);
}

.coll-split-media img {
    width: 100%;
    border-radius: var(--coll-radius);
    box-shadow: var(--coll-shadow);
}

.coll-highlight {
    margin-top: 8px;
    padding: 18px 22px;
    border-radius: 12px;
    background: var(--green-light);
    border-left: 4px solid var(--warm-green);
    font-size: 16px;
    line-height: 1.6;
    color: var(--coll-ink);
}

@media (min-width: 900px) {
    .coll-split {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 56px;
    }
    .coll-split.is-reverse .coll-split-media { order: -1; }
    .coll-split-text h2 { font-size: 38px; }
    .coll-split-text p { font-size: 18px; }
}

/* ==========================================================================
   ÉVÉNEMENTS — grille de cartes
   ========================================================================== */

.coll-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.coll-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--coll-line);
    border-radius: var(--coll-radius);
    padding: 26px 24px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.coll-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--coll-shadow-hover);
    border-color: transparent;
}

.coll-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-light);
    font-size: 24px;
    line-height: 1;
    margin-bottom: 16px;
}

.coll-card:nth-child(2n) .coll-card-icon { background: var(--green-light); }

.coll-card h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--coll-ink);
    margin-bottom: 8px;
}

.coll-card p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--coll-ink-soft);
    margin: 0;
}

.coll-card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.coll-card-link:hover { text-decoration: underline; }

.coll-card-link::after {
    content: " →";
}

@media (min-width: 700px) {
    .coll-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1024px) {
    .coll-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   INCLUS — liste à puces "check"
   ========================================================================== */

.coll-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.coll-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--coll-shadow);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 300;
    color: var(--coll-ink-soft);
}

.coll-checklist li::before {
    content: "✓";
    flex: 0 0 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--warm-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-top: 1px;
}

.coll-checklist strong {
    display: block;
    font-weight: 600;
    color: var(--coll-ink);
}

@media (min-width: 760px) {
    .coll-checklist { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ==========================================================================
   PREUVE — galerie + témoignage
   ========================================================================== */

.coll-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.coll-gallery figure {
    margin: 0;
    background: #fff;
    border-radius: var(--coll-radius);
    overflow: hidden;
    box-shadow: var(--coll-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.coll-gallery figure:hover {
    transform: translateY(-4px);
    box-shadow: var(--coll-shadow-hover);
}

.coll-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.coll-gallery figcaption {
    padding: 14px 18px 16px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--coll-ink-soft);
}

.coll-gallery figcaption strong {
    display: block;
    font-weight: 600;
    color: var(--coll-ink);
    margin-bottom: 2px;
}

@media (min-width: 780px) {
    .coll-gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.coll-quote {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--coll-radius);
    box-shadow: var(--coll-shadow);
    padding: 40px 32px 30px;
}

.coll-quote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 96px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--blue);
    opacity: 0.18;
}

.coll-quote blockquote {
    position: relative;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--coll-ink);
}

.coll-quote blockquote p { margin: 0; }

.coll-quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--coll-line);
}

.coll-quote-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--warm-green));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.coll-quote-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--coll-ink);
}

.coll-quote-role {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--coll-ink-soft);
}

@media (min-width: 900px) {
    .coll-quote { padding: 48px 48px 34px; }
    .coll-quote blockquote { font-size: 19px; }
}

/* ==========================================================================
   PHOTOCALL — encart signature
   ========================================================================== */

.coll-photocall {
    background: linear-gradient(135deg, #10262c 0%, #14555c 55%, #1a7f85 100%);
    color: #fff;
}

.coll-photocall .coll-split-text h2,
.coll-photocall .coll-split-text strong { color: #fff; }

.coll-photocall .coll-split-text p { color: rgba(255, 255, 255, 0.88); }

.coll-photocall .coll-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-green);
    margin-bottom: 12px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.coll-faq {
    max-width: 860px;
    margin: 0 auto;
}

.coll-faq details {
    background: #fff;
    border: 1px solid var(--coll-line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.coll-faq details[open] {
    box-shadow: var(--coll-shadow);
    border-color: transparent;
}

.coll-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 22px;
    position: relative;
    font-size: 17px;
    font-weight: 600;
    color: var(--coll-ink);
}

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

.coll-faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 18px;
    font-weight: 600;
    line-height: 23px;
    text-align: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.coll-faq details[open] summary::after {
    content: "−";
    background: var(--blue);
    color: #fff;
}

.coll-faq summary:hover { color: var(--blue); }

.coll-faq-answer {
    padding: 0 22px 20px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--coll-ink-soft);
}

.coll-faq-answer strong { font-weight: 600; color: var(--coll-ink); }

/* ==========================================================================
   ZONES D'INTERVENTION
   ========================================================================== */

.coll-zones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.coll-zones li {
    background: #fff;
    border: 1px solid var(--coll-line);
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--coll-ink);
}

.coll-zones-note {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    color: var(--coll-ink-soft);
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.coll-cta {
    background: var(--coll-ink);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
}

.coll-cta h2 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
}

.coll-cta p {
    font-size: 17px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
}

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

.coll-cta-note {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
    .coll-cta { padding: 88px 24px; }
    .coll-cta h2 { font-size: 40px; }
}

@media (max-width: 640px) {
    .coll-cta-buttons .coll-btn { flex: 1 1 100%; text-align: center; }
}
