/* =================================
   STYLES - PAGE MODÈLES DE MAISONS
   Design Sidebar (Filtres à gauche)
   ================================= */

/* NOTE: Les styles de base (page-title, section-title, etc.)
   sont définis dans styles-index.css pour une cohérence globale sur tout le site.
   Ce fichier contient uniquement les styles spécifiques à la page modèles. */

/* =================================
   LAYOUT PRINCIPAL - SIDEBAR + CONTENU
   ================================= */

.modeles-layout-section {
    padding: 0 !important;
}

.modeles-layout-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* =================================
   SIDEBAR FILTRES (Colonne gauche)
   ================================= */

.sidebar-filtres {
    background: white;
    border-right: 1px solid #e8e8e8;
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    padding: 1.5rem 1rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollbar personnalisée pour la sidebar */
.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: #ee7f08;
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: #d66f00;
}

/* Compteur de résultats dans la sidebar */
.sidebar-results {
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(238, 127, 8, 0.25);
    margin-bottom: 0.3rem;
}

.sidebar-results .results-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    font-family: 'Comfortaa', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sidebar-results .results-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-top: 0.4rem;
}

/* Titre de la sidebar */
.sidebar-title {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #ee7f08;
}

/* Groupes de filtres avec accordion */
.filtre-group {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 0.5rem;
}

.filtre-group:last-of-type {
    border-bottom: none;
}

.filtre-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.3rem;
    background: transparent;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a5a5a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.filtre-group-header:hover {
    color: #ee7f08;
}

.filtre-group-header.active {
    color: #ee7f08;
}

.filtre-group-header svg:first-child {
    flex-shrink: 0;
}

.filtre-group-header span {
    flex: 1;
}

.filtre-group-header .chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.filtre-group-header.active .chevron {
    transform: rotate(180deg);
}

/* Panels de filtres */
.filtre-panel {
    display: none;
    padding: 0.7rem 0.3rem 0.3rem;
    animation: slideDown 0.3s ease;
}

.filtre-panel.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filtre-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Boutons de filtres */
.filtre-btn {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5a5a5a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filtre-btn:hover {
    border-color: #ee7f08;
    background: rgba(238, 127, 8, 0.05);
    color: #ee7f08;
    transform: translateX(3px);
}

.filtre-btn.active {
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    border-color: #ee7f08;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(238, 127, 8, 0.3);
}

.filtre-btn .count {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.filtre-btn.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* Bouton réinitialiser */
.filter-reset {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: #8a8a8a;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}

.filter-reset:hover {
    background: #2d2d2d;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-reset svg {
    flex-shrink: 0;
}

/* =================================
   CONTENU PRINCIPAL (Colonne droite)
   ================================= */

.main-content {
    background: #fafafa;
    padding: 2rem;
    min-height: 100vh;
}

/* Barre de résultats mobile (cachée en desktop) */
.results-bar-mobile {
    display: none;
}

/* Grille des modèles */
.modeles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

/* =================================
   CARTE MODÈLE
   ================================= */
.modele-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 2px solid transparent;
}

.modele-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #ee7f08;
}

/* Image du modèle */
.modele-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.modele-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.modele-card:hover .modele-image img {
    transform: scale(1.05);
}

.modele-badge {
    display: none;
}

/* Contenu de la carte */
.modele-content {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.7rem;
}

.modele-content h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e8e8e8;
    line-height: 1.2;
}

/* Pas de trait orange sous les h3 */
.modele-content h3::after {
    display: none;
}

/* Spécifications */
.modele-specs-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 0.7rem 0.6rem;
    background: #fafafa;
    border-radius: 6px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.spec-item svg {
    color: #ee7f08;
    stroke-width: 2;
    width: 26px;
    height: 26px;
}

.spec-label {
    font-size: 0.75rem;
    color: #8a8a8a;
    font-weight: 600;
    line-height: 1.2;
}

/* Anciens styles masqués */
.modele-specs,
.spec,
.modele-description,
.modele-caracteristiques {
    display: none;
}

/* Icônes équipements */
.modele-icones-equipements {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: rgba(238, 127, 8, 0.05);
    border-radius: 6px;
}

.equipement-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipement-icone:hover {
    background: #ee7f08;
    border-color: #ee7f08;
    transform: scale(1.15);
}

.equipement-icone svg {
    color: #ee7f08;
    stroke-width: 2;
    transition: color 0.3s ease;
}

.equipement-icone:hover svg {
    color: white;
}

/* Prix */
.modele-prix-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ee7f08;
    text-align: center;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, rgba(238, 127, 8, 0.08), rgba(238, 127, 8, 0.03));
    border-radius: 6px;
    border: 2px solid rgba(238, 127, 8, 0.2);
}

/* Anciens styles masqués */
.modele-footer,
.modele-prix,
.btn-details {
    display: none;
}

/* Bouton détails */
.btn-details-compact {
    width: 100%;
    padding: 0.7rem 1.2rem;
    margin-top: 0.3rem;
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(238, 127, 8, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-details-compact:hover {
    background: linear-gradient(135deg, #d66f00 0%, #ee7f08 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(238, 127, 8, 0.4);
}

.btn-details-compact svg {
    transition: transform 0.3s ease;
}

.btn-details-compact:hover svg {
    transform: translateX(4px);
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8e8e8;
    border-top-color: #ee7f08;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    font-size: 1.1rem;
    color: #8a8a8a;
}

.error-message,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #8a8a8a;
}

/* =================================
   GALERIE DANS LE MODAL
   ================================= */

.modal-galerie-principale {
    margin-bottom: 2rem;
}

.modal-galerie-principale h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ee7f08;
    padding-bottom: 0.5rem;
}

.modal-galerie {
    position: relative;
    width: 100%;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.galerie-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.galerie-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.galerie-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.galerie-slide.active {
    opacity: 1;
}

.galerie-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Boutons de navigation */
.galerie-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ee7f08;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.galerie-nav:hover {
    background: #ee7f08;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(238, 127, 8, 0.4);
}

.galerie-nav svg {
    color: #ee7f08;
    transition: color 0.3s ease;
}

.galerie-nav:hover svg {
    color: white;
}

.galerie-prev {
    left: 15px;
}

.galerie-next {
    right: 15px;
}

/* Indicateurs de pagination (dots) */
.galerie-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 1.2rem 0;
    background: white;
}

.galerie-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.galerie-dot:hover {
    background: #ee7f08;
    transform: scale(1.3);
}

.galerie-dot.active {
    background: #ee7f08;
    width: 32px;
    border-radius: 6px;
}

/* =================================
   MODAL
   ================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    animation: fadeInModal 0.3s;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #5a5a5a;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.close:hover {
    background: #ee7f08;
    color: white;
    transform: rotate(90deg);
}

/* Contenu du modal */
#modal-body {
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
}

.modal-prix {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ee7f08;
}

/* Images du modal - obsolète maintenant car tout est dans la galerie */
.modal-images {
    display: none;
}

/* Informations du modal */
.modal-infos {
    display: grid;
    gap: 1.5rem;
}

.info-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ee7f08;
    padding-bottom: 0.5rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    padding: 0.25rem 0;
    color: #5a5a5a;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

/* Puce personnalisée pour les équipements */
.info-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #ee7f08;
    border-radius: 50%;
}

/* Caractéristiques principales - icônes SVG, pas de puces */
.info-section:first-child ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.5rem;
}

.info-section:first-child ul li {
    padding-left: 0;
}

.info-section:first-child ul li::before {
    display: none;
}

.info-section ul li svg {
    color: #ee7f08;
    flex-shrink: 0;
    min-width: 18px;
}

.info-section ul li strong {
    color: #2d2d2d;
    margin-right: 0.5rem;
    font-weight: 600;
}

/* Actions du modal */
.modal-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

/* Bouton Recevoir la fiche avec prix */
.btn-recevoir-prix {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.2rem 2rem;
    background: white;
    color: #ee7f08;
    text-decoration: none;
    border: 2px solid #ee7f08;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.btn-recevoir-prix:hover {
    background: #ee7f08;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(238, 127, 8, 0.4);
}

.btn-recevoir-prix svg {
    flex-shrink: 0;
}

.btn-recevoir-prix span {
    line-height: 1.3;
}

/* Bouton Étude gratuite */
.btn-etude-gratuite {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(238, 127, 8, 0.35);
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.btn-etude-gratuite:hover {
    background: linear-gradient(135deg, #d66f00 0%, #ee7f08 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 30px rgba(238, 127, 8, 0.5);
}

.btn-etude-gratuite svg {
    flex-shrink: 0;
}

.btn-etude-gratuite span {
    line-height: 1.3;
}

.btn-contact {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(238, 127, 8, 0.3);
}

.btn-contact:hover {
    background: linear-gradient(135deg, #d66f00 0%, #ee7f08 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(238, 127, 8, 0.45);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: white;
    color: #5a5a5a;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #2d2d2d;
    color: #2d2d2d;
    background: #fafafa;
    transform: translateY(-2px);
}

/* =================================
   SECTION CTA
   ================================= */
.cta-section {
    background: white;
    border-top: 1px solid #e8e8e8;
    margin-top: 3rem;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cta-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(238, 127, 8, 0.25);
}

.cta-icon svg {
    color: white;
}

.cta-text {
    flex: 1;
    text-align: left;
}

.cta-text h2 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 0.8rem 0;
}

.cta-text h2::after {
    display: none;
}

.cta-text h2 .highlight-orange {
    color: #ee7f08;
    font-weight: 800;
}

.cta-text p {
    font-size: 1.1rem;
    color: #5a5a5a;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #2d2d2d;
    font-weight: 500;
    font-size: 0.95rem;
}

.cta-features li svg {
    color: #ee7f08;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 1.8rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 127, 8, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d66f00 0%, #ee7f08 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(238, 127, 8, 0.45);
}

.btn-cta.btn-secondary {
    background: white;
    color: #5a5a5a;
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-cta.btn-secondary:hover {
    background: #fafafa;
    border-color: #ee7f08;
    color: #ee7f08;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* =================================
   PAGINATION
   ================================= */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
    grid-column: 1 / -1;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #5a5a5a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #ee7f08;
    color: #ee7f08;
    background: rgba(238, 127, 8, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 127, 8, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    flex-shrink: 0;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #5a5a5a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #ee7f08;
    color: #ee7f08;
    background: rgba(238, 127, 8, 0.05);
    transform: scale(1.1);
}

.pagination-number.active {
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    border-color: #ee7f08;
    color: white;
    box-shadow: 0 3px 12px rgba(238, 127, 8, 0.35);
}

/* =================================
   RESPONSIVE
   ================================= */

/* Tablettes */
@media (max-width: 1024px) {
    .modeles-layout-container {
        grid-template-columns: 250px 1fr;
    }
    
    .sidebar-sticky {
        padding: 1.5rem 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .modeles-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.3rem;
    }
    
    .modele-image {
        height: 170px;
    }
    
    .modele-content h3 {
        font-size: 1.1rem;
    }
    
    .spec-item svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile et tablette */
@media (max-width: 768px) {
    .modeles-layout-container {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar devient horizontale */
    .sidebar-filtres {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
        max-height: none;
        padding: 1.5rem;
    }
    
    .sidebar-results {
        display: none;
    }
    
    .sidebar-title {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .filtre-group-header {
        padding: 1rem;
        background: #fafafa;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .filtre-panel {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    /* Afficher le compteur mobile */
    .results-bar-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        margin-bottom: 1.5rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .results-text {
        font-size: 1rem;
        font-weight: 600;
        color: #5a5a5a;
    }
    
    .results-text::before {
        content: '→ ';
        color: #ee7f08;
        font-weight: 700;
        font-size: 1.4rem;
        margin-right: 0.5rem;
    }
    
    .modeles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Galerie responsive mobile */
    .galerie-slide {
        height: 300px;
    }
    
    .galerie-nav {
        width: 38px;
        height: 38px;
    }
    
    .galerie-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .galerie-prev {
        left: 10px;
    }
    
    .galerie-next {
        right: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 3% auto;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-section:first-child ul {
        grid-template-columns: 1fr;
    }
    
    .btn-recevoir-prix,
    .btn-etude-gratuite {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-contact,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* CTA responsive tablette */
    .cta-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cta-text {
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
    }
    
    .cta-features {
        justify-content: center;
    }
    
    .cta-actions {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .modele-card {
        margin: 0;
    }
    
    .modele-image {
        height: 150px;
    }
    
    .modele-content {
        padding: 0.9rem 1rem;
    }
    
    .modele-content h3 {
        font-size: 1.05rem;
        padding-bottom: 0.5rem;
    }
    
    .modele-specs-compact {
        gap: 0.5rem;
        padding: 0.6rem 0.5rem;
    }
    
    .spec-item svg {
        width: 24px;
        height: 24px;
    }
    
    .spec-label {
        font-size: 0.7rem;
    }
    
    .modele-icones-equipements {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .equipement-icone {
        width: 32px;
        height: 32px;
    }
    
    .modele-prix-compact {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
    }
    
    .btn-details-compact {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    #modal-body {
        padding: 1.5rem;
    }
    
    /* Galerie responsive petit mobile */
    .galerie-slide {
        height: 250px;
    }
    
    .galerie-nav {
        width: 35px;
        height: 35px;
    }
    
    .galerie-prev {
        left: 8px;
    }
    
    .galerie-next {
        right: 8px;
    }
    
    .galerie-dots {
        gap: 8px;
        padding: 1rem 0;
    }
    
    .galerie-dot {
        width: 10px;
        height: 10px;
    }
    
    .galerie-dot.active {
        width: 24px;
    }
    

    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-prix {
        font-size: 1.3rem;
    }
    
    .btn-recevoir-prix,
    .btn-etude-gratuite {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
    }
    
    .btn-recevoir-prix svg,
    .btn-etude-gratuite svg {
        width: 18px;
        height: 18px;
    }
    
    .close {
        right: 1rem;
        top: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }
    
    /* CTA responsive mobile */
    .cta-icon {
        width: 60px;
        height: 60px;
    }
    
    .cta-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
    
    .cta-text h2 .highlight-orange {
        font-size: 1.6rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Pagination responsive mobile */
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .pagination-numbers {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ===========================
   MODAL DEMANDE DE PRIX
   =========================== */

.modal-overlay-demande {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay-demande.active {
    display: flex;
}

.modal-demande-prix {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-demande-header {
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-demande-header h2 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.modal-demande-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.4;
}

.btn-close-demande {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
}

.btn-close-demande:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-demande-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #ee7f08;
    margin-left: 3px;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8a8a8a;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ee7f08;
    box-shadow: 0 0 0 3px rgba(238, 127, 8, 0.1);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-group-checkbox label {
    font-size: 0.85rem;
    color: #5a5a5a;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.form-group-checkbox label a {
    color: #ee7f08;
    text-decoration: none;
    font-weight: 600;
}

.form-group-checkbox label a:hover {
    text-decoration: underline;
}

.captcha-group {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.captcha-question {
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.captcha-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-submit-demande {
    background: linear-gradient(135deg, #ee7f08 0%, #ff9b2d 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 4px 15px rgba(238, 127, 8, 0.3);
}

.btn-submit-demande:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 127, 8, 0.4);
}

.btn-submit-demande:active {
    transform: translateY(0);
}

.btn-submit-demande:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-submit-demande svg {
    width: 20px;
    height: 20px;
}

/* Messages de statut */
.message-succes,
.message-erreur {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.message-succes {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-erreur {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-succes.visible,
.message-erreur.visible {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-demande-prix {
        max-width: 100%;
        margin: 0 0.5rem;
    }
    
    .modal-demande-header {
        padding: 1.2rem 1.5rem;
    }
    
    .modal-demande-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-demande-body {
        padding: 1.5rem;
    }
    
    .btn-submit-demande {
        width: 100%;
        justify-content: center;
    }
}
