/* ================================
   VARIABLES & RESET
================================ */
:root {
  --color-bg: #f7f7f7;        /* Fond gris très clair */
  --color-text: #333;         /* Couleur principale du texte */
  --color-primary: #007BFF;   /* Couleur d'accent */
  --color-white: #fff;
  --transition-fast: 0.3s;
  --font-main: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ================================
   MENU
================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-white);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: background 0.3s;
}

/* Responsive menu : mode mobile */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}

/* ================================
   SECTIONS GLOBALES
================================ */
section {
  padding: 30px 30px;   /* Espace entre les sectins */
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  color: var(--color-primary);
}
.center {
  text-align: center;
}

/* ================================
   HERO SECTION
================================ */
.hero {
  max-width: 100%;
  margin: 0;
  padding: 0;

  width: 100vw;
  min-height: 100vh;
  
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);

  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../img/hero.jpg') center/cover no-repeat;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn-hero {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.btn-hero:hover {
  background: #0056b3;
}

/* Style pour le conteneur de particules */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* pour ne pas interférer avec les clics */
  z-index: 1;           /* derrière le contenu */
}

/* Assurez-vous que le contenu du hero est positionné au-dessus */
.hero-content {
  position: relative;
  z-index: 2;
}

/* ================================
   PORTRAIT SECTION
================================ */

.portrait-container {
  display: flex;
  align-items: center; 
  gap: 40px;
}
.portrait-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portrait-image-wrapper img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.portrait-name {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text); 
}
.portrait-info {
  flex: 1;                      
  display: flex;
  flex-direction: column;
  justify-content: center;      
  line-height: 2;             
}

/* ================================
   PROXIMITÉ & SUIVI SECTION
================================ */
#proximite .content-block {
  margin-bottom: 40px;
}
#proximite .content-block2 {
  margin-bottom: 0px;
}
#proximite h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}
#proximite h3 i {
  margin-right: 5px;
}

/* ================================
   TARIFS SECTION
================================ */
.tarifs-table {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.tarifs-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px;
  font-weight: 400;
  border-radius: 6px 6px 0 0;
  text-align: center;
}
.tarifs-table td {
  background: var(--color-white);
  padding: 12px;
  text-align: center;
  color: var(--color-text);
  border-top: 1px solid #ddd;
}
.tarifs-table tr {
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ================================
   DOCUMENTS COMPTABLES
================================ */
.carousel-container {
  position: relative;
  margin: 20px auto;
  max-width: 700px;
  overflow: hidden;  
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  padding: 10px; 
}

.carousel-item img {
  width: 100%;
  display: block;
  border: 3px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}
.carousel-controls button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--color-white);
  padding: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.carousel-controls button:hover {
  background: rgba(0,0,0,0.7);
}

.doc-list {
  list-style: none;
  margin: 20px auto;
  max-width: 700px;
  padding: 0;
}
.doc-list li {
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
}
.doc-list li i {
  color: var(--color-primary);
  margin-right: 10px;
}

/* ================================
   CONTACT SECTION
================================ */
.contact-form-only {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: var(--color-text);
}

.contact-form-only h3 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

.contact-form-only form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-only input,
.contact-form-only textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
}

.contact-form-only button {
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.contact-form-only button:hover {
  background: #0056b3;
}

.contact-form-only p {
  margin-top: 15px;
  line-height: 1.6;
}

.form-alert {
  display: none; /* Caché par défaut */
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  font-size: 1rem;
}

.form-alert.success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.form-alert.error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* ================================
   LIGHTBOX (Popup pour agrandir l'image)
================================ */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  margin-top: 5%;
  display: block;
  max-width: 80%;
  max-height: 80%;
}
@media (max-width: 768px) {
  .lightbox-content {
    margin: auto;
    margin-top: 70%;
    display: block;
    max-width: 80%;
    max-height: 80%;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  transition: 0.3s;
}

.prev:hover, .next:hover {
  color: #bbb;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* ================================
   PDF
================================ */

.pdf-download {
  text-align: center;
  margin: 40px 0;
}

.btn-pdf {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-pdf:hover {
  background: #0056b3;
}

/* ================================
   FOOTER
================================ */
footer {
  background: var(--color-white);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}
footer a {
  color: var(--color-primary);
}

/* ================================
   RESPONSIVE GLOBAL
================================ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .portrait-container {
    flex-direction: column;
  }
}
