/* ====================================
   BASE GLOBALE & TYPOGRAPHIE
==================================== */

* {
  box-sizing: border-box;
}

html, body {
  padding-top: 80px; /* ou ajuste selon la hauteur réelle de ton header */
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  background-color: #fff;
  color: #000;
}

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

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  font-weight: bold;
}

p {
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 18px;
}


/* ====================================
   HEADER
==================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  color: #ff0000;
  font-size: 24px;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}


/* ====================================
   SECTION : ACCUEIL
==================================== */

.accueil {
  background: url('visuels_cbdesigner/01_fond_accueil.png') center/cover no-repeat;
  background-color: #0f0f0f;
  color: white;
  text-align: center;
  padding: 60px 0;
  position: relative;
}

.accueil .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.accueil .text {
  position: relative;
  z-index: 2;
  max-width: 1800px;
  margin: 0 auto 40px;
}

.accueil .text h1 {
  padding: 30px 0;
  font-size: 48px;
}

.accueil .text p {
  font-size: 20px;
}

.btn-red {
  display: inline-block;
  padding: 15px 15px;
  background-color: #ff0000;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 18px;
  transition: background 0.3s;
  position: relative;
  z-index: 2;
}

.btn-red:hover {
  background-color: #cc0000;
}

.avantages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 60px;
  max-width: 1800px; /* ajuste à ce qui te semble juste */
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.avantage-item {
  text-align: center;
  max-width: 250px;
  padding: 15px 0;
  margin: 0 auto;
}

.avantage-item img {
  max-width: 250px;
  margin: 0 auto 15px;
  border-radius: 12px; /* ← coins arrondis */
}

.avantage-item p {
  font-size: 20px;
  color: white;
  margin: 10px 0 0; /* ← supprime l’espace bas inutile */
}


/* ====================================
   SECTION : À PROPOS / SERVICES / ACCOMPAGNEMENT
==================================== */

.section {
  padding: 80px 20px;
}

.section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.section .text {
  flex: 1 1 50%;
  padding: 20px;
}

.section .image {
  flex: 1 1 50%;
  padding: 20px;
  text-align: center;
}

.section .image img {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.text p {
  font-size: 18px;
}

#a-propos .text p {
  text-align: justify;
}

#a-propos, #accompagnement {
  background-color: #ffffff;
  color: #000000;
}

#services, #contact {
  background-color: #0f0f0f;
  color: #ffffff;
}


/* ====================================
   SECTION : FORMULAIRE DE CONTACT
==================================== */

#contact h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form input,
form textarea,
form button {
  font-size: 18px;
  font-family: 'Segoe UI', sans-serif;
  padding: 15px;
  border-radius: 5px;
  border: none;
}

form button {
  background-color: #ff0000;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #cc0000;
}


/* ====================================
   FOOTER
==================================== */

footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #888;
  font-size: 14px;
}


/* ====================================
   RESPONSIVE (max-width: 768px)
==================================== */

@media (max-width: 768px) {
    
    .logo {
  font-size: 18px; /* ou une taille adaptée à l’écran mobile */
  padding: 10px 0;
}

body {
    padding-top: 80px; /* par exemple, si le header est plus petit sur mobile */
  }

  nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(0,0,0,0.95);
    padding: 20px 20px;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 1001;
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    flex-direction: column !important;
    align-items: stretch; /* ← Corrige le décalage */
  }
  
  .section .text {
  order: 1;
}

.section .image {
  order: 2;
}

  .section .text,
  .section .image {
    width: 100%;
    padding: 0 0px; /* ← Ajouté pour éviter les bords collés ou décalés */
    box-sizing: border-box; /* ← Assure une largeur cohérente */
  }

  .text p {
    text-align: justify;
    padding: 0 0px;
    font-size: 16px;
  }
  
  .accueil .text h1 {
  font-size: 28px;
  text-align: center;
  padding: 0;
  margin-bottom: 50px; /* <-- espace sous le titre */
}
  
  .accueil .text p {
  font-size: 16px;
  text-align: justify;
  padding: 0;
}

#accompagnement .text p {
    text-align: left;
  }

  .text h2 {
    text-align: justify;
    padding: 0 0px;
    font-size: 24px;
  }

  .btn-red {
    margin: 30px auto;
  }

  .avantages {
    flex-direction: column;
    gap: 0px;
    align-items: center; /* ← Centre les items */
  }

  .avantage-item {
    width: 80%; /* ← Pour éviter qu’elles dépassent */
    max-width: 300px;
  }

  .avantage-item img {
    width: 80%; /* ← Prend toute la largeur dispo */
    height: auto;
  }
  
  .avantage-item p {
    font-size: 18px; /* ou 13px si tu veux encore plus petit */
  }

  .section .image img {
    margin: 0 auto;
    display: block;
  }

  form input,
  form textarea {
    font-size: 16px; /* ← Réduction de la taille du texte dans le formulaire */
    font-family: 'Segoe UI', sans-serif;
  }
  
  .section .container {
    flex-direction: column !important;
  }

}

.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Quand le menu est ouvert, on transforme le burger en croix */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(9.75px, 9.75px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}