:root {
    --navy: #0b1f4d;
    --blue: #29abe2;
    --green: #7cb342;
    --ink: #1d2935;
    --muted: #5d6d7d;
    --off: #f4f8fb;
    --paper: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(600px circle at 85% 8%, rgba(41, 171, 226, 0.35), transparent 65%),
        radial-gradient(700px circle at 15% 30%, rgba(124, 179, 66, 0.45), transparent 70%),
        radial-gradient(550px circle at 90% 70%, rgba(41, 171, 226, 0.25), transparent 65%),
        radial-gradient(600px circle at 20% 90%, rgba(124, 179, 66, 0.35), transparent 70%),
        var(--off);
    background-attachment: fixed;
    line-height: 1.6;
}

.site-header {
    background: var(--paper);
    border-bottom: 1px solid #e2e8f0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0;
}

/* Hauteur du logo pilotée ici plutôt que par l'attribut height des pages :
   une seule valeur à changer pour toutes les pages du site. */
.brand {
    display: flex;
    align-items: center;
}
.brand img {
    display: block;
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
}

.hero {
    background: linear-gradient(135deg, var(--navy), #163a7a);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-logo {
    max-width: 620px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 24px;
}

.eyebrow {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

h1 {
    font-size: 3rem;
    margin: 0 0 8px;
}

/* Titre principal de l'accueil : c'est un h1, d'où le rappel des marges. */
.hero-slogan {
    font-size: 1.45rem;
    line-height: 1.35;
    color: var(--blue);
    font-weight: 700;
    margin: 0 auto;
    max-width: 700px;
}

.hero-copy {
    max-width: 620px;
    margin: 16px auto 28px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 60px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.label {
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.category-grid, .metier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card, .metier-card {
    display: block;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover, .metier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11, 31, 77, 0.12);
}

.category-card h3 {
    color: var(--navy);
    margin: 0 0 8px;
}

.category-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.92rem;
}

.metier-card {
    text-align: center;
    font-weight: 700;
    color: var(--navy);
}

.local-band {
    background: var(--green);
    color: white;
    text-align: center;
    border-radius: 12px;
}

.local-band h2, .local-band .label {
    color: white;
}

.site-footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 700px) {
    .nav-menu { display: none; }
    h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}

.metier-detail {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border-left: 6px solid var(--blue);
}

.metier-detail.green { border-left-color: var(--green); }
.metier-detail.navy { border-left-color: var(--navy); }

.metier-detail-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: min(38%, 320px);
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.metier-detail-content {
    position: relative;
    z-index: 1;
    max-width: 62%;
}

.metier-detail h3 {
    color: var(--navy);
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.metier-detail p {
    color: var(--muted);
    margin: 0 0 16px;
}

@media (max-width: 700px) {
    .metier-detail-visual {
        display: none;
    }
    .metier-detail-content {
        max-width: 100%;
    }
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--navy);
    color: white;
    border-radius: 12px;
    padding: 40px;
}

.cta-band h2 {
    color: white;
    margin: 0 0 8px;
}

.cta-band p {
    color: #d5dde8;
    margin: 0;
}

.about-content {
    max-width: 760px;
    margin: 0 auto 48px;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--ink);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.value-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.value-card h3 {
    color: var(--navy);
    margin: 0 0 10px;
}

.value-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.92rem;
}

.contact-form {
    display: grid;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}

.hp {
    display: none !important;
}

.notice {
    max-width: 560px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 700;
}

.notice.success {
    color: #174c31;
    background: #e7f5ed;
}

.notice.error {
    color: #7c1f1f;
    background: #fde8e8;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.contact-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px;
}

.contact-card h3 {
    color: var(--navy);
    margin: 0 0 20px;
}

.contact-item {
    margin: 0 0 18px;
    color: var(--ink);
}

.contact-item strong {
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
.category-card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}
.category-card-img {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    background-color: #eef1f5;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}
.metier-card-img {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}
.produit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 1100px) {
    .produit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .produit-grid {
        grid-template-columns: 1fr;
    }
}
.produit-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #d0d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 6px rgba(11, 31, 77, 0.06);
}
.produit-photo {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 16px;
}
.btn-devis {
    margin-top: auto;
    align-self: stretch;
}
.produit-docs {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.85em;
}
.doc-link {
    color: #1a5fb4;
    text-decoration: underline;
}
.admin-banner {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    padding: 16px 24px;
    margin: 0;
}
.admin-banner ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.produit-photo-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.produit-meta {
    font-size: 0.85em;
    color: #777;
    margin: 4px 0;
}
/* Référence produit, affichée sur chaque fiche */
.produit-ref {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--navy);
    margin: 0 0 6px;
}

/* Bloc « Compatible avec » — replié, une ligne par produit */
.compatibles-liste {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.compatibles-liste li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-top: 1px solid #eef1f5;
    font-size: 0.92em;
    line-height: 1.35;
}
.compatibles-liste li:first-child {
    border-top: 0;
}
.compatible-ref {
    flex: none;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92em;
    letter-spacing: 0.03em;
}
.compatible-nom {
    flex: 1 1 auto;
    color: var(--muted);
    min-width: 0;
}
.compatible-lien {
    flex: none;
    color: #1a5fb4;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: underline;
}

/* Halo d'arrivée sur une fiche ouverte depuis un lien « Voir » */
.produit-card.produit-cible {
    animation: halo-fiche 2.8s ease-out;
}
@keyframes halo-fiche {
    0%   { box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.75); border-color: var(--blue); }
    70%  { box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.45); border-color: var(--blue); }
    100% { box-shadow: 0 2px 6px rgba(11, 31, 77, 0.06); border-color: #d0d5db; }
}
@media (prefers-reduced-motion: reduce) {
    .produit-card.produit-cible {
        animation: none;
        box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.6);
        border-color: var(--blue);
    }
}
.produit-details {
    margin: 8px 0;
    font-size: 0.9em;
}
.produit-details summary {
    cursor: pointer;
    color: #1a5fb4;
    font-weight: 600;
    list-style: none;
}
.produit-details summary::-webkit-details-marker {
    display: none;
}
.produit-details summary::before {
    content: "▸ ";
}
.produit-details[open] summary::before {
    content: "▾ ";
}
.produit-details p {
    margin: 8px 0;
}
.produit-badges {
    margin: 4px 0;
}
.badge-categorie {
    display: inline-block;
    background: #eef4ff;
    color: #1a5fb4;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 4px;
}
body.catalogue-page {
    background: #ffffff;
}
.catalogue-notice {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #fff8e6;
    border: 1px solid #ffe8b3;
    border-radius: 20px;
    font-size: 0.85em;
    color: #7a5c00;
}
.filtre-btn {
    background: white;
    border: 1px solid #d0d5db;
    color: var(--navy);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.filtre-btn:hover {
    background: #eef4ff;
}
.filtre-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.lien-retour-metiers {
    display: block;
    text-align: center;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    margin: -12px 0 24px;
}
.lien-retour-metiers:hover {
    text-decoration: underline;
}
/* Liens de contexte sous le titre : retour aux métiers, voir tout le catalogue */
.catalogue-liens {
    margin: 10px 0 0;
    font-size: 0.95em;
}
.catalogue-liens a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}
.catalogue-liens a:hover {
    text-decoration: underline;
}
.catalogue-liens .separateur {
    color: var(--muted);
    margin: 0 8px;
}
.produit-sous-section {
    margin: 10px 0;
}
.produit-sous-section h5 {
    font-size: 0.8em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 4px;
}
.produit-onglets {
    display: flex;
    gap: 4px;
    margin: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}
.onglet-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.onglet-btn.active {
    color: var(--navy);
    border-bottom-color: var(--blue);
}
.onglet-contenu {
    display: none;
}
.onglet-contenu.active {
    display: block;
}
.badge-origine {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72em;
    font-weight: 700;
    color: var(--ink);
    background: #f4f8fb;
    border: 1px solid #d0d5db;
    border-radius: 20px;
    padding: 3px 10px;
    margin: 4px 0;
}
/* Drapeaux d'origine — SVG intégrés, aucun fichier externe à charger */
.drapeau,
.drapeau-fr,
.drapeau-es,
.drapeau-eu {
    display: inline-block;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #d0d5db;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: none;
}
.drapeau-fr { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA0MCI+PHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjQwIiBmaWxsPSIjMDAyMzk1Ii8+PHJlY3QgeD0iMjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSI0MCIgZmlsbD0iI2ZmZmZmZiIvPjxyZWN0IHg9IjQwIiB3aWR0aD0iMjAiIGhlaWdodD0iNDAiIGZpbGw9IiNlZDI5MzkiLz48L3N2Zz4="); }
.drapeau-es { background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA0MCI+PHJlY3Qgd2lkdGg9IjYwIiBoZWlnaHQ9IjQwIiBmaWxsPSIjYWExNTFiIi8+PHJlY3QgeT0iMTAiIHdpZHRoPSI2MCIgaGVpZ2h0PSIyMCIgZmlsbD0iI2YxYmY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NjQgMTkuMjYsMTMuNTkgMTkuNzUsMTUuMTMgMTguNDUsMTQuMTggMTcuMTQsMTUuMTMgMTcuNjQsMTMuNTkgMTYuMzQsMTIuNjQgMTcuOTUsMTIuNjQiLz48cG9seWdvbiBwb2ludHM9IjIzLjMzLDYuMjMgMjMuODMsNy43NiAyNS40NCw3Ljc2IDI0LjE0LDguNzEgMjQuNjQsMTAuMjUgMjMuMzMsOS4zMCAyMi4wMiwxMC4yNSAyMi41Miw4LjcxIDIxLjIyLDcuNzYgMjIuODMsNy43NiIvPjwvZz48L3N2Zz4="); }
.badge-tag {
    display: inline-block;
    background: #f4f9f4;
    color: #7cb342;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 4px;
}
.produit-card h4 {
    min-height: 2.8em;
    line-height: 1.4em;
    margin: 0 0 6px;
}
.produit-infos {
    min-height: 8.6em;
}
/* Recherche du catalogue : par référence ou par nom de produit */
.catalogue-recherche {
    margin: 28px auto 0;
    width: min(560px, 100%);
}
.recherche-boite {
    position: relative;
    display: flex;
    align-items: center;
}
.recherche-icone {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--muted);
    pointer-events: none;
}
.recherche-champ {
    width: 100%;
    padding: 13px 46px 13px 46px;
    border-radius: 999px;
    border: 1px solid #d0d5db;
    background: white;
    color: var(--navy);
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
}
.recherche-champ::placeholder {
    color: var(--muted);
    font-weight: 400;
}
.recherche-champ::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.recherche-champ:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.recherche-effacer {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.recherche-effacer:hover {
    background: var(--off);
    color: var(--navy);
}
.recherche-compte {
    text-align: center;
    margin: 10px 0 0;
    font-weight: 600;
    color: var(--navy);
}
.recherche-compte a {
    color: var(--navy);
    text-decoration: underline;
}

.catalogue-filtres {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 32px;
    flex-wrap: wrap;
}
.filtre-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95em;
}
.filtre-select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #d0d5db;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--navy);
    background: white;
    cursor: pointer;
    min-width: 260px;
}
.filtre-select:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.metier-actif-notice {
    text-align: center;
}
.metier-actif-notice a {
    color: var(--navy);
    text-decoration: underline;
    font-weight: 700;
}

/* Grille des métiers (metiers.php) — une carte par ligne */
.metier-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.metier-liste .metier-detail {
    margin-bottom: 0;
}

/* Aperçu des métiers en page d'accueil : 5 par ligne */
.metiers-preview .metier-grid {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1000px) {
    .metiers-preview .metier-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 700px) {
    .metiers-preview .metier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 460px) {
    .metiers-preview .metier-grid {
        grid-template-columns: 1fr;
    }
}
/* Bandeau de présentation d'une gamme (catalogue.php?gamme=...) */
.gamme-intro {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--blue);
    border-radius: 10px;
    padding: 28px 30px;
    margin-bottom: 28px;
}
.gamme-intro h3 {
    color: var(--navy);
    margin: 0 0 12px;
    font-size: 1.3rem;
}
.gamme-intro p {
    color: var(--ink);
    margin: 0 0 14px;
    max-width: 72ch;
}
.gamme-intro .btn {
    margin-top: 6px;
}
/* ===================== Demande de devis ===================== */

/* Bouton flottant, présent dès qu'un produit est sélectionné */
.devis-flottant {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: inline-block;
    background: var(--green);
    color: white;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(11, 31, 77, 0.28);
}
.devis-flottant:hover {
    background: #6da23a;
}
.devis-flottant[hidden] {
    display: none;
}

/* Bouton d'une fiche produit, quand le produit est déjà dans la demande */
.btn-devis.est-dans-le-devis {
    background: #f1f8ec;
    border-color: var(--green);
    color: #4d7a22;
}

/* Page devis.php */
.devis-vide {
    text-align: center;
    padding: 40px 0;
}
.devis-vide p {
    color: var(--muted);
    margin-bottom: 20px;
}
.devis-form[hidden] {
    display: none;
}
.devis-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
}
.devis-table th {
    text-align: left;
    background: var(--off);
    color: var(--navy);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
}
.devis-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
    vertical-align: top;
}
.devis-table tr:last-child td {
    border-bottom: 0;
}
.devis-ref {
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}
.devis-cond {
    color: var(--muted);
    font-size: 0.88em;
}
.devis-col-qte {
    width: 110px;
}
.devis-qte {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #d0d5db;
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    text-align: center;
}
.devis-qte:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.devis-retirer {
    background: none;
    border: 0;
    color: #a33;
    font: inherit;
    font-size: 0.9em;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.devis-coordonnees {
    display: grid;
    gap: 16px;
    max-width: 560px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px;
}
.devis-coordonnees h3 {
    color: var(--navy);
    margin: 0;
}
.devis-coordonnees label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-weight: 700;
}
.devis-coordonnees input,
.devis-coordonnees textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    color: var(--ink);
}
.devis-coordonnees input:focus,
.devis-coordonnees textarea:focus {
    outline: 0;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.devis-coordonnees .btn {
    justify-self: start;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.devis-rappel {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .devis-table thead {
        display: none;
    }
    .devis-table,
    .devis-table tbody,
    .devis-table tr,
    .devis-table td {
        display: block;
        width: 100%;
    }
    .devis-table tr {
        border-bottom: 1px solid #e2e8f0;
        padding: 6px 0;
    }
    .devis-table td {
        border-bottom: 0;
        padding: 4px 14px;
    }
    .devis-col-qte {
        width: auto;
    }
    .devis-flottant {
        right: 12px;
        bottom: 12px;
        padding: 12px 18px;
    }
}
.devis-appel {
    text-align: center;
    color: var(--muted);
    margin: -16px 0 28px;
}
.devis-appel a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
}
.devis-col-photo {
    width: 72px;
}
.devis-photo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.devis-photo-vide {
    background: #f0f3f7;
}
@media (max-width: 700px) {
    .devis-col-photo {
        width: auto;
    }
}

/* Pages d'information légale */
.page-legale {
    max-width: 760px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 36px 40px;
}
.page-legale h3 {
    color: var(--navy);
    margin: 32px 0 10px;
    font-size: 1.15rem;
}
.page-legale h3:first-child {
    margin-top: 0;
}
.page-legale p {
    margin: 0 0 14px;
}
.page-legale ul {
    margin: 0 0 14px;
    padding-left: 20px;
}
.page-legale li {
    margin-bottom: 4px;
}
.page-legale a {
    color: #1a5fb4;
}
@media (max-width: 700px) {
    .page-legale {
        padding: 24px 20px;
    }
}

/* Intitulés de groupe dans le menu des catégories */
.filtre-select optgroup {
    font-style: normal;
    font-weight: 700;
    color: var(--navy);
}
.filtre-select option {
    font-weight: 400;
    color: var(--ink);
}

/* Menu des catégories : même aspect que le sélecteur « Gamme »,
   avec des titres dépliables à l'intérieur du panneau. */
.filtre-menu {
    position: relative;
    display: inline-block;
}
.filtre-menu-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    padding-top: 11px;
    padding-bottom: 11px;
}
.filtre-menu-fleche {
    color: var(--muted);
    flex: none;
    font-size: 0.8em;
}
.filtre-menu-bouton[aria-expanded="true"] {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.filtre-menu-panneau {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(380px, 92vw);
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    border: 1px solid #d0d5db;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(11, 31, 77, 0.16);
    padding: 6px;
    text-align: left;
}
.filtre-menu-panneau[hidden] {
    display: none;
}
.filtre-groupe > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 11px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    color: var(--navy);
    list-style: none;
}
.filtre-groupe > summary::-webkit-details-marker {
    display: none;
}
.filtre-groupe > summary::after {
    content: "▸";
    color: var(--blue);
    margin-left: auto;
    flex: none;
}
.filtre-groupe[open] > summary::after {
    content: "▾";
}
.filtre-groupe > summary:hover {
    background: #eef4ff;
}
.filtre-groupe > summary > span:first-child {
    flex: 1 1 auto;
}
.filtre-compte {
    background: var(--off);
    color: var(--muted);
    font-size: 0.78em;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    flex: none;
}
.filtre-entrees {
    display: flex;
    flex-direction: column;
    padding: 2px 0 6px 12px;
    border-left: 2px solid #eef1f5;
    margin-left: 18px;
}
.filtre-entree {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 9px 12px;
    font: inherit;
    font-size: 0.92em;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.filtre-entree:hover {
    background: #eef4ff;
    color: var(--navy);
}
.filtre-entree.active {
    background: var(--navy);
    color: white;
    font-weight: 700;
}
.filtre-entree-tout {
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid #eef1f5;
    border-radius: 6px 6px 0 0;
    margin-bottom: 4px;
}
@media (max-width: 600px) {
    .filtre-menu,
    .filtre-menu-bouton {
        width: 100%;
    }
}

/* Univers produits en page d'accueil : deux rangées de quatre */
.categories-preview .category-grid {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) {
    .categories-preview .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .categories-preview .category-grid {
        grid-template-columns: 1fr;
    }
}
