/* ==========================================================================
   Cheminée DIR — Design system
   ========================================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-soft: #faf7f2;
    --color-bg-soft-2: #f6f1ea;
    --color-ink: #1c1917;
    --color-ink-soft: #57534e;
    --color-ink-faint: #8a8580;
    --color-border: #e7e1d8;

    --color-primary: #c2540f;
    --color-primary-dark: #9c4009;
    --color-primary-soft: #fdf0e4;

    --color-dark: #17130f;
    --color-dark-soft: #241d17;

    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container: 1240px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.06);
    --shadow-md: 0 12px 30px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 24px 48px rgba(28, 25, 23, 0.14);

    --header-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-ink);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-ink);
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}

.brand-logo {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 10px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-ink);
    letter-spacing: 0.2px;
}

.navbar {
    background: transparent;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.nav-list a {
    text-decoration: none;
    color: var(--color-ink-soft);
    font-weight: 500;
    font-size: 15.5px;
    padding: 10px 16px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.nav-list a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.btn-header-cta {
    padding: 11px 22px;
    font-size: 14.5px;
    white-space: nowrap;
}

.openbtn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--color-ink);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn-orange,
button[type="submit"].btn-orange {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-orange:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 19, 15, 0.55) 0%, rgba(23, 19, 15, 0.35) 45%, rgba(23, 19, 15, 0.75) 100%);
    z-index: -1;
}

.hero-text {
    max-width: 720px;
    padding: 0 24px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffd9b0;
    background: rgba(194, 84, 15, 0.35);
    border: 1px solid rgba(255, 217, 176, 0.4);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: clamp(2.4em, 5vw, 4em);
    margin: 0;
    letter-spacing: 0.5px;
    color: #fff;
}

.hero-text p {
    font-size: 1.35em;
    margin-top: 12px;
    color: #f2ece4;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

/* ==========================================================================
   Titres de section
   ========================================================================== */

.section-title {
    font-size: 34px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--color-ink);
    position: relative;
    text-align: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--color-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   Types de cheminées
   ========================================================================== */

.types-cheminees {
    text-align: center;
    padding: 96px 24px;
    background: var(--color-bg);
}

.types-cheminees h2 {
    font-size: 36px;
    margin-bottom: 56px;
    font-weight: 700;
    color: var(--color-ink);
    position: relative;
}

.types-cheminees h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--color-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.grid-cheminees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: var(--container);
    margin: auto;
}

.card-cheminée {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.card-cheminée:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-cheminée img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.card-cheminée h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-ink);
}

.card-cheminée p {
    font-size: 15px;
    color: var(--color-ink-soft);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   Barre de services rapides
   ========================================================================== */

.barre-orange {
    background-color: var(--color-dark);
    padding: 36px 0;
    color: #ffffff;
}

.barre-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
    text-align: left;
    padding: 0 24px;
}

.barre-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    border-radius: var(--radius);
    flex: 1 1 260px;
    transition: transform 0.25s ease, background 0.25s ease;
    background: rgba(255, 255, 255, 0.03);
}

.barre-block:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary);
    cursor: pointer;
}

.barre-block i {
    font-size: 26px;
    color: var(--color-primary);
    transition: color 0.25s ease;
}

.barre-block:hover i {
    color: #fff;
}

.texte {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.texte .titre {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.texte .sous-titre {
    font-size: 13.5px;
    opacity: 0.75;
}

/* ==========================================================================
   Galerie d'inspiration (carrousel)
   ========================================================================== */

.galerie-inspiration {
    text-align: center;
    padding: 90px 20px;
    background-color: var(--color-bg-soft);
}

.galerie-inspiration h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 12px;
    position: relative;
}

.galerie-inspiration h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--color-primary);
    margin: 16px auto 24px;
    border-radius: 2px;
}

.galerie-inspiration .slogan {
    font-size: 17px;
    color: var(--color-ink-soft);
    margin-bottom: 10px;
}

.slider-infinite {
    overflow: hidden;
    white-space: nowrap;
    padding: 30px 0 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.slider-track {
    display: inline-flex;
    align-items: center;
    animation: scroll-loop 65s linear infinite;
}

.slider-track img {
    height: 230px;
    width: auto;
    object-fit: cover;
    margin: 0 12px;
    border-radius: var(--radius);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-track img:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: var(--shadow-md);
}

@keyframes scroll-loop {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track {
        animation: none;
    }
}

/* ==========================================================================
   Présentation entreprise
   ========================================================================== */

.presentation-entreprise {
    background: var(--color-bg);
    padding: 96px 24px;
}

.presentation-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
    max-width: var(--container);
    margin: auto;
}

.presentation-texte {
    flex: 1 1 560px;
    color: var(--color-ink);
}

.presentation-texte h2 {
    font-size: 38px;
    color: var(--color-ink);
    margin-bottom: 8px;
}

.presentation-texte h4 {
    font-size: 19px;
    color: var(--color-ink-soft);
    margin-bottom: 28px;
    font-weight: 400;
    font-family: var(--font-body);
}

.presentation-texte p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-ink-soft);
    margin-bottom: 20px;
}

.presentation-texte p strong {
    color: var(--color-ink);
}

.presentation-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.service {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--color-bg-soft);
    padding: 16px 18px;
    border-radius: var(--radius);
    transition: transform 0.25s ease, background 0.25s ease;
}

.service:hover {
    transform: translateY(-3px);
    background: var(--color-primary-soft);
}

.service span {
    font-size: 24px;
}

.villes {
    font-size: 14.5px;
    color: var(--color-ink-faint);
}

.presentation-image {
    flex: 1 1 460px;
}

.presentation-image img {
    width: 100%;
    height: 560px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--color-dark);
    color: #f2ece4;
    padding: 56px 20px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.footer-links a {
    color: #f2ece4;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.footer-links a i {
    font-size: 15px;
    color: var(--color-primary);
}

.footer-links a:hover {
    color: #fff;
    border-color: var(--color-primary);
}

.footer-links-pending {
    color: rgba(242, 236, 228, 0.35);
    font-size: 14.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    cursor: default;
}

.footer-links-pending i {
    font-size: 15px;
    color: rgba(242, 236, 228, 0.35);
}

.footer-copy {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* ==========================================================================
   Sections "service" génériques (Services, Produits, Merci)
   ========================================================================== */

.service-section {
    background-color: var(--color-bg-soft);
    padding: 96px 24px;
}

.service-section:nth-of-type(even) {
    background-color: var(--color-bg);
}

.service-content {
    max-width: var(--container);
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.service-text {
    flex: 1 1 480px;
}

.service-text h2 {
    font-size: 32px;
    color: var(--color-ink);
    margin-bottom: 20px;
}

.service-text p {
    font-size: 16px;
    color: var(--color-ink-soft);
    line-height: 1.75;
}

.service-image {
    flex: 1 1 480px;
}

.service-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.service-section.reverse .service-content {
    flex-direction: row-reverse;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    background: var(--color-bg);
    padding: 90px 24px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.faq-item {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    text-align: left;
}

.faq-item h4 {
    font-size: 17px;
    color: var(--color-ink);
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 700;
}

.faq-item p {
    font-size: 15px;
    color: var(--color-ink-soft);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   CTA / Formulaire de devis
   ========================================================================== */

.cta-section {
    background-color: var(--color-dark);
    padding: 90px 24px;
    text-align: center;
}

.cta-services {
    max-width: 560px;
    margin: 0 auto;
}

.cta-section > .cta-services > .btn-orange {
    font-size: 17px;
    padding: 16px 34px;
}

.devis-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
}

.devis-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: -8px;
}

.devis-form input,
.devis-form textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    color: var(--color-ink);
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}

.devis-form input:focus,
.devis-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

.devis-form textarea {
    resize: vertical;
    min-height: 100px;
}

.devis-form .btn-orange {
    align-self: flex-start;
    margin-top: 4px;
}

/* ==========================================================================
   Engagements
   ========================================================================== */

.engagements {
    background-color: var(--color-bg-soft);
    padding: 96px 24px;
    text-align: center;
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: auto;
}

.engagement-box {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.engagement-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.engagement-box i {
    font-size: 26px;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.engagement-box h4 {
    font-size: 17px;
    color: var(--color-ink);
    margin-bottom: 8px;
}

.engagement-box p {
    font-size: 14px;
    color: var(--color-ink-soft);
    margin-bottom: 0;
}

/* ==========================================================================
   Témoignages
   ========================================================================== */

.temoignages {
    padding: 90px 24px;
    background: var(--color-bg);
    text-align: center;
}

.temoignage-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.temoignage {
    background: var(--color-bg-soft);
    padding: 28px;
    border-radius: var(--radius);
    max-width: 380px;
    text-align: left;
    position: relative;
}

.temoignage::before {
    content: "\201C";
    font-family: var(--font-heading);
    font-size: 60px;
    color: var(--color-primary);
    opacity: 0.25;
    position: absolute;
    top: 4px;
    left: 16px;
    line-height: 1;
}

.temoignage p {
    font-size: 15px;
    color: var(--color-ink-soft);
    font-style: italic;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.temoignage span {
    font-size: 13.5px;
    color: var(--color-ink-faint);
    font-weight: 600;
    display: block;
}

/* ==========================================================================
   Réalisations
   ========================================================================== */

.realisations {
    background-color: var(--color-bg-soft);
    padding: 90px 20px 100px;
    text-align: center;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: var(--container);
    margin: 0 auto;
}

.real-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
}

.real-photo:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.real-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Bouton flottant WhatsApp
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: white !important;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    transition: all 0.3s ease;
    animation: pulse 2.4s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.08) translateY(-3px);
}

.whatsapp-float i {
    font-size: 30px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Menu mobile (drawer)
   ========================================================================== */

.sidebar {
    height: 100%;
    width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 70px;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0%);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 19, 15, 0.45);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar a {
    padding: 16px 28px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-ink);
    display: block;
    transition: 0.2s;
    border-bottom: 1px solid var(--color-border);
}

.sidebar a.active {
    color: var(--color-primary);
    font-weight: 700;
}

.sidebar a:hover {
    background-color: var(--color-bg-soft);
    color: var(--color-primary);
}

.sidebar-cta {
    margin: 20px 28px !important;
    text-align: center;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    border-bottom: none !important;
}

.sidebar-cta:hover {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

.sidebar .closebtn {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 30px;
    line-height: 1;
    color: var(--color-ink-soft);
    cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .desktop-navbar,
    .btn-header-cta {
        display: none;
    }

    .openbtn {
        display: block;
    }

    .brand-name {
        font-size: 19px;
    }
}

@media (min-width: 961px) {
    .sidebar,
    .sidebar-overlay {
        display: none;
    }
}

@media (max-width: 992px) {
    .realisations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .site-header-inner {
        padding: 0 16px;
    }

    .brand-logo {
        height: 38px;
        width: 38px;
    }

    .hero {
        min-height: 78vh;
    }

    .grid-cheminees,
    .engagements-grid {
        grid-template-columns: 1fr;
    }

    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-content,
    .service-section.reverse .service-content {
        flex-direction: column;
        text-align: center;
    }

    .presentation-container {
        flex-direction: column;
    }

    .presentation-image img {
        height: 340px;
    }

    .devis-form {
        padding: 24px;
    }

    .types-cheminees,
    .presentation-entreprise,
    .service-section,
    .faq,
    .engagements,
    .cta-section,
    .temoignages,
    .realisations,
    .galerie-inspiration {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 2.4em;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 13px;
        padding: 8px 12px;
    }
}
