/* ============================================================
   LA SCIME — CSS Principal 2026
   Design épuré, identité bois, moderne
   ============================================================ */

/* ---- Variables -------------------------------------------- */
:root {
    --primary:        #004957;
    --primary-dark:   #003540;
    --primary-light:  #006475;
    --primary-xlight: rgba(0, 73, 87, 0.08);
    --accent:         #8B6914;
    --accent-light:   #c49a2a;

    --bg:             #faf9f7;
    --bg-alt:         #f0ece6;
    --surface:        #ffffff;
    --surface-glass:  rgba(255, 255, 255, 0.82);

    --text:           #1a1a18;
    --text-muted:     #6b7060;
    --text-light:     #f8f9fa;
    --border:         rgba(0, 73, 87, 0.12);
    --border-soft:    rgba(0, 0, 0, 0.06);

    --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.14);
    --shadow-pri: 0 8px 32px rgba(0, 73, 87, 0.22);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --font: 'Montserrat', system-ui, -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-h: 70px;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

address { font-style: normal; }

.container { width: 90%; max-width: 1200px; }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow-md); }

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--primary);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}
.content-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-quote {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0.5rem auto;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.5rem;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow-pri);
    transform: translateY(-2px);
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ---- Navbar ---------------------------------------------- */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    min-height: var(--nav-h);
    background: transparent;
    z-index: 1000;
    transition: background var(--transition-slow), box-shadow var(--transition);
}
#navbar.scrolled {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    min-height: var(--nav-h);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.navbar-logo {
    height: 44px;
    width: auto;
    transition: transform var(--transition);
}
.navbar-logo:hover { transform: scale(1.06); }

.navbar-brand { padding: 0; }

/* Nav links */
.navbar-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.01em;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
#navbar.scrolled .navbar-nav .nav-link {
    color: var(--text);
}
#navbar.scrolled .navbar-nav .nav-link:hover,
#navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-xlight);
}
.btn-nav-contact {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff !important;
    border: 2px solid var(--primary);
    transition: all var(--transition);
}
.btn-nav-contact:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-pri);
}
#navbar.scrolled .btn-nav-contact { background: var(--primary); color: #fff !important; }

/* Toggler mobile */
.navbar-toggler {
    border: none;
    background: rgba(255,255,255,0.15) !important;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
}
#navbar.scrolled .navbar-toggler {
    background: var(--primary-xlight) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,73,87,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse.show,
.navbar-collapse.collapsing {
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
}
.navbar-collapse.show .nav-link { color: var(--text) !important; }
.navbar-collapse.show .nav-link:hover { color: var(--primary) !important; background: var(--primary-xlight); }
.navbar-collapse.show .btn-nav-contact { color: #fff !important; }

/* Réseaux sociaux fixés */
.social-fixed {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}
.social-fixed a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface);
    color: var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
    transition: all var(--transition);
}
.social-fixed a:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-pri);
}

/* Scroll top */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-pri); }

/* ---- Hero Homepage --------------------------------------- */
#main-header {
    position: relative;
    min-height: 100vh;
    background-image: url('../../images/bkgnd/eric-prouzet-3HJzrknrOZY-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.45) 60%,
        rgba(0,0,0,0.55) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
}
.hero-logo img {
    max-width: 220px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}
.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}
.hero-tagline-lite {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.btn-hero {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Page Header (sous-pages) ---------------------------- */
#page-header {
    position: relative;
    height: 40vh;
    min-height: 240px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}
.page-header-content { position: relative; z-index: 1; }
.page-header-logo {
    max-height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
    margin: 0 auto;
}

/* ---- Section avec fond cernes (identité) ----------------- */
.section-rings {
    padding: 5rem 0;
    background-image: url('../../images/bkgnd/cernes-gris-clair.webp');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    .section-rings {
        padding: 3rem 0;
        background-size: 130%;
    }
}

/* ---- Sections générales ---------------------------------- */
.section-header { margin-bottom: 2rem; }

.content-block {
    padding: 2rem;
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

/* ---- Animations d'entrée (scroll) ----------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in { opacity: 0; transform: translateY(20px); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in--delay-1 { transition-delay: 0.15s; }
.fade-in--delay-2 { transition-delay: 0.3s; }

/* ---- Cards engagements (homepage) ----------------------- */
.engagement-card {
    background: var(--surface-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.engagement-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.engagement-icon {
    width: 64px; height: 64px;
    background: var(--primary-xlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}
.engagement-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--primary); }

/* ---- Cards services (homepage) -------------------------- */
.service-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--text); }
.service-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 60%);
    transition: opacity var(--transition);
}
.service-card:hover .service-card-overlay { opacity: 0.8; }
.service-card-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.service-card-body {
    padding: 1.25rem;
}
.service-card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.service-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}
.service-card:hover .service-card-link { color: var(--primary-dark); }

/* ---- Section CTA ---------------------------------------- */
.section-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}
.section-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.section-cta h2::after { background: rgba(255,255,255,0.5); }
.cta-sub { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.section-cta .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.section-cta .btn-primary:hover {
    background: var(--bg-alt);
    border-color: var(--bg-alt);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.section-cta .btn-outline-primary {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.section-cta .btn-outline-primary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* ---- Cards offres (chauffage) --------------------------- */
.offer-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.offer-card--featured {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.offer-card--featured h3 { color: #fff; }
.offer-card--featured .offer-list li { color: rgba(255,255,255,0.9); }
.offer-card--featured .fa-check { color: rgba(255,255,255,0.7) !important; }
.offer-card-icon {
    width: 56px; height: 56px;
    background: var(--primary-xlight);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}
.offer-card--featured .offer-card-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.offer-card h3 { margin-bottom: 1rem; }
.offer-list { list-style: none; padding: 0; margin: 0; }
.offer-list li { padding: 0.4rem 0; font-size: 0.9rem; }

/* ---- Section points forts -------------------------------- */
.section-points-forts {
    padding: 4rem 0;
    background: var(--bg-alt);
}
.point-fort {
    padding: 1.5rem 1rem;
}
.point-fort h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.point-fort p { font-size: 0.9rem; color: var(--text-muted); }

/* ---- Cards distinction (exploitation) ------------------- */
.distinction-card {
    background: var(--surface);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition);
}
.distinction-card:hover { transform: translateX(4px); }
.distinction-card h3 { color: var(--primary); font-size: 1rem; margin-bottom: 0.5rem; }
.distinction-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---- Galerie photo -------------------------------------- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition);
    filter: saturate(0.85);
}
.photo-grid img:hover { transform: scale(1.05); filter: saturate(1.1); }

/* ---- Pages légales -------------------------------------- */
.legal-block {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}
.legal-block h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-light);
}
.legal-block h2:first-child { margin-top: 0; }
.legal-block h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.legal-block p, .legal-block li { font-size: 0.92rem; color: var(--text-muted); }
.legal-block ul { padding-left: 1.5rem; }
.legal-block ul li { margin-bottom: 0.4rem; }
.legal-block a { color: var(--primary); text-decoration: underline; }
.legal-block a:hover { color: var(--primary-dark); }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0 1.5rem;
}
.legal-table th {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
}
.legal-table td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: rgba(0,73,87,.03); }
.legal-update {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
}
@media (max-width: 767px) {
    .legal-block { padding: 1.5rem 1.25rem; }
    .legal-table { font-size: 0.78rem; }
    .legal-table th, .legal-table td { padding: 0.4rem 0.5rem; }
}

/* ---- Service list (fourniture) -------------------------- */
.service-list { display: flex; flex-direction: column; gap: 1.25rem; }
.service-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.service-list-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--primary-xlight);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}
.service-list-item h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--primary); }
.service-list-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---- Contact ------------------------------------------- */
.contact-info-card, .contact-form-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    height: 100%;
}
.contact-info-card h2, .contact-form-card h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-xlight);
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: var(--primary-xlight);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
}
.contact-phone-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}
.contact-social { display: flex; gap: 0.75rem; }
.contact-social a {
    color: var(--primary);
    transition: transform var(--transition), color var(--transition);
}
.contact-social a:hover { color: var(--primary-dark); transform: scale(1.15); }

/* Formulaire */
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,73,87,0.1);
    background: #fff;
    outline: none;
}
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}
.form-note { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.form-note a { color: var(--primary); }

.form-alert {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.form-alert.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-alert.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Carte Google Maps */
#localisez-nous .map-container {
    height: 420px;
    width: 100%;
}
#localisez-nous .map-container iframe {
    border: none;
    display: block;
}

/* ---- Sitemap ------------------------------------------- */
.sitemap-block { padding: 1rem; }
.sitemap-block h2 { font-size: 1.2rem; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.sitemap-block ul { list-style: none; padding-left: 1.5rem; }
.sitemap-block ul li { padding: 0.3rem 0; }
.sitemap-block ul li::before { content: '↳ '; color: var(--primary); font-weight: 600; }
.sitemap-block a { color: var(--text); text-decoration: none; }
.sitemap-block a:hover { color: var(--primary); }

/* ---- Footer -------------------------------------------- */
#main-footer {
    background: var(--text);
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
    padding: 4rem 0 0;
}
.footer-inner { max-width: 1200px; width: 90%; margin: 0 auto; }
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 3rem;
}
.footer-logo { max-height: 80px; width: auto; }
.btn-footer-phone {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-lg);
}
.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}
.footer-nav-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-nav-col ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-col ul li { margin-bottom: 0.5rem; }
.footer-nav-col ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}
.footer-nav-col ul li a:hover { color: #fff; }
address p { margin-bottom: 0.4rem; font-size: 0.875rem; }
address a { color: rgba(255,255,255,0.65); text-decoration: none; }
address a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.footer-legal { display: flex; gap: 0.75rem; align-items: center; }
.footer-legal a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-legal a:hover { color: #fff; }
.footer-legal span { opacity: 0.3; }

/* ---- Video ----------------------------------------------- */
.video-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ---- Barre title decorative ------------------------------ */
hr.title-bar {
    width: 40px;
    border: 2px solid var(--primary);
    opacity: 1;
    margin: 0.5rem auto;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 991px) {
    #main-header { background-attachment: scroll; }
    .social-fixed { display: none !important; }
}
@media (max-width: 767px) {
    .section-rings { background-size: 200%; }
    #page-header { height: 28vh; min-height: 180px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid img { height: 150px; }
}
@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 280px; }
}
