/*
Theme Name: Facilisiteone
Template: twentytwenty
Version: 1.0
*/


a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}


/* Menu flottant latéral */
#menu-flottant-lateral {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999; /* Toujours au-dessus */
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  padding: 5px;
  pointer-events: auto;
}

#menu-flottant-lateral a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  background: #F5F1EE;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

#menu-flottant-lateral a:hover {
  background: #E0DDD8;
}

#menu-flottant-lateral img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}




.menu {
  display: flex;
  justify-content: center;    /* Centre le menu */
  gap: 20px;
  text-transform: uppercase;
  color: #000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.menu li a:hover {
  color: #333;
}



.btn-contact {
  background-color: #fff;      /* Fond blanc */
  color: #000;                 /* Texte noir */
  padding: 10px 20px;
  border: 2px solid #000;      /* Contour noir */
  border-radius: 9999px;       /* Bords ultra arrondis */
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.btn-contact:hover {
  background-color: #000;      /* Fond noir au hover */
  color: #fff;                 /* Texte blanc au hover */
}


.social-icons a {
  display: inline-block;
  vertical-align: middle;
}
.social-icons img {
  display: block;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

/* Responsive pour tablettes (<= 1024px) */
@media (max-width: 1024px) {

  .custom-header-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px;
  }

  .custom-header-bar > div {
    flex: 1 1 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center !important;
    margin-bottom: 10px;
  }

  .custom-logo img {
    max-height: 50px !important;
  }

  .contact-button {
    margin-top: 10px;
  }

  nav.main-navigation .container {
    padding: 0 10px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero-content h1 {
    font-size: 5rem !important;
  }

  .hero-content p {
    font-size: 0.9rem !important;
  }

  .hero {
    padding-top: 150px !important;
    background-size: cover !important;
  }

  .section-2 {
    padding: 3rem 1rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .three-columns {
    gap: 1rem !important;
  }

  .column {
    max-width: 45% !important;
    flex: 1 1 45% !important;
  }

  .btn-contact {
    padding: 8px 18px !important;
    font-size: 0.9rem !important;
  }
}

/* Responsive pour mobiles (<= 600px) */
@media (max-width: 600px) {

  .custom-header-bar {
    flex-direction: column !important;
    align-items: center !important;
  }

  .custom-header-bar > div {
    flex: unset !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  .social-icons {
    justify-content: center !important;
    gap: 10px !important;
  }

  .custom-logo img {
    max-height: 40px !important;
  }

  .contact-button {
    margin-top: 0;
  }

  nav.main-navigation .container {
    padding: 0 5px !important;
  }

  .menu {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .menu li {
    width: 100% !important;
    text-align: center !important;
  }

  .menu li a {
    font-size: 1.1rem !important;
  }

  .hero-content h1 {
    font-size: 3rem !important;
  }

  .hero-content p {
    font-size: 0.8rem !important;
  }

  .hero {
    padding-top: 100px !important;
    background-size: cover !important;
  }

  .section-2 {
    padding: 2rem 1rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .three-columns {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .column {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .btn-contact {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    width: 100%;
    box-sizing: border-box;
  }
}


.logo-carousel .swiper-slide {
  width: auto !important; /* Permet à Swiper de gérer la largeur */
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: calc((100% - 90px) / 4); /* 4 slides avec 30px d’espace entre */
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-carousel {
  width: 100%;
  margin: 2rem 0;        /* Marge verticale seulement */
  padding: 2rem 1rem;
  background-color: #F5F1EE;
  overflow: visible;
}






.logo-carousel a:focus,
.logo-carousel a:active,
.logo-carousel a img {
  outline: none;
  border: none;
  box-shadow: none;
}

.logo-carousel a img {
  border: none;
  outline: none;
  box-shadow: none;
}


/* Applique Outfit sur tous les liens du menu, y compris le bouton Contact */
.menu-principal a,
.main-navigation a,
.menu-item a {
    font-family: 'Outfit', sans-serif !important;
}









/* SINGLE ACTUALITE */
.single-actualite-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.actualite-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.actualite-content {
    text-align: left;
}

.actualite-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.actualite-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.actualite-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.back-to-list {
    display: inline-block;
    margin-top: 2rem;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.back-to-list:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    .single-actualite-container {
        padding: 1rem;
    }
    .actualite-title {
        font-size: 1.6rem;
    }
}

