/* Page contact — formulaire */

.cf-section {
    padding-bottom: clamp(3rem, 6vw, 5rem);
    position: relative;
    z-index: 1;
}

.cf-card {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 0;
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e8edf2;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

@media (max-width: 991px) {
    .cf-card {
        grid-template-columns: 1fr;
        margin: 0 15px;
    }
}

.cf-card__aside {
    background: linear-gradient(160deg, #004d20 0%, #009734 50%, #00b050 100%);
    color: #fff;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

.cf-card__aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 50%);
    pointer-events: none;
}

.cf-card__aside > * {
    position: relative;
}

.cf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.cf-card__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.cf-card__lead {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.92;
    margin-bottom: 1.75rem;
}

.cf-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cf-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cf-trust-list li i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    font-size: 1.45rem;
    line-height: 1;
    margin-top: 0.05rem;
    opacity: 1;
}

.cf-form {
    padding: 2rem 1.75rem 2.25rem;
}

@media (min-width: 768px) {
    .cf-form {
        padding: 2.25rem 2.25rem 2.5rem;
    }
}

.cf-form__intro {
    margin-bottom: 1.5rem;
}

.cf-form__intro h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.cf-form__intro p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
}

.cf-grid--full {
    grid-column: 1 / -1;
}

@media (max-width: 575px) {
    .cf-grid {
        grid-template-columns: 1fr;
    }
}

.cf-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.45rem;
}

.cf-field label i {
    color: #009734;
    font-size: 0.95rem;
}

.cf-input,
.cf-field select.cf-input,
.cf-field textarea.cf-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.78rem 1rem;
    font-size: 0.95rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.cf-field select.cf-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.cf-input::placeholder {
    color: #94a3b8;
}

.cf-input:focus,
.cf-field select.cf-input:focus,
.cf-field textarea.cf-input:focus {
    outline: none;
    border-color: #00b050;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.15);
}

.cf-input.cf-input--error,
.cf-field select.cf-input.cf-input--error {
    border-color: #f87171;
    background: #fff5f5;
}

.cf-input--textarea {
    min-height: 148px;
    resize: vertical;
    line-height: 1.55;
}

.cf-error {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #dc2626;
}

.cf-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.cf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #007a2f 0%, #00b050 100%);
    box-shadow: 0 8px 24px rgba(0, 176, 80, 0.35);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.cf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 176, 80, 0.4);
    filter: brightness(1.03);
    color: #fff;
}

.cf-submit:active {
    transform: translateY(0);
}

.cf-alert {
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.cf-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.cf-alert--info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.cf-section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
    padding: 0 15px;
}

/* —— Coordonnées (bandeau) —— */
.cf-channels {
    padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    background: transparent;
}

.cf-channels__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991px) {
    .cf-channels__grid {
        grid-template-columns: 1fr;
    }
}

.cf-channel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

a.cf-channel:hover {
    border-bottom-color: #00953e;
    transform: translateY(-2px);
    color: inherit;
}

.cf-channel__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00953e;
    color: #fff;
    font-size: 1.15rem;
}

.cf-channel__icon--lime {
    background: #86c71f;
    color: #14241c;
}

.cf-channel__icon--dark {
    background: #0a3a22;
    color: #fff;
}

.cf-channel__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.cf-channel__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6b62;
}

.cf-channel__value {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 800;
    color: #14241c;
    word-break: break-word;
    line-height: 1.35;
}

.cf-channel__hint {
    font-size: 0.85rem;
    color: #5c6b62;
}

/* —— Carte Leaflet (OSM) —— */
.cf-map-section {
    padding: 0 0 clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 0;
}

.cf-map-head {
    margin-bottom: 1rem;
}

.cf-map-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00953e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.cf-map-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 900;
    color: #14241c;
    margin: 0 0 0.35rem;
}

.cf-map-sub {
    margin: 0;
    color: #5c6b62;
    font-size: 0.95rem;
}

.cf-map {
    width: 100%;
    height: min(420px, 55vh);
    min-height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(20, 36, 28, 0.12);
    background: #e8f8f3;
    position: relative;
    isolation: isolate;
    z-index: 0;
}

.cf-map .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
    z-index: 1;
}

/* Empêche les tuiles Leaflet de flotter au-dessus du reste de la page au scroll */
.cf-map .leaflet-map-pane { z-index: 0; }
.cf-map .leaflet-tile-pane { z-index: 1; }
.cf-map .leaflet-overlay-pane { z-index: 2; }
.cf-map .leaflet-shadow-pane { z-index: 3; }
.cf-map .leaflet-marker-pane { z-index: 4; }
.cf-map .leaflet-tooltip-pane { z-index: 5; }
.cf-map .leaflet-popup-pane { z-index: 6; }
.cf-map .leaflet-top,
.cf-map .leaflet-bottom { z-index: 7; }

.cf-map-footnote {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    color: #5c6b62;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
