/* assets/style.css */
:root {
    --primary: #2980b9;       /* Bleu Confiance */
    --primary-dark: #2c3e50;  /* Bleu Nuit */
    --accent: #e67e22;        /* Orange Action */
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f4f6f7;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.06);
    --radius: 8px;
    --container: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fdfdfd;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
}

/* --- LAYOUT --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- TYPO --- */
h1, h2, h3 { color: var(--text-main); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1.5rem; border-bottom: 2px solid var(--bg-light); padding-bottom: 10px; }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent); }

/* --- HEADER --- */
header { padding: 15px 0; border-bottom: 1px solid #eee; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.5rem; font-weight: 900; color: var(--primary-dark); text-transform: uppercase; }
.logo-text span { color: var(--primary); }

/* --- HERO --- */
.hero {
    background: linear-gradient(135deg, #eef2f3 0%, #ffffff 100%);
    padding: 50px 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e1e8ed;
    margin-bottom: 40px;
}

/* --- CARDS & BOXES --- */
.info-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    margin-bottom: 25px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
    border: none; cursor: pointer; font-size: 1.1rem; width: 100%; text-align: center;
}
.cta-button:hover { background-color: #d35400; transform: translateY(-2px); color: white; }

/* --- FORMS --- */
.form-group { margin-bottom: 15px; }
input, select {
    width: 100%; padding: 12px;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 1rem;
}
input:focus, select:focus { border-color: var(--primary); outline: none; }

/* --- BREADCRUMBS --- */
.breadcrumbs { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }

/* --- LISTES VILLES --- */
.list-group {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px; list-style: none; padding: 0;
}
.list-group a {
    display: block; padding: 12px;
    background: var(--white); border: 1px solid #eee;
    border-radius: 6px; color: var(--text-main); font-weight: 500;
}
.list-group a:hover { border-color: var(--primary); background: #f8fbff; }

/* --- SOCIAL PROOF --- */
.social-proof-card {
    background: #fdfefe; border-left: 4px solid var(--primary);
    padding: 20px; margin: 30px 0; border-radius: 4px;
    box-shadow: var(--shadow-sm); display: flex; gap: 15px; align-items: center;
}
.social-icon { font-size: 2rem; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .hero { padding: 30px 15px; }
}

/* --- ADD-ON HOME PAGE --- */

/* Hero Home Spécifique */
.hero-home {
    background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.hero-tagline { font-size: 1.3rem; color: #555; max-width: 700px; margin: 0 auto 30px; font-weight: 300; }

/* Barre de Confiance (Logos) */
.trust-bar {
    background: #fff; padding: 20px 0; border-bottom: 1px solid #eee;
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center;
    opacity: 0.8; grayscale: 100%; transition: 0.3s;
}
.trust-bar:hover { filter: grayscale(0%); opacity: 1; }
.trust-item { font-weight: 700; color: #7f8c8d; display: flex; align-items: center; gap: 10px; }

/* Grid Avantages (3 colonnes) */
.benefits-section { padding: 50px 0; background: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.benefit-card { text-align: center; padding: 20px; }
.benefit-icon { font-size: 3rem; margin-bottom: 15px; display: inline-block; background: #e8f4fc; width: 80px; height: 80px; line-height: 80px; border-radius: 50%; }
.benefit-title { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-dark); }

/* Grid Départements (Compacte) */
.dept-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px; font-size: 0.9rem;
}
.dept-link {
    background: #f8f9fa; border: 1px solid #eee; padding: 8px 12px;
    border-radius: 4px; color: #555; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dept-link:hover { background: var(--primary); color: white; border-color: var(--primary); }
.dept-num { font-weight: bold; color: var(--accent); margin-right: 5px; }

/* Top Villes (Mise en avant) */
.top-cities-section { background: #fdfdfd; padding: 50px 0; border-top: 1px solid #eee; }
.city-pill {
    display: inline-block; background: white; border: 1px solid #e0e0e0;
    padding: 8px 15px; border-radius: 20px; margin: 5px; color: var(--text-main);
    font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.city-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* --- SECTION MAILLAGE (Villes Voisines) --- */
.nearby-section {
    background-color: #f8f9fa; /* Fond gris très léger pour séparer du reste */
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 60px;
    border: 1px solid #e1e8ed;
}

.nearby-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Responsive auto */
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-link {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #eee;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nearby-link:hover {
    transform: translateY(-3px); /* Effet de levitation */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.nearby-icon {
    color: var(--accent); /* Orange */
    margin-right: 10px;
    font-size: 1.1rem;
}

/* --- FAQ STYLE --- */
details {
    background: var(--white);
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

summary {
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
    position: relative;
    padding-right: 50px;
    font-size: 1.05rem;
}

/* La petite croix animée */
summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 300;
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '+'; /* On garde le + mais on le tourne */
    transform: translateY(-50%) rotate(45deg); /* Devient une croix X */
    color: var(--accent);
}

details[open] summary {
    border-bottom: 1px solid #f0f4f8;
    background-color: #fcfcfc;
}

details p {
    padding: 20px 25px;
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- CONVERSION BOOSTERS --- */

/* 1. Steps (Comment ça marche) */
.steps-container { display: flex; justify-content: space-between; gap: 15px; margin: 40px 0; text-align: center; }
.step-item { flex: 1; position: relative; }
.step-num { background: var(--primary); color: white; width: 30px; height: 30px; border-radius: 50%; line-height: 30px; margin: 0 auto 10px; font-weight: bold; }
.step-title { font-weight: 700; color: var(--text-main); font-size: 0.9rem; }
.step-desc { font-size: 0.8rem; color: #7f8c8d; }

/* 2. Trust Badges Formulaire */
.form-trust { display: flex; justify-content: center; gap: 15px; margin-top: 15px; font-size: 0.75rem; color: #555; }
.form-trust span { display: flex; align-items: center; gap: 5px; }

/* 3. Sticky Mobile Button */
.sticky-mobile-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; border-top: 1px solid #ddd;
    padding: 10px 20px; box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1000; display: none; /* Masqué sur PC */
    text-align: center;
}
.sticky-mobile-cta .cta-button { margin: 0; padding: 12px; width: 100%; border-radius: 8px; }

@media (max-width: 768px) {
    .steps-container { flex-direction: column; align-items: center; gap: 25px; }
    .sticky-mobile-cta { display: block; }
    body { padding-bottom: 70px; /* Espace pour le sticky */ }
}