/* assets/style.css - Feuille de style globale */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

html, body { height: 100%; }

header {
    background: linear-gradient(135deg, #FF6600, #FFA500);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFD700;
}

/* Menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    background-color: #FF6600;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    margin-top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 18px;
    display: block;
    color: white;
    text-decoration: none;
    font-weight: normal;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #FFA500;
    color: white;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

/* Centrage du contenu textuel */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2, h3 {
    color: #FF6600;
}

article {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

:root {
    --brand-orange: #FF7A1A; /* légèrement plus clair pour meilleur contraste */
    --brand-orange-strong: #FF6600; /* couleur d'origine utilisée pour accents */
}

article h4 {
    color: #FFA500;
}

button {
    background: var(--brand-orange-strong);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--brand-orange);
}

/* Pied de page moderne et premium */
.site-footer-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2rem 1.5rem;
    background-color: #ffffff;
    margin-top: 4rem;
}

.site-footer-card {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff8f3;
    border: 1px solid #ffd5c0;
    border-radius: 20px;
    padding: 2.5rem 3rem 1.5rem 3rem;
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.04);
    box-sizing: border-box;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-left-brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-left-brand .brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff6600;
    margin: 0;
}

.footer-left-brand .brand-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6600;
    margin: 0;
}

.footer-left-brand .brand-description {
    font-size: 0.95rem;
    color: #6b5f57;
    margin: 0;
    line-height: 1.6;
}

.footer-left-brand .brand-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6b5f57;
    margin-top: 0.5rem;
}

.icon-orange {
    color: #ff6600;
    flex-shrink: 0;
}

.footer-middle-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-white-box {
    background: #ffffff;
    border: 1px solid rgba(255, 102, 0, 0.08);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-icon-wrapper {
    color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.feature-text h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #3c322b;
    margin: 0;
}

.feature-text p {
    font-size: 0.8rem;
    color: #8c7f76;
    margin: 0;
    line-height: 1.4;
}

.footer-cta-wrapper {
    display: flex;
    justify-content: center;
}

.footer-devis-btn {
    background: linear-gradient(90deg, #ff5500, #ff7700);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.25);
    transition: all 0.2s ease-in-out;
}

.footer-devis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.35);
    filter: brightness(1.05);
}

.footer-right-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #3c322b;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 102, 0, 0.15);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row span {
    word-break: break-all;
}

.contact-row a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-row a:hover {
    color: #ff6600;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 102, 0, 0.15);
    padding-top: 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b5f57;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav-links a:hover {
    color: #ff6600;
}

.nav-divider {
    color: rgba(255, 102, 0, 0.2);
    font-size: 0.9rem;
}

.footer-social-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b5f57;
}

.social-buttons {
    display: flex;
    gap: 0.6rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid rgba(255, 102, 0, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b5f57;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
    color: #34a853;
    border-color: #34a853;
}

.facebook-btn:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.youtube-btn:hover {
    color: #ff0000;
    border-color: #ff0000;
}

.footer-legal-bar {
    text-align: center;
    font-size: 0.85rem;
    color: #8c7f76;
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(255, 102, 0, 0.15);
    padding-top: 1.25rem;
}

.footer-legal-bar a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.footer-legal-bar a:hover {
    color: #ff6600;
}

@media (max-width: 1200px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-white-box {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }
    
    .site-footer-card {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .site-footer-card {
        padding: 1.5rem 1.25rem;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .site-logo {
        height: 48px;
    }
}

/* Styles pour le header avec logo et icônes */
header {
    background: linear-gradient(135deg, #FF6600, #FFA500);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    height: 60px;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFD700;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons img {
    height: 30px;
    width: auto;
    transition: opacity 0.3s;
}

.social-icons img:hover {
    opacity: 0.7;
}

/* Header actions (login button) */
.header-actions {
    margin-left: 1rem;
}

.login-btn {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.08s ease;
    border: 1px solid rgba(255,255,255,0.06);
}
.login-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.logout-btn {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.08s ease;
    border: 1px solid rgba(255,255,255,0.06);
}
.logout-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

/* Inline editor toolbars */
.inline-edit-toolbar {
    z-index: 2147483600; /* very high to appear above most things */
}

.inline-image-toolbar {
    position: fixed !important; /* ensure it's not clipped by overflow parents */
    z-index: 2147483647 !important; /* max safe z-index */
    pointer-events: auto !important;
    display: flex !important;
    gap: 6px !important;
    background: rgba(0,0,0,0.55) !important;
    padding: 6px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3) !important;
}

.inline-image-toolbar button {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.inline-image-toolbar button:hover { filter: brightness(1.1); transform: translateY(-1px); }


/* Bouton de connexion dans la navigation */
/* login styles removed */

/* Admin specific */
.admin-topbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
}
.admin-logout-btn {
    background: var(--brand-orange-strong);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.05);
}
.admin-logout-btn:hover {
    background: var(--brand-orange);
}

/* Admin dashboard layout */
.admin-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Rendre la zone admin pleine hauteur et permettre au contenu principal
   d'utiliser tout l'espace disponible. */
.admin-container {
    min-height: calc(100vh - 120px); /* réserve pour header/top margin */
}

.admin-main {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    min-height: 0; /* important pour flex enfants */
}

/* Le formulaire doit occuper l'espace vertical et permettre au textarea
   d'être flexible (remplir la zone restante). */
.admin-main form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1 1 auto;
    min-height: 0;
}

/* Wrapper des contrôles bas de formulaire (boutons) pour ne pas être étiré */
.admin-main form .form-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex: 0 0 auto;
}

/* Faire en sorte que la zone d'édition prenne l'espace restant */
textarea#page-content, .trumbowyg-box, .trumbowyg-editor {
    flex: 1 1 auto;
    height: auto;
    min-height: 0; /* permet le redimensionnement par flex */
}

.admin-sidebar {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.admin-sidebar a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: var(--brand-orange-strong);
    color: #fff;
}

.admin-main {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* Styles spécifiques pour la liste des posts (admin) */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-topbar-left h2 {
    margin: 0 0 0.2rem 0;
}
.admin-topbar-left .muted {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}
.admin-topbar-right {
    display:flex;
    align-items:center;
    gap:0.6rem;
}
.admin-user { font-weight:600; color:#333; }

.admin-actions-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    margin-bottom:1rem;
}
.search-form { display:flex; gap:0.5rem; align-items:center; }
.search-input { padding:0.5rem 0.6rem; border-radius:6px; border:1px solid #ddd; min-width:220px; }
.cta-button {
    background: linear-gradient(180deg, var(--brand-orange-strong), var(--brand-orange));
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255,122,26,0.12);
}
.cta-button:hover { transform: translateY(-2px); }

.table-responsive { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; font-size:0.95rem; }
.admin-table thead th { text-align:left; padding:0.75rem 0.6rem; color:#444; border-bottom:1px solid #eee; }
.admin-table tbody td { padding:0.9rem 0.6rem; vertical-align:middle; border-bottom:1px solid #f4f4f4; }
.admin-table tbody tr:hover { background:#fffaf6; }
.admin-table .thumb { max-width:120px; max-height:64px; border-radius:6px; object-fit:cover; box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.post-title { font-weight:700; color:#222; }
.post-excerpt { color:#666; font-size:0.9rem; margin-top:0.25rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace; color:#666; font-size:0.9rem; }
.empty { text-align:center; color:#666; padding:1.4rem 0; }

.btn { background: var(--brand-orange-strong); color:white; padding:0.4rem 0.6rem; border-radius:6px; text-decoration:none; border: none; display:inline-block; }
.btn:hover { background: var(--brand-orange); }
.btn-small { padding:0.3rem 0.5rem; font-size:0.9rem; margin-right:0.35rem; }
.btn-danger { background:#d9534f; }
.btn-danger:hover { background:#c9302c; }

@media (max-width: 720px) {
    .admin-container { grid-template-columns: 1fr; }
    .admin-actions-row { flex-direction:column; align-items:stretch; }
    .search-form { width:100%; }
    .search-input { width:100%; }
    .admin-table thead { display:none; }
    .admin-table tbody td { display:block; width:100%; }
    .admin-table tbody tr { margin-bottom: 0.75rem; display:block; background:white; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.04); padding:0.6rem; }
    .admin-table tbody td:before { content: ''; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffaf6, #fff);
    border: 1px solid rgba(0,0,0,0.03);
}

.stat-card h3 {
    margin: 0 0 0.4rem 0;
    color: var(--brand-orange-strong);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .admin-container { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}



/* Menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #333 !important;
    padding: 0.75rem 1rem;
    display: block;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #FF6600 !important;
}

/* Amélioration visuelle du sous-menu pour le header principal */
.site-nav {
    position: relative;
}

.site-nav .dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-nav .dropdown > a .caret,
.site-nav .dropdown > a svg.caret {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.95;
}

.site-nav .dropdown:hover > a .caret,
.site-nav .dropdown:focus-within > a .caret,
.site-nav .dropdown:hover > a svg.caret,
.site-nav .dropdown:focus-within > a svg.caret {
    transform: translateY(2px) rotate(180deg);
}

.site-nav .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
    min-width: 240px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    padding: 6px 0;
    backdrop-filter: blur(3px);
}

.site-nav .dropdown:hover .dropdown-menu,
.site-nav .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px) scale(1);
}

.site-nav .dropdown-menu li {
    padding: 0 0.4rem;
}

.site-nav .dropdown-menu a {
    padding: 0.65rem 1rem;
    color: #333 !important;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .dropdown-menu a:hover {
    background-color: #f0f8ff;
    color: #FF6600 !important;
    transform: translateX(4px);
}

.menu-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.menu-emoji {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 8px;
    border-radius: 3px;
    background: transparent;
}

.site-nav .dropdown-menu a .meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    margin-top: 0.18rem;
}

/* small visual separator between groups */
.site-nav .dropdown-menu .group-sep {
    height: 8px;
}

/* Responsive tweak: align dropdown to left on small screens */
@media (max-width: 900px) {
    .site-nav .dropdown-menu { left: 0; transform: translateX(0) translateY(0); min-width: 180px; }
}

/* Responsive pour le header */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .site-header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }
    main {
        padding: 1rem;
    }
    header h1 {
        font-size: 2rem;
    }
}

/* Styles spécifiques pour types_clim */
section {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #fff;
}

section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: block;
}

section img:hover {
    transform: scale(1.05);
}

/* Images dynamiques */
article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: block;
}

article img:hover {
    transform: scale(1.05);
}

section ul {
    list-style-type: disc;
    margin-left: 1rem;
}

/* Styles pour formulaires */
form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

address {
    font-style: normal;
    background: #e9ecef;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* === NOUVELLES STYLES POUR LA PAGE D'ACCUEIL === */

/* Section Hero */
.hero-section {
    background: linear-gradient(135deg, #FFE5CC 0%, #FFF8F5 100%);
    color: #333;
    padding: 2rem 2rem;
    text-align: center;
    min-height: 30vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/agir%20climatisation/assets/images/agir/rubrique-climatisation.jpg') center/cover;
    opacity: 0.08;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #FF6600;
}

.hero-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: #333;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #333;
}

.feature-icon {
    background: #FF6600;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
} */

/* Section Services */
.services-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.services-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.services-section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #FF6600;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FF6600;
    position: relative;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF6600;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    background: #FF6600;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.service-link:hover {
    background: #e55a00;
    color: white;
}

/* Section Blog */
.blog-section {
    padding: 5rem 2rem;
    background: #FFF8F5;
}

.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.blog-section > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    /* Limiter la largeur max pour éviter l'étirement quand il y a peu de cartes */
    max-width: 100%;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Empêcher les cartes de s'étirer au-delà d'une taille raisonnable */
    max-width: 450px;
    justify-self: start;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-content p {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    color: #FF6600;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #e55a00;
}

.blog-cta {
    text-align: center;
}

/* Section CTA Moderne */
.cta-modern-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3rem 1.5rem;
    background-color: #ffffff;
}

.cta-modern-card {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid #ffd5c0;
    background: linear-gradient(90deg, #fffcf9 0%, #fff2ea 40%, rgba(246, 235, 225, 0.4) 100%), url('images/agir/cta_living_room.png') right center / contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4rem;
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.03);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.cta-modern-left {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    z-index: 2;
}

.cta-modern-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.cta-tag {
    color: #ff6600;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.cta-heading {
    font-size: 2.6rem;
    font-weight: 800;
    color: #2e2621;
    margin: 0;
    line-height: 1.2;
}

.cta-heading .highlight-orange {
    color: #ff6600;
    display: block;
    font-size: 2.8rem;
    margin-top: 0.2rem;
}

.cta-description {
    font-size: 1rem;
    color: #6b5f57;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.cta-features-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.cta-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3c322b;
    background: rgba(255, 102, 0, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 0, 0.1);
}

.badge-icon-box {
    color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 102, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.phone-icon-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-text h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2e2621;
    margin: 0;
}

.header-text p {
    font-size: 0.8rem;
    color: #8c7f76;
    margin: 0;
}

.phone-display {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0.25rem 0;
}

.phone-display a {
    color: #ff6600;
    text-decoration: none;
}

.devis-orange-btn {
    background: linear-gradient(90deg, #ff5500, #ff7700);
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.25);
    transition: all 0.2s;
}

.devis-orange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.35);
    filter: brightness(1.05);
}

.lock-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #8c7f76;
    margin-top: -0.25rem;
}

@media (max-width: 1100px) {
    .cta-modern-card {
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2.5rem;
        background: linear-gradient(180deg, #fffcf9 0%, #fff2ea 100%);
    }

    .cta-modern-left {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .cta-modern-right {
        justify-content: center;
        width: 100%;
    }

    .cta-features-row {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .cta-heading {
        font-size: 2rem;
    }

    .cta-heading .highlight-orange {
        font-size: 2.2rem;
    }

    .phone-display {
        font-size: 1.8rem;
    }
}
/* Section CTA Finale */
.cta-section {
    padding: 4rem 2rem;
    background: #fff8f3;
    border: 1px solid #ffd5c0;
    border-radius: 20px;
    text-align: center;
    margin: 3rem auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.cta-section h2 {
    color: #2e2621;
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #6b5f57;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #3c322b;
    font-size: 1rem;
}

.cta-feature .feature-icon {
    background: #ff6600;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .cta-button {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.cta-buttons .cta-button.primary {
    background: linear-gradient(90deg, #ff5500, #ff7700);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.25);
    text-decoration: none;
}

.cta-buttons .cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.35);
    filter: brightness(1.05);
}

.cta-buttons .cta-button.secondary {
    background: white;
    color: #ff6600;
    border: 2px solid #ff6600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.cta-buttons .cta-button.secondary:hover {
    background: rgba(255, 102, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        flex: none;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-feature {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* === STYLES SPÉCIFIQUES POUR LA PAGE CONTACT === */

.contact-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h2 {
    color: #FF6600;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-block h3 {
    color: #FF6600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-block p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.info-block a {
    color: #FF6600;
    text-decoration: none;
    font-weight: 500;
}

.info-block a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h2 {
    color: #FF6600;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-form > p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.success-message p {
    margin: 0.5rem 0;
}

/* Editor sizing: augmenter la fenêtre d'édition pour WYSIWYG et textarea classiques */
textarea#page-content,
textarea[name="content"] {
    min-height: 480px;
    height: 480px;
}
.trumbowyg-box { /* conteneur */
    min-height: 480px;
}
.trumbowyg-editor { /* zone éditable interne */
    min-height: 420px; /* laisser la barre d'outils visible */
}

/* Responsive pour la page contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info h2,
    .contact-form h2 {
        font-size: 1.5rem;
    }
}

/* === STYLES SPÉCIFIQUES POUR LA PAGE BLOG === */

.blog-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    text-align: center;
    margin-bottom: 3rem;
}

.search-container h2 {
    color: #FF6600;
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* === STYLES SPÉCIFIQUES POUR LA PAGE TYPES DE CLIM === */

.types-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.types-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.types-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.types-intro h2 {
    color: #FF6600;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.types-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.type-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.type-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.type-card:hover .type-image img {
    transform: scale(1.05);
}

.type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 102, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.type-content {
    padding: 2rem;
}

.type-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.type-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.type-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #555;
}

.feature-icon {
    color: #FF6600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.type-price {
    margin-bottom: 1.5rem;
}

.price-range {
    background: #f0f8ff;
    color: #FF6600;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

.type-button {
    display: inline-block;
    background: #FF6600;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    border: 2px solid #FF6600;
}

.type-button:hover {
    background: #e55a00;
    border-color: #e55a00;
    color: white;
    transform: translateY(-2px);
}

.types-cta {
    background: linear-gradient(135deg, #FFB366 0%, #FFD4AA 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 2rem;
}

.types-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.types-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.types-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive pour la page types */
@media (max-width: 768px) {
    .types-section {
        padding: 2rem 1rem;
    }

    .types-intro h2 {
        font-size: 2rem;
    }

    .types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .type-card {
        margin: 0;
    }

    .type-content {
        padding: 1.5rem;
    }

    .type-content h3 {
        font-size: 1.3rem;
    }

    .types-cta {
        padding: 2rem 1rem;
    }

    .types-cta h2 {
        font-size: 1.5rem;
    }

    .types-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === STYLES SPÉCIFIQUES POUR LA PAGE MARQUES === */

.brands-intro-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.brands-intro-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.brands-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.brands-intro p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
}

.brands-section {
    padding: 5rem 2rem;
    background: white;
}

.brands-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.brand-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6600, #FFA500);
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #FF6600;
}

.brand-logo {
    width: 120px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.brand-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.brand-features .feature-item:last-child {
    border-bottom: none;
}

.brand-features .feature-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.brand-features span:last-child {
    color: #555;
    font-weight: 500;
}

/* Section Avantages */
.advantages-section {
    padding: 5rem 2rem;
    background: #FFF8F5;
}

.advantages-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design pour la page marques */
@media (max-width: 768px) {
    .brands-intro-section {
        padding: 3rem 1rem;
    }

    .brands-intro h2 {
        font-size: 2rem;
    }

    .brands-intro p {
        font-size: 1.1rem;
    }

    .brands-section {
        padding: 3rem 1rem;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .brand-card {
        padding: 1.5rem;
    }

    .brand-logo {
        width: 100px;
        height: 60px;
    }

    .brand-content h3 {
        font-size: 1.5rem;
    }

    .advantages-section {
        padding: 3rem 1rem;
    }

    .advantages-section h2 {
        font-size: 2rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        padding: 1.5rem;
    }
}

/* === STYLES POUR LE HEADER === */

.site-header-wrap {
    background: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

/* Ligne supérieure (blanche) */
.site-header-top {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 2rem;
    transition: background-color 0.3s;
}

.header-top-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.site-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.header-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Barre d'outils méta (réseaux sociaux, connexion, etc.) */
.header-meta-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
}

.header-meta-actions .social-icons img {
    width: 20px;
    height: 20px;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-meta-actions .social-icons a:hover img {
    opacity: 1;
    transform: translateY(-1px);
}

.header-meta-actions .welcome-msg {
    color: #4a5568;
    font-weight: 500;
}

.header-meta-actions .login-btn,
.header-meta-actions .logout-btn,
.header-meta-actions .register-btn {
    min-height: 28px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #f3f4f6;
    color: #4a5568 !important;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    backdrop-filter: none;
}

.header-meta-actions .login-btn:hover,
.header-meta-actions .logout-btn:hover,
.header-meta-actions .register-btn:hover {
    background: #e5e7eb;
    color: #1a202c !important;
    transform: none;
    box-shadow: none;
}

/* Boutons CTA (Contact et Téléphone) */
.header-cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta-contact-btn,
.header-cta-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.12);
}

/* Bouton Contact - Outline ou Orange */
.header-cta-contact-btn {
    background-color: transparent;
    color: #FF6600 !important;
    border: 2px solid #FF6600;
}

.header-cta-contact-btn:hover {
    background-color: rgba(255, 102, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.22);
}

/* Bouton Téléphone - Plein Orange */
.header-cta-phone-btn {
    background: linear-gradient(135deg, #FF6600, #FF8800);
    color: #ffffff !important;
    border: 2px solid transparent;
}

.header-cta-phone-btn:hover {
    background: linear-gradient(135deg, #e55a00, #ff7700);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.32);
}

.cta-icon {
    flex-shrink: 0;
}

/* Ligne inférieure (Orange) */
.site-header-nav {
    background: linear-gradient(90deg, #FF6600 0%, #FFA500 100%);
    padding: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-header-nav .site-nav {
    display: flex;
    justify-content: flex-start;
}

.site-header-nav .site-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
}

.site-header-nav .site-nav-list > li {
    position: relative;
}

.site-header-nav .site-nav-list > li > a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-bottom: 3px solid transparent;
}

.site-header-nav .site-nav-list > li > a:hover,
.site-header-nav .site-nav-list > li:hover > a {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: #ffffff;
}

/* Caret dans la barre orange */
.site-header-nav .caret path {
    fill: #ffffff;
}

.site-header-nav .caret {
    margin-left: 0.35rem;
    transition: transform 0.25s;
}

.site-header-nav .dropdown:hover .caret {
    transform: rotate(180deg);
}

/* Menu déroulant ajusté pour le nouveau header */
.site-header-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-top: none;
}

.site-header-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header-nav .dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.site-header-nav .dropdown-menu li:last-child {
    border-bottom: none;
}

.site-header-nav .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333333 !important;
    font-weight: normal;
    transition: background 0.2s, color 0.2s;
}

.site-header-nav .dropdown-menu a:hover {
    background: #f8f9fa;
    color: #FF6600 !important;
}

.menu-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
    border: 1px solid #e9ecef;
}

/* Actions clients (boutons pour clients connectés) */
.client-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.thermostat-btn {
    background: #2a9d8f;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.thermostat-btn:hover {
    background: #238b7d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(42, 157, 143, 0.3);
}

.pwa-install-btn {
    background: #FF6600;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-install-btn:hover {
    background: #e55a00;
    transform: translateY(-1px);
}

/* Responsive pour le nouveau header */
@media (max-width: 1024px) {
    .header-top-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .site-brand {
        justify-content: center;
    }
    
    .header-top-right {
        align-items: center;
        width: 100%;
    }
    
    .header-meta-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-cta-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-header-top {
        padding: 0.75rem 1rem;
    }
    
    .header-nav-container {
        padding: 0;
    }
    
    .site-header-nav .site-nav {
        width: 100%;
    }

    .site-header-nav .site-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .site-header-nav .site-nav-list > li {
        width: 100%;
    }
    
    .site-header-nav .site-nav-list > li > a {
        padding: 0.85rem 1.25rem;
        border-bottom: none;
        border-left: 4px solid transparent;
        justify-content: space-between;
    }
    
    .site-header-nav .site-nav-list > li > a:hover,
    .site-header-nav .site-nav-list > li:hover > a {
        background-color: rgba(255, 255, 255, 0.08);
        border-left-color: #ffffff;
    }
    
    .site-header-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 0;
        padding-left: 1.5rem;
        width: 100%;
        min-width: 0;
        border: none;
    }
    
    .site-header-nav .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .site-header-nav .dropdown-menu a {
        color: #ffffff !important;
    }
    
    .site-header-nav .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
    }
}

/* ================================================
   ACCESSIBILITÉ - SKIP LINKS
   ================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #FF6600;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Focus styles pour la navigation au clavier */
*:focus {
    outline: 2px solid #FF6600;
    outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #FF6600;
    outline-offset: 2px;
}

/* Focus visible pour les boutons */
.btn:focus,
.cta-button:focus,
.contact-button:focus {
    outline: 3px solid #000;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.3);
}

/* Focus pour les liens de navigation */
.site-nav a:focus {
    background-color: rgba(255, 102, 0, 0.1);
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

/* ================================================
   BREADCRUMBS (FIL D'ARIANE)
   ================================================ */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb-item a {
    color: #FF6600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #e55a00;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #999;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

/* ================================================
   SERVICE IMAGE (PAGES DE DÉTAIL)
   ================================================ */
.service-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-image img {
        height: 300px;
    }
}

/* ===== CARTE MASCOTTE - GLASS / DARK ===== */
.mascotte-glass {
    display: flex;
    gap: 18px;
    align-items: center;
    max-width: 780px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 14px;
    background: rgba(20,20,25,0.72); /* glassy dark */
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.04);
}
.mascotte-glass .mascotte-img img{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.12);
    display: block;
}
.mascotte-glass .mascotte-avatar-emoji{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg,#FF6600,#E55000);
    display:flex;align-items:center;justify-content:center;color:#fff;font-size:40px;flex:0 0 96px;
}
.mascotte-glass .mascotte-content h3{
    margin:0;
    font-size:1.6rem;
    color:#FFDFAF; /* soft gold accent */
}
.mascotte-glass .mascotte-content .role{
    margin:6px 0;color:#f0e6d6;font-weight:600;
}
.mascotte-glass .mascotte-content .desc{
    margin:0;color:rgba(255,255,255,0.92);line-height:1.5;
}

@media (max-width: 720px) {
    .mascotte-glass { flex-direction: row; gap: 14px; padding: 14px; }
    .mascotte-glass .mascotte-content h3 { font-size: 1.25rem; }
}
/* Styles pour les articles de blog individuels */
.single-article {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-image {
    margin: 1.5rem 0;
    text-align: center;
}

.article-image img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.article-content {
    margin: 2rem 0;
    line-height: 1.8;
}

/* Limiter la taille des images dans le contenu */
.article-content img {
    max-width: 500px !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content p {
    margin: 1rem 0;
    text-align: justify;
}

.article-content h2 {
    margin-top: 2rem;
    color: #FF6600;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    margin-top: 1.5rem;
    color: #FFA500;
}

.article-content ul, .article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .single-article {
        padding: 1rem;
        margin: 1rem;
    }
    
    .article-image img {
        max-width: 100%;
    }
    
    .article-content img {
        max-width: 100% !important;
    }
}
