/*
Theme Name: Sentinelle Investigations
Description: Thème WordPress fidèle au site Sentinelle original.
Version: 1.3
Author: Alexandre
*/

/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #001a4d;
  --secondary-blue: #003d99;
  --accent-blue: #0066ff;
  --light-blue: #4d9fff;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --text-gray: #666;
  --dark-gray: #333;
}

/* Base layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--light-gray);
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* FIX BARRE ADMIN WORDPRESS */
body.admin-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#wpadminbar {
  display: none !important;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 1rem 5%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-direction: row;
}

/* Logo */
.logo {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-direction: row;
}

.logo-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  color: var(--white);
}

.logo-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.logo-text p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  color: var(--white);
}

/* Desktop – menu horizontal */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s;
  display: block;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* bouton hamburger (caché sur desktop) */
.menu-toggle {
  display: none;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, rgba(0,26,77,0.85) 0%, rgba(0,61,153,0.95) 100%),
              url("detectiveprive.png") center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 1rem 3rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.2rem;
}

.cta-button {
  background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
  color: var(--white);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 61, 153, 0.22);
  display: inline-block;
}

/* ABOUT */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 60px 0 20px;
  color: var(--primary-blue);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  max-width: 500px;
}

.about-text h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-image img {
  width: 550px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.service-price {
  font-weight: 700;
  margin-top: auto;
  margin-bottom: 20px;
  color: var(--primary-blue);
  padding-top: 15px;
}

.service-card .btn-primary {
  margin-top: 0;
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(0, 61, 153, 0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 61, 153, 0.22);
}

/* CONTACT */
#contact {
  background: linear-gradient(180deg, rgba(0,26,77,0.9) 0%, rgba(0,61,153,1) 100%);
  color: #ffffff;
  padding: 60px 20px;
}

#contact .section-title { 
  color: #ffffff; 
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.contact-info {
  flex: 1 1 320px;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.contact-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item span:last-child { 
  flex: 1; 
  font-size: 1rem; 
}

.contact-form {
  flex: 1 1 420px;
  max-width: 600px;
  background: #ffffff;
  color: #000;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.contact-form h3 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(0, 61, 153, 0.18);
}

.contact-form button:hover { 
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 61, 153, 0.22);
}

/* RGPD */
.rgpd-group { 
  margin-bottom: 20px !important; 
}

.rgpd-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  cursor: pointer !important;
  color: #333 !important;
}

.rgpd-checkbox input[type="checkbox"] {
  margin: 4px 0 0 0 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.rgpd-checkbox span { 
  flex: 1 !important; 
  color: #333 !important; 
}

.rgpd-checkbox a {
  color: var(--accent-blue) !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
}

.rgpd-checkbox a:hover { 
  color: var(--secondary-blue) !important; 
}

/* FOOTER */
footer,
.site-footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

footer a,
.footer-links a {
  color: var(--light-blue);
  text-decoration: underline;
  margin: 0 0.5rem;
}

/* Layout - CORRECTION DU PROBLÈME D'ESPACE BLANC */
.site-wrapper { 
  display: block;
  min-height: 100vh;
}

.site-content { 
  display: block;
  width: 100%;
}

.site-footer { 
  width: 100%;
}

/* PAGES LÉGALES */
.page-confidentialite .hero,
.page-cgv .hero,
.page-mentions .hero {
  background: linear-gradient(135deg, #001a4d 0%, #003d99 100%);
  color: white;
  text-align: center;
  padding: 120px 20px 60px;
  min-height: 40vh;
}

.page-confidentialite .hero h1,
.page-confidentialite .hero .section-title,
.page-cgv .hero h1,
.page-cgv .hero .section-title,
.page-mentions .hero h1,
.page-mentions .hero .section-title {
  color: #ffffff !important;
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
}

.privacy-content,
.cgv-content,
.legal-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
  color: #333;
}

.privacy-content h2,
.cgv-content h2,
.legal-content h2 { 
  margin-top: 2rem; 
  margin-bottom: 1rem; 
  font-size: 1.5rem; 
  color: #001a4d !important; 
}

.cgv-content ul { 
  padding-left: 2rem; 
  margin: 1rem 0; 
  color: #333; 
}

.cgv-content li { 
  margin-bottom: 0.5rem; 
}

/* Bouton retour pages légales */
.back-button {
  display: inline-block;
  margin: 20px auto 40px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 20px rgba(0, 61, 153, 0.18);
  text-align: center;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 61, 153, 0.22);
}

.button-container {
  text-align: center;
  margin: 20px 0;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 900px) {
  .menu-toggle { 
    display: block;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1003;
    color: var(--white);
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: calc(100vh - 80px);
    background: var(--primary-blue);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 2.5rem 1rem;
    z-index: 1002;
    transition: right .28s ease, transform .28s ease;
    transform: translateX(100%);
    box-shadow: -6px 0 24px rgba(0,0,0,0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.active {
    display: flex !important;
    transform: translateX(0);
    right: 0;
  }
  
  .hero h2 { 
    font-size: 2.1rem; 
  }
  
  .contact-container { 
    flex-direction: column; 
  }
  
  .contact-info,
  .contact-form {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .about-content { 
    flex-direction: column; 
  }
  
  .about-image img { 
    max-width: 100%; 
    height: auto; 
  }
  
  .services-grid { 
    grid-template-columns: 1fr; 
  }
}

/* Menu overlay pour mobile */
.menu-overlay {
  pointer-events: none;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1001;
  transition: opacity .25s ease;
}

.menu-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}
/* Fix scroll avec navigation fixe */
#about, #services, #contact {
    scroll-margin-top: 100px; /* Hauteur nav + marge */
}

/* Alternative pour tous les ID */
section[id] {
    scroll-margin-top: 100px;
}
/* Scroll fluide */
html {
    scroll-behavior: smooth;
}

/* Fix scroll avec navigation fixe */
#about, #services {
    scroll-margin-top: 100px;
}

#contact {
    scroll-margin-top: 50px;
}
/* Trait de soulignement sous les titres */
.section-title::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 4px !important;
    background: #0066ff !important;
    margin: 15px auto 0 !important;
    border-radius: 2px !important;
}
/* Bannière Cookies */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 26, 77, 0.98);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cookie-text p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-text a {
    color: var(--light-blue);
    text-decoration: underline;
}

.btn-accept-cookies {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        min-width: 100%;
    }
    
    .btn-accept-cookies {
        width: 100%;
    }
}
/* Signature élégante pages légales */
.signature-block {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e6e9ef;
    text-align: right;
}

.signature {
    font-family: 'Brush Script MT', cursive, 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

.signature-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
    font-weight: 500;
}

.signature-date {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 10px;
    font-style: italic;
}
/* Bordure bleue en haut des cartes services */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  border-top: 4px solid var(--accent-blue); /* Bordure bleue ajoutée */
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
}