/* ============================================================
   RénoveVotreHabitation - Feuille de style principale
   ============================================================ */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c2410c; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: #111827; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 1.25rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }

/* Layout containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; gap: 2rem;
    max-width: 1200px; margin: 0 auto;
}
.logo {
    font-size: 1.25rem; font-weight: 700; color: #111827;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-main { color: #c2410c; }
.logo-accent { color: #1f2937; }

.main-nav ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 1.75rem;
}
.main-nav a {
    color: #374151; font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.main-nav a:hover { color: #c2410c; }

.btn-header { white-space: nowrap; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 1rem;
    font-family: inherit;
}
.btn-primary {
    background: #c2410c;
    color: #ffffff;
    border-color: #c2410c;
}
.btn-primary:hover {
    background: #9a3412;
    border-color: #9a3412;
    text-decoration: none;
    color: #ffffff;
}
.btn-secondary {
    background: transparent;
    color: #c2410c;
    border-color: #c2410c;
}
.btn-secondary:hover {
    background: #c2410c;
    color: #ffffff;
    text-decoration: none;
}
.btn-large { padding: 1rem 2rem; font-size: 1.0625rem; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    padding: 4rem 0 3.5rem;
}
.hero-home {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 60%, #fdba74 100%);
    padding: 5rem 0 4rem;
}
.hero-local { padding: 3rem 0 2.5rem; }
.hero h1 { color: #1f2937; }
.hero-sub {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 700px;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}
.breadcrumb a { color: #6b7280; }

/* Sections */
.content-section { padding: 3rem 0; }
.bg-light { background: #f9fafb; }

/* Listes à puces stylées */
.liste-puces {
    list-style: none;
    padding-left: 0;
}
.liste-puces li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.625rem;
}
.liste-puces li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c2410c;
    font-weight: 700;
}

/* Steps numérotées */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    min-height: 2rem;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 2rem; height: 2rem;
    background: #c2410c;
    color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* Grilles */
.services-grid, .prestations-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.service-card, .prestation-card, .benefit {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.service-card:hover, .prestation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-decoration: none;
    border-color: #fdba74;
}
.service-card h3, .prestation-card h3, .benefit h3 {
    color: #c2410c;
    margin-top: 0;
}
.service-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #c2410c;
    font-weight: 600;
}

/* Grille de villes */
.villes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.ville-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.15s;
}
.ville-card:hover {
    border-color: #c2410c;
    background: #fff7ed;
    text-decoration: none;
    transform: translateY(-1px);
}
.ville-card strong { display: block; color: #c2410c; font-size: 1.0625rem; }
.ville-card span { display: block; color: #6b7280; font-size: 0.875rem; margin-top: 0.25rem; }

/* FAQ */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    padding: 0.5rem 0;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #c2410c;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.75rem 0 0.5rem; color: #4b5563; }

/* Formulaire de devis */
.form-devis {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #374151;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c2410c;
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-rgpd label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.5;
}
.form-rgpd input[type="checkbox"] { 
    margin-top: 0.3rem; 
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.form-note {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.75rem;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.site-footer h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fdba74; text-decoration: none; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-villes {
    column-count: 1;
}
.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #9ca3af;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 1rem; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; }
    .main-nav ul { gap: 1rem; padding: 0.5rem 0; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { text-align: center; }
}
