/*
 * Connect Security Go - Styles spécifiques aux pages
 * Ce fichier contient les styles pour les pages spécifiques du site
 */

/* ===== PAGE HEADER ===== */
.page-header {
    background-color: #161F3B;
    background-image: linear-gradient(rgba(22, 31, 59, 0.85), rgba(22, 31, 59, 0.85)), url('../img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    text-align: center;
    color: white;
    position: relative;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #9D835F;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #9D835F;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== PAGE VIDEOSURVEILLANCE ===== */
.videosurveillance-section {
    padding: 80px 0;
}

.videosurveillance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.videosurveillance-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.videosurveillance-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.videosurveillance-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.videosurveillance-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #161F3B;
}

.videosurveillance-card-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.videosurveillance-card-content .btn {
    align-self: flex-start;
}

/* ===== PAGE ALARME ===== */
.alarme-section {
    padding: 80px 0;
}

.alarme-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.alarme-feature {
    display: flex;
    align-items: flex-start;
}

.alarme-feature-icon {
    background-color: rgba(157, 131, 95, 0.1);
    color: #9D835F;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.alarme-feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #161F3B;
}

.alarme-feature-content p {
    color: #666;
}

/* ===== PAGE DOMOTIQUE ===== */
.domotique-section {
    padding: 80px 0;
}

.domotique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.domotique-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.domotique-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.domotique-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.domotique-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #161F3B;
}

.domotique-card-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.domotique-card-content .btn {
    align-self: flex-start;
}

/* ===== PAGE CONTACT ===== */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    background-color: #161F3B;
    padding: 40px;
    border-radius: 10px;
    color: white;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #9D835F;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info-item i {
    color: #9D835F;
    font-size: 1.5rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info-item-content p, 
.contact-info-item-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item-content a:hover {
    color: #9D835F;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #161F3B;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #9D835F;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #161F3B;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #9D835F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(157, 131, 95, 0.2);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
    color: #666;
}

.form-check a {
    color: #9D835F;
    text-decoration: none;
}

.form-check a:hover {
    text-decoration: underline;
}

.contact-map {
    margin-top: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ===== PAGE ABOUT ===== */
.about-us{
    padding: 80px 0;
}

.about-us .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
}



.about-us .about-content .about-image {
    position: relative;     /* conteneur de référence pour ::before */
}

.about-us .about-content .about-image img {
    display: block;
    width: 100%;
    border-radius: 10px;    /* coins arrondis de l’image */
}

/* le « cadre » */
.about-us .about-content .about-image::before {
    content: '';
    position: absolute;
    top: -20px;             /* décale le cadre vers le haut */
    left: -20px;            /* décale le cadre vers la gauche */
    width: calc(100% + 40px);  /* englobe toute l’image + décalage */
    height: calc(100% + 40px);
    border: 5px solid #9D835F; /* même couleur or */
    border-radius: 10px;       /* identique au img */
    z-index: -1;               /* derrière l’image */
}

.about-us .about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #161F3B;
    position: relative;
    padding-bottom: 15px;
}


.about-us .about-content h2.section-title {
  display: inline-block;          /* la largeur ne fait que la largeur du texte */
  border-bottom: 3px solid #9D835F; /* votre couleur OR */
  padding-bottom: 5px;            /* espace entre texte et ligne */
  margin-bottom: 20px;            /* garde bien d’espace sous la ligne */
}
/* ——— Désactive la barre générique sous le titre ——— */
.about-us .about-content h2.section-title::after {
  display: none !important;
  /* ou : content: none !important; */
}

.about-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text ul {
    margin-bottom: 30px;
}

.about-text li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
}

.about-text li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #9D835F;
}

.about-values {
    margin-top: 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    background-color: rgba(157, 131, 95, 0.1);
    color: #9D835F;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #161F3B;
}

.value-item p {
    color: #666;
}

.team-section {
    margin-top: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member-info {
    padding: 20px;
    text-align: center;
}

.team-member-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #161F3B;
}

.team-member-info p {
    color: #9D835F;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161F3B;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: #9D835F;
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.3rem;
    }
    
    .videosurveillance-grid,
    .domotique-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alarme-features {
        grid-template-columns: 1fr;
    }
    
    .contact-container,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .videosurveillance-grid,
    .domotique-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px;
    }
    
    .about-image::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map iframe {
        height: 300px;
    }
}

/* ==========================================================================
   PARTENAIRES – Logos + Flèches
   ========================================================================== */

/* 1) Logos plus gros et en couleur dans le carousel */
.partner-carousel img,
.partner-slide img {
  max-height: 120px;         
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: none !important;   
  opacity: 1 !important;      
}

/* 1) Styles communs aux deux flèches */
.slick-prev, 
.slick-next {
  position: absolute;            /* placement absolu dans le carousel */
  top: 50%;                      /* milieu vertical */
  transform: translateY(-50%);   /* translation pour un vrai centré */
  display: flex !important;      /* flex pour centrer le pseudo-élément */
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;        /* diamètre du cercle */
  height: 30px !important;
  background-color: rgba(255,255,255,0.8) !important; /* fond semi-opaque */
  border-radius: 50% !important; /* cercle */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  padding: 0 !important;         /* pas de padding parasite */
  z-index: 2 !important;
}

/* 2) Position horizontale */
.slick-prev { left: 10px !important; }
.slick-next { right: 10px !important; }

/* 3) Le chevron : on cible .slick-arrow (même classe Sikck crée) */
.slick-prev:before,
.slick-next:before {
  display: block !important;     /* le pseudo-élément remplit le flex container */
  line-height: 1 !important;     /* pas de gap vertical */
  margin: 0 !important;
  font-size: 24px !important;    /* taille du chevron */
  color: #000 !important;        /* noir */
  opacity: 1 !important;
  /* On ne touche pas au font-family, on hérite de celui de la page */
}

/* 4) Contenu Unicode pour de jolis chevrons */
.slick-prev:before { content: "\2039" !important; } /* ‹  Single Left-Pointing Angle Quotation Mark */
.slick-next:before { content: "\203A" !important; } /* ›  Single Right-Pointing Angle Quotation Mark */

/* === Responsive pour la section À propos === */
@media (max-width: 768px) {
  /* 1. une seule colonne et espacement */
  .about-us .about-content {
    display: grid;                       /* on reste en grid */
    grid-template-columns: 1fr;          /* une seule colonne */
    gap: var(--spacing-lg);              /* espace vertical entre texte et image */
    align-items: start;                  /* alignement au début */
  }

  /* 2. centrer le texte et l’image */
  .about-us .about-content .about-text,
  .about-us .about-content .about-image {
    text-align: center;
  }

  /* limiter la largeur de l’image pour éviter qu’elle prenne tout l’écran */
  .about-us .about-content .about-image img {
    max-width: 70%;
    height: auto;
    margin: 0 auto;                      /* centrage horizontal */
  }

  /* 3. (optionnel) passer l’image avant le texte */
  .about-us .about-content .about-image {
    order: -1;                           /* remonte l’image au-dessus du texte */
    margin-bottom: var(--spacing-md);    /* espace dessous pour ne pas coller */
  }
}

/* === Footer – centrage de “Suivez-nous” & LinkedIn sur mobile === */
@media (max-width: 576px) {
  /* on centre tout le contenu du bloc .footer-social */
  .footer-social {
    display: flex;              /* reste en flex-colonne */
    flex-direction: column;
    align-items: center;        /* CENTRAGE horizontal */
    text-align: center;         /* CENTRAGE du h3 */
    gap: var(--spacing-sm);     /* espace entre titre et icônes */
  }

  /* on centre aussi la rangée d’icônes */
  .footer-social .social-icons {
    display: flex;              /* flex row */
    justify-content: center;    /* CENTRAGE horizontal */
    width: 100%;                /* occupe toute la largeur */
  }
}


/* ——— Centre tout le contenu de la carte contact ——— */
.contact-info {
  text-align: center; /* centre logo, bandeau et tout texte */
}

/* ——— Transforme chaque ligne en flex centré ——— */
.contact-info .contact-info-item {
  display: flex;             /* déjà défini */
  align-items: center;       /* déjà défini */
  justify-content: center;   /* <— ajoutez ceci pour centrer chaque ligne */
  margin-bottom: 20px;       /* ajustez selon votre espacement souhaité */
}

/* ——— Si besoin, centre le texte dans la “boîte” de texte ——— */
.contact-info .contact-info-item > div {
  text-align: center;
}

/* ——— Centre l’icône LinkedIn en bas ——— */
.contact-info .social-icons {
  display: flex;             /* transforme en flex */
  justify-content: center;   /* centre horizontalement */
  margin-top: 30px;          /* conservez (ou ajustez) votre marge */
}
