:root {
    --accent-color: #b1824e; /* couleur logo */
    --text-color: #222222;
    --muted-color: #777777;
    --bg-color: #ffffff;
    --bg-soft: #f5f5f5;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* WRAPPER GLOBAL */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}

/* HEADER / MENU */
.site-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(177, 130, 78, 0.2); /* ligne couleur logo */
    padding-bottom: 10px;
}


.site-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* LOGO IMAGE */
.logo-block {
    display: inline-flex;
    align-items: flex-start;
}

.logo-block img {
    display: block;
    max-width: 190px;
    height: auto;
}

/* NAVIGATION */
nav.site-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-row a {
    position: relative;
    padding-bottom: 2px;
}

.nav-row a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.2s ease;
}

.nav-row a:hover::after,
.nav-row a:focus::after {
    width: 100%;
}
.nav-info {
    padding: 4px 10px;
    border-radius: 999px;
    background-color: var(--accent-color); /* couleur logo */
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* BOUTON ASSISTANT IA */
.btn-assistant {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--accent-color);
    font-size: 13px;
    background-color: transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-assistant-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.btn-assistant:hover,
.btn-assistant:focus {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* RECHERCHE */
.search-bar {
    margin-top: 4px;
    width: 100%;
    max-width: 420px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(177, 130, 78, 0.35); /* contour léger couleur logo */
    padding: 9px 34px 9px 14px;
    font-size: 14px;
    background-color: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--muted-color);
    pointer-events: none;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 30px;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-text {
    padding-left: 18px;
    border-left: 3px solid var(--accent-color); /* barre verticale couleur logo */
}

.hero-text h1 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 14px;
}


.hero-text p {
    margin: 0 0 10px;
    font-size: 15px;
}

.hero-text p strong {
    color: var(--accent-color);
}

/* GRILLE VIGNETTES */
.home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.home-card {
    background-color: #ffffff;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #efefef;
}

.home-card img {
    width: 100%;
    height: auto;
    display: block;
}

.home-card-title {
    text-align: center;
    padding: 8px 6px 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: var(--accent-color);     /* ici la couleur logo */
}

/* FOOTER */
.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
    padding-top: 14px;
    font-size: 13px;
    color: var(--muted-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.site-footer a {
    color: var(--muted-color);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--accent-color);
}
/* Lien INSPIRATIONS dans le menu */
.nav-row a.nav-inspirations {
    font-weight: 900;
    color: #b58a5c;          /* ta couleur de site pour le faire ressortir */
}

/* Option : surlignement de la même couleur au hover */
.nav-row a.nav-inspirations::after {
    background-color: #b58a5c;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .site-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    nav.site-nav {
        align-items: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .logo-block img {
        max-width: 150px;
    }
}

.outils-illu-top {
    text-align: center;
    margin: 25px 0;
}

.outils-illu-top img {
    width: 160px;
    opacity: 0.9;
}
/* === Page OUTILS : bloc calculateur de surface === */

.page-outils .vm-tool-bloc {
    width: 100%;                    /* prend toute la largeur de intro-inner */
    margin: 3rem 0 4rem;
    padding: 2.2rem 2rem;
    background: #f7f3ec;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    box-sizing: border-box;
}


.page-outils .vm-tool-bloc h2 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.3rem);
    margin-bottom: 1rem;
}

.page-outils .vm-tool-bloc p,
.page-outils .vm-tool-bloc ul {
    font-size: 1rem;
    line-height: 1.6;
}

.page-outils .vm-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #7a5638;
}

/* Mise en forme plus ludique du formulaire */

.page-outils .vm-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.2rem 2rem;
    margin-top: 1.5rem;
}

.page-outils .vm-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.page-outils .vm-field input[type="text"],
.page-outils .vm-field input[type="number"] {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-outils .vm-field input:focus {
    outline: none;
    border-color: #b1824e;
    box-shadow: 0 0 0 2px rgba(177,130,78,0.18);
}

/* Bouton Calculer plus visible et ludique */

.page-outils .vm-btn {
    margin-top: 1.5rem;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 999px;
    background: #b1824e;              /* couleur logo */
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.page-outils .vm-btn:hover {
    background: #9b6f3c;
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
    transform: translateY(-1px);
}

/* Bloc résultats mis en avant */

.page-outils .vm-resultats {
    margin-top: 2rem;
    padding: 1.6rem 1.9rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px dashed #e0d2c2;
}

.page-outils .vm-resultats h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.page-outils .vm-resultats p {
    margin: 0.2rem 0;
    font-weight: 600;
}
.page-legal {
    color: #333333;
}
.page-legal h1 {
    color: #7a5638;
}

.page-legal h2 {
    color: #7a5638; /* marron sobre cohérent */
    margin-top: 2.2rem;
}
/* ===== Pages d'attente / en maintenance ===== */

.page-standby .hero {
    margin-bottom: 2.5rem;
}

.page-standby .hero-text p {
    max-width: 640px;
}

.badge-maintenance {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #fff4e3;
    border: 1px solid #e4c59a;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #7a5638;
}

.page-standby .intro-inner {
    max-width: 880px;
    margin: 0 auto 60px;
}

.page-standby .intro-inner h2 {
    margin-bottom: 0.8rem;
}

.page-standby .intro-inner p,
.page-standby .intro-inner li {
    color: #333;
}
/* ===== Page OUTILS : intro image + texte côte à côte ===== */

.page-outils .intro-outils-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap; /* pour ne pas casser sur petits écrans */
}

.page-outils .outils-texte-top {
    flex: 1 1 320px;
}

.page-outils .outils-texte-top h1 {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.page-outils .outils-note {
    margin-top: 0.8rem;
    font-weight: 600;
    color: #7a5638;
}

/* Image à droite, taille harmonieuse */

.page-outils .outils-illu-top {
    flex: 0 0 260px;
    text-align: right;
}

.page-outils .outils-illu-top img {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Sur mobile : on repasse en colonne, image au-dessus */

@media (max-width: 768px) {
    .page-outils .intro-outils-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-outils .outils-illu-top {
        text-align: left;
        margin-bottom: 1rem;
    }

    .page-outils .outils-illu-top img {
        max-width: 220px;
    }
}
/* ===== Page CONTACT ===== */

/* ===== Page CONTACT ===== */

.page-contact .contact-intro {
    max-width: 720px;
    margin: 0 auto 60px;
}

.page-contact p {
    color: #333;
}

/* Bouton WhatsApp */

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    background: #25d366;          /* vert WhatsApp */
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-whatsapp:hover {
    background: #1eb257;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

.page-contact .contact-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #777;
}
/* ===== Page ASSISTANT IA ===== */

.page-assistant-ia .assistant-hero {
    max-width: 960px;
    margin: 0 auto 40px;
}

.page-assistant-ia .assistant-hero-text ul {
    margin-top: 0.8rem;
    padding-left: 1.4rem;
}

.page-assistant-ia .assistant-hero-text li {
    margin-bottom: 0.3rem;
    color: #333;
}

.page-assistant-ia .assistant-info {
    margin-top: 1rem;
    font-weight: 600;
    color: #7a5638;
}

/* Sondage */

.page-assistant-ia .assistant-sondage {
    max-width: 960px;
    margin: 0 auto 60px;
}

.page-assistant-ia .assistant-card {
    margin-top: 1.2rem;
    padding: 1.8rem 1.6rem;
    background: #f7f3ec;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.page-assistant-ia .assistant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.4rem;
}

.page-assistant-ia .assistant-option {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: #333;
}

.page-assistant-ia .assistant-option input[type="checkbox"] {
    margin-top: 3px;
}

.page-assistant-ia .assistant-autres {
    margin-bottom: 1.4rem;
}

.page-assistant-ia .assistant-autres label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.page-assistant-ia .assistant-autres textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

.page-assistant-ia .assistant-autres textarea:focus {
    outline: none;
    border-color: #b58a5c;
    box-shadow: 0 0 0 2px rgba(181,138,92,0.18);
}

.page-assistant-ia .assistant-submit {
    margin-top: 0.4rem;
}

/* Réutilisation des alertes */
.page-assistant-ia .alert-success,
.page-assistant-ia .alert-error {
    margin-top: 1rem;
}
/* ===== Page RECHERCHE ===== */

.page-recherche .recherche-intro {
    max-width: 800px;
    margin: 0 auto 60px;
}

.page-recherche .recherche-intro p {
    color: #333;
}

.recherche-form {
    margin-top: 1.5rem;
}

.recherche-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.recherche-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.recherche-row input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.recherche-row input[type="search"]:focus {
    outline: none;
    border-color: #b58a5c;
    box-shadow: 0 0 0 2px rgba(181,138,92,0.18);
}

.page-recherche .recherche-submit {
    white-space: nowrap;
}

.recherche-result-placeholder {
    margin-top: 1.6rem;
    padding: 1.2rem 1.3rem;
    border-radius: 12px;
    background: #f7f3ec;
    color: #333;
    font-size: 0.95rem;
}
/* ===== Page RECHERCHE ===== */

.page-recherche .recherche-intro {
    max-width: 800px;
    margin: 0 auto 60px;
}

.page-recherche .recherche-intro p {
    color: #333;
}

.recherche-form {
    margin-top: 1.5rem;
}

.recherche-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.recherche-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.recherche-row input[type="text"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.recherche-row input[type="text"]:focus {
    outline: none;
    border-color: #b58a5c;
    box-shadow: 0 0 0 2px rgba(181,138,92,0.18);
}

.page-recherche .recherche-submit {
    white-space: nowrap;
}

.recherche-result-placeholder {
    margin-top: 1.6rem;
    padding: 1.2rem 1.3rem;
    border-radius: 12px;
    background: #f7f3ec;
    color: #333;
    font-size: 0.95rem;
}
/* ===== Page DEMANDE DE DEVIS ===== */

.page-devis .intro-inner {
    max-width: 900px;
    margin: 40px auto 70px;
}

/* Titre + texte */

.page-devis h2#devis-form-titre {
    margin-bottom: 1.5rem;
}

/* Formulaire */

.page-devis .form-devis {
    margin-top: 0.5rem;
}

.page-devis .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem 2rem;
}

.page-devis .form-field {
    margin-bottom: 0.3rem;
}

.page-devis .form-devis label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* Inputs / select / textarea */

.page-devis .form-devis input[type="text"],
.page-devis .form-devis input[type="email"],
.page-devis .form-devis input[type="tel"],
.page-devis .form-devis select,
.page-devis .form-devis textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
}

.page-devis .form-devis textarea {
    min-height: 160px;
    resize: vertical;
    margin-top: 0.2rem;
}

/* Focus */

.page-devis .form-devis input:focus,
.page-devis .form-devis select:focus,
.page-devis .form-devis textarea:focus {
    outline: none;
    border-color: #b58a5c;
    box-shadow: 0 0 0 2px rgba(181,138,92,0.18);
}

/* Bouton */

.page-devis .btn-primary {
    margin-top: 1.2rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.btn-primary {
    margin-top: 1.2rem;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
/* Petites notes */

.page-devis p {
    color: #333;
}

.page-devis .alert-success,
.page-devis .alert-error {
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.page-devis .alert-success {
    background: #e4f6ea;
    border: 1px solid #b6dfc2;
    color: #1f6b3a;
}

.page-devis .alert-error {
    background: #fdeaea;
    border: 1px solid #f3b5b5;
    color: #8f1e1e;
}
/* ===== Bandeau cookies ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f7f3ec;
    border-top: 1px solid #e0d2c2;
    padding: 14px 0;
    z-index: 9999;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.05);
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
}

.cookie-inner p {
    margin: 0;
    color: #333;
}

.cookie-link {
    font-size: 0.9rem;
    color: #7a5638;
    text-decoration: underline;
}

.header-search .search-icon {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    pointer-events: auto; /* important : la rendre cliquable */
}
