/*
 * Connect Security Go - Style principal unifié
 * Ce fichier contient tous les styles nécessaires pour le site
 */

/* ===== VARIABLES ET RESET ===== */
:root {
    --primary-color: #161F3B; /* Bleu foncé */
    --secondary-color: #9D835F; /* Doré/beige */
    --text-color: #333333;
    --light-text: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #121212;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --border-radius-lg: 10px;
    --border-radius-xl: 20px;
    --border-radius-btn: 50px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 50px;
    --container-width: 1300px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

section {
    padding: var(--spacing-xxl) 0;
}

.text-center {
    text-align: center;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.2rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text) !important;
}

.btn-primary:hover {
    background-color: #1e2a4d;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text) !important;
}

.btn-secondary:hover {
    background-color: #b39b76;
    transform: translateY(-3px);
}

.btn-devis {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-color);
    white-space: nowrap;
    text-decoration: none;
}

.btn-devis:hover {
    background-color: #b39b76;
    transform: translateY(-3px);
}

.btn-service {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
}

.btn-service::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.btn-service:hover {
    color: var(--secondary-color);
}

.btn-service:hover::after {
    width: 100%;
}

/* ===== HEADER ET NAVIGATION ===== */
header {
    background-color: rgba(22, 31, 59, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.logo img {
    height: var(--header-height);
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
}

.menu li {
    margin: 0 var(--spacing-sm);
}

.menu a {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 0.95rem;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.menu a:hover, .menu a.active {
    color: var(--secondary-color);
}

.menu a:hover::after, .menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle i {
    color: var(--light-text);
    font-size: 1.5rem;
}

.devis-btn {
    margin-left: var(--spacing-md);
}

/* Header scrolled */
header.scrolled {
    background-color: rgba(22, 31, 59, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    background-image: linear-gradient(rgba(22, 31, 59, 0.75), rgba(22, 31, 59, 0.75)), url('../img/video-hd.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(22, 31, 59, 0.8), rgba(22, 31, 59, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: white;
    line-height: 1.2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* Animation pour le texte du hero */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animate-text-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.animate-text-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    margin-bottom: var(--spacing-md);
}

.service-card p {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

/* ===== ABOUT SECTION ===== */
.about-us {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-lg);
}

.about-text p {
    margin-bottom: var(--spacing-md);
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== PARTNERS SECTION ===== */
.partners {
    background-color: var(--light-bg);
    text-align: center;
}

.partners p {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.partner-carousel {
    margin: var(--spacing-xl) 0;
}

.partner-slide {
    padding: 0 var(--spacing-md);
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.partner-slide img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== COUNTER SECTION ===== */
.counter-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: var(--spacing-xxl) 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.counter-item {
    padding: var(--spacing-lg);
}

.counter-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    font-family: 'Raleway', sans-serif;
}

.counter-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CTA SECTION ===== */
.cta {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: var(--spacing-xxl) 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

.cta h2 {
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
}

.cta p {
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.cta-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.cta-trust span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.cta-trust i {
    color: var(--secondary-color);
    margin-right: var(--spacing-xs);
}

/* ===== FOOTER ===== */
footer {
    background-color: #0f1629;
    color: var(--light-text);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-logo img {
    height: 200px;              /* ← on agrandit */
    width: auto;
    margin: 0 auto var(--spacing-md);  /* ← on centre et ajoute le bottom-margin */
    display: block;
}

footer h3 {
    color: var(--light-text);
    margin-bottom: var(--spacing-lg);
    font-size: 1.2rem;
    position: relative;
 padding-bottom: var(--spacing-sm); /* ↑ un peu plus de padding pour placer la ligne */
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -2px;                   /* ↓ on descend légèrement la ligne */
    left: 0;
    width: 50px;                    /* ↑ on agrandit la longueur de la ligne */
    height: 3px;                    /* ↑ on épaissit un peu */
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-xs);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-right: var(--spacing-sm);
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;                   /* ← on augmente la taille du container */
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
}
.social-icons a i {
    font-size: 1.5rem;             /* ← on agrandit l’icône FA à l’intérieur */
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== PAGE HEADER ===== */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.videosurveillance .page-header {
    background-image: url('../img/video-hd.jpg');
}

.anti-intrusion .page-header {
    background-image: url('../img/header-intruision.png');
}

.controle-acces .page-header {
    background-image: url('../img/controle-bio.jpg');
}

.reseau .page-header {
    background-image: url('../img/reasu-all.jpg');
}

.domotique .page-header {
    background-image: url('../img/domotique-all.jpg');
}



.devis-page .page-header {
    background-image: url('../img/devis-systeme.jpg');
}

.galerie-page .page-header {
    background-image: url('../img/gallery/gallery-main.jpg');
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(22, 31, 59, 0.8), rgba(22, 31, 59, 0.6));
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--light-text);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CAMERA SECTION ===== */
.camera-section, .alarm-section, .access-section, .network-section, .domotique-section {
    padding: var(--spacing-xxl) 0;
}

.camera-grid, .alarm-grid, .access-grid, .network-grid, .domotique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.camera-card, .alarm-card, .access-card, .network-card, .domotique-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.camera-card:hover, .alarm-card:hover, .access-card:hover, .network-card:hover, .domotique-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.camera-card-image, .alarm-card-image, .access-card-image, .network-card-image, .domotique-card-image {
    height: 200px;
    overflow: hidden;
}

.camera-card-image img, .alarm-card-image img, .access-card-image img, .network-card-image img, .domotique-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.camera-card:hover img, .alarm-card:hover img, .access-card:hover img, .network-card:hover img, .domotique-card:hover img {
    transform: scale(1.05);
}

.camera-card-content, .alarm-card-content, .access-card-content, .network-card-content, .domotique-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.camera-card-content h3, .alarm-card-content h3, .access-card-content h3, .network-card-content h3, .domotique-card-content h3 {
    margin-bottom: var(--spacing-md);
}

.camera-card-content p, .alarm-card-content p, .access-card-content p, .network-card-content p, .domotique-card-content p {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.camera-card-content .btn-service, .alarm-card-content .btn-service, .access-card-content .btn-service, .network-card-content .btn-service, .domotique-card-content .btn-service {
    align-self: flex-start;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background-color: var(--light-bg);
    padding: var(--spacing-xxl) 0;
}

.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.features-content h2 {
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-right: var(--spacing-md);
    min-width: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.features-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--spacing-xxl) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    display: flex;
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: var(--spacing-md);
    min-width: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.contact-form {
    background-color: #fff;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    :root {
        --container-width: 1140px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 960px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .about-content, .features-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .features-image {
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 720px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-lg) 0;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .menu a {
        display: block;
        padding: var(--spacing-sm) 0;
        font-size: 1.1rem;
    }
    
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header {
        height: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --container-width: 100%;
        --spacing-xxl: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-image {
        order: -1;
        text-align: center;
    }
    
    .about-image img {
        max-width: 90%;
        border-radius: var(--border-radius);
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text .btn {
        display: block;
        margin: var(--spacing-md) auto 0;
        padding: 12px 25px;
        font-size: 0.95rem;
        max-width: 200px;
        text-align: center;
    }
    
    .service-card, .camera-card, .alarm-card, .access-card, .network-card, .domotique-card {
        margin: 0 var(--spacing-md);
    }
    
    .camera-grid, .alarm-grid, .access-grid, .network-grid, .domotique-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact i {
        margin-right: var(--spacing-sm);
        font-size: 1.2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-logo {
        margin-bottom: var(--spacing-md);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .footer-logo img {
        height: 150px;
        margin: 0 auto var(--spacing-md);
        display: block;
    }
}

/* —— Override .btn-service pour en faire un vrai bouton —— */
/* 1) Image plus grande et plein cover */
.camera-card-image {
  height: 300px;          /* ↑ de 200 px à 300 px */
  overflow: hidden;
}
.camera-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* remplit toute la zone sans déformation */
}

/* 2) Carte en flex-colonne full height */
.camera-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3) Contenu : moins de blanc autour */
.camera-card-content {
  padding: 15px;          /* ↓ de 25px à 15px */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.camera-card-content h3 {
  margin-bottom: 20px;    /* ↓ plus serré entre titre et texte */
}
.camera-card-content p {
  margin-bottom: -90px;    /* ↓ moins d’espaces blancs */
  flex-grow: 1;           /* pousse le bouton vers le bas */
}

/* 4) Bouton “En savoir plus” à la fin */
.camera-card-content .btn-service {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--border-radius-btn);
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: var(--transition);
  margin-top: auto;       /* topo flex pour coller en bas */
}
.camera-card-content .btn-service::after {
  display: none !important;   /* supprime l’underline animée */
}
.camera-card-content .btn-service:hover {
  background-color: #B39B76;
  transform: translateY(-2px);
}

/* ==== Global override pour toutes les access-cards ==== */

/* 1) Zone image plus grande et cover total */
.access-card-image {
  height: 300px;           /* ↑ hauteur de 200px → 300px */
  overflow: hidden;
}
.access-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* remplissage sans déformation */
}

/* 2) Carte en flex-colonne full height */
.access-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3) Contenu : moins de blanc, bouton collé en bas */
.access-card-content {
  padding: 15px;           /* ↓ de 25px → 15px */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.access-card-content h3 {
  margin-bottom: 20px;     /* serré sous le titre */
}
.access-card-content p {
  margin-bottom: -90px;     /* serré entre paragraphes */
  flex-grow: 1;            /* pousse le bouton vers le bas */
}

/* 4) Bouton “En savoir plus” en bas, style uniforme */
.access-card-content .btn-service {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--border-radius-btn);
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: var(--transition);
  margin-top: auto;        /* flex-col → bouton en bas */
}
.access-card-content .btn-service::after {
  display: none !important; /* supprime l’underline animée */
}
.access-card-content .btn-service:hover {
  background-color: #B39B76;
  transform: translateY(-2px);
}
