/* --- VARIABLES ET PARAMÈTRES GÉNÉRAUX --- */
:root {
    --bg: #faf9f6;
    --fg: #2b2b2b;
    --header-bg: #121212;
    --accent: #c5a059;
}

body {
    background-color: var(--bg);
    color: var(--fg);
}

.button-gold,
.button-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-gold {
    background-color: #c5a059;
    color: #121212;
}

.button-gold:hover {
    background-color: #b08e4b;
}

.button-white {
    border-color: #8a6a30;
    background-color: #fff;
    color: #8a6a30;
}

.button-white:hover {
    background-color: #f7f1e7;
}

.button-gold:focus-visible,
.button-white:focus-visible {
    outline: 2px solid #1a365d;
    outline-offset: 2px;
}

main h1,
main h2,
main h3 {
    text-align: left;
}

.site-slogan {
    mix-blend-mode: screen;
}

.hero-subtitle {
    white-space: pre-line;
}

.home-copy-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 760px;
}

.hero-copy-block {
    margin-top: 16px;
}

.home-approach-col {
    display: flex;
    align-items: flex-start;
    padding-top: 8px;
}

#approche {
    margin-top: 0 !important;
}

.home-photo-gallery {
    position: relative;
    min-height: 452px;
    max-width: 500px;
}

.home-photo {
    position: absolute;
    overflow: hidden;
    border-radius: 1.25rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    border: 2px solid rgba(197, 160, 89, 0.9);
    background: #f1f5f9;
}

.home-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-photo-top {
    top: 0;
    left: 0;
    width: 75%;
    height: 58%;
    z-index: 1;
}

.home-photo-bottom {
    right: 0;
    bottom: 0;
    width: 75%;
    height: 52%;
    z-index: 2;
}

/* --- FORMULAIRE DE PRÉ-DIAGNOSTIC --- */
#form-prediagnostic input,
#form-prediagnostic select,
#form-prediagnostic textarea {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    padding: 0.6rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

#form-prediagnostic input::placeholder,
#form-prediagnostic textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#form-prediagnostic input:focus,
#form-prediagnostic textarea:focus,
#form-prediagnostic select:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.12);
}

#form-prediagnostic label {
    color: #0f172a;
}

#form-prediagnostic .text-xs {
    color: #475569;
}

/* --- STRUCTURE ET TEXTES DE L'INTRODUCTION (OPTION B) --- */

/* Conteneur de la liste des paragraphes injectés (colonne de droite) */
.intro-container {
    width: 100%;
    text-align: left;
    /* padding-top: 10px !important; Ajustement pour s'aligner parfaitement sur la carte de gauche */
}

/* Style de chaque paragraphe individuel */
.intro-container p {
    font-size: 1.05rem;
    line-height: 1.8;      /* Espacement vertical des lignes */
    margin: 0 0 20px 0;    /* Marge nette entre les paragraphes */
    color: #2c2c2c;
}

/* Style pour les deux paragraphes avec puces d'analyse et d'ajustement */
.intro-container p.bullet-point {
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 15px;    /* Décale légèrement le texte après la puce */
}

/* --- INTEGRATION CARTOGRAPHIQUE LEAFLET --- */

/* Encadré blanc autour de la carte */
.map-container-accueil {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Zone d'affichage technique du widget Leaflet */
#map-widget {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.3); /* Bordure dorée subtile */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    #map-widget {
        height: 420px;
    }
}

/* Légende technique sous la carte */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0 0;
    padding: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    list-style: none;
}

.map-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-zone-swatch {
    width: 20px;
    border-top: 3px solid;
}

.map-zone-1 {
    border-color: #c5a059;
}

.map-zone-2 {
    border-color: #a8843e;
    border-top-style: dashed;
}

.map-zone-3 {
    border-color: #80652f;
    border-top-style: dotted;
}

.map-legend-note {
    margin: 5px 0 0;
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
}

/* --- 🎨 CARTES DE PRESTATIONS --- */
#grid-prestations {
    align-items: stretch;
}

#grid-prestations > article {
    height: 100%;
}

.presta-card {
    min-height: 560px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.presta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

#grid-prestations article img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

#grid-prestations article {
    will-change: transform, box-shadow, border-color;
}

#grid-prestations .presta-card p,
#grid-prestations .presta-card li {
    letter-spacing: 0.01em;
}

.line-clamp-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- MODALE DE CONTACT --- */
.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
}

.contact-modal-backdrop.hidden {
    display: none;
}

.contact-modal-panel {
    position: relative;
    width: min(100%, 480px);
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 2rem 1.5rem 1.5rem;
}

.contact-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #475569;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.contact-modal-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b0853d;
    font-weight: 700;
}

.contact-modal-panel h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    color: #1a365d;
    line-height: 1.2;
}

.contact-modal-copy {
    margin: 0 0 1.25rem;
    color: #475569;
    line-height: 1.6;
}

.contact-modal-actions {
    display: grid;
    gap: 0.9rem;
}

.contact-modal-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: #f8f5ef;
    border: 1px solid #eadfc4;
    color: #1a365d;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-modal-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: #c5a059;
}

.contact-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(197, 160, 89, 0.12);
}
