@font-face {
    font-family: 'garetbook';
    src: url('../fonts/garet-book-webfont.woff2') format('woff2'),
         url('../fonts/garet-book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'garetheavy';
    src: url('../fonts/garet-heavy-webfont.woff2') format('woff2'),
         url('../fonts/garet-heavy-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'garetheavy';
    src: url('../fonts/garet-heavy-webfont.woff2') format('woff2'),
         url('../fonts/aret-heavy-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'cormorant_garamondregular';
    src: url('../fonts/cormorantgaramond-regular-webfont.woff2') format('woff2'),
         url('../fonts/cormorantgaramond-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'great_vibesregular';
    src: url('../fonts/greatvibes-regular-webfont.woff2') format('woff2'),
         url('../fonts/greatvibes-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'cormorant_garamondbold';
    src: url('../fonts/cormorantgaramond-bold-webfont.woff2') format('woff2'),
         url('../fonts/cormorantgaramond-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

:root {
  --color-primary: #0d6efd;
  --color-secondary: #6c757d;
  --color-bg: #ffffff;
  --color-text: #4A493A;
}

:root {
  --font-base: 'garetbook', sans-serif;
  --font-weight-base: 300; /* Ajout d'une variable Light */
  --font-heading: 'Arials', sans-serif;
  --font-titre: 'garetbook', serif;
}

:root {
  --header-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  font-weight: 300; 
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
}

h1, h3, h4 {
    color: #E79D75;
}

h1 {
    font-family: 'garetheavy';
}

.haut-de-page h2 {
    font-family: 'cormorant_garamondbold' !important;
    color: #4A493A !important;
}

h2 {
    font-family: 'great_vibesregular';
    font-size: 25px;
    color: #808C65;
}

h3 {
  font-family: 'garetheavy';
  font-size: 28px;
}

h4 {
    font-family: 'garetheavy';
    font-size: 1.2rem;
    color: #808C65;
}

h6 {
    font-weight: 100;
}


/* ==========================================================================
   2. ORDINATEUR (Écrans à partir de 992px) : Ton design d'origine complet
   ========================================================================== */
@media (min-width: 992px) {
    h2 {
        font-size: 35px;
    }

    h1, h3 {
        font-size: 40px;
    }
}

/*-------Logo------*/
.header-logo img {
    max-width: 55%;
}


/*-------Menu------*/
.header-nav ul li a {
    text-decoration: none !important;
    color: #fff;
    font-family: 'garetheavy';
    transition: opacity 0.3s ease;
}

.header-nav ul li a:hover {
    opacity: 0.6;
}

/* Fix pour les boutons */
.header-nav ul li.btn a {
    background-color: #666 !important;
}

.header-nav ul li a.btn:hover {
    background-color: #666 !important;
}

/*Menu moyen écran*/
@media (min-width: 992px) and (max-width: 1199px) {
  .header-nav ul {
    gap: 0.5rem !important;
  }

  .header-nav ul li a {
    font-size: 0.7rem;
  }

  .site-header .container {
    padding: 0 !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .header-nav ul {
    gap: 0.5rem !important;
  }

  .header-nav ul li a {
    font-size: 0.85rem;
  }
}

/*-------Menu hamburger------*/
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
}

/* Uniquement pour le header mobile */
@media (max-width: 992px) {

    .navbar, 
    nav.navbar,
    header div[class*="container"] {
        display: flex !important;
        flex-direction: row !important; /* Ligne */
        justify-content: space-between !important; /* Logo à gauche, Burger à droite */
        align-items: center !important;
        flex-wrap: wrap !important; /* Permet au menu de glisser en dessous au clic */
        width: 100% !important;
    }

    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        border: none !important;
        padding: 8px !important;
        margin-right: 2em;
    }

    .navbar-brand img,
    img[src*="logo"] {
        max-width: 140px !important;
        height: auto !important;
        display: block !important;
    }

    .collapse.collapsing {
        display: flex !important;
        flex-direction: column !important;
        flex-basis: 100% !important; /* Force le passage en dessous du logo/burger */
        width: 100% !important;
        gap: 18px !important; /* Espacement entre les liens */
        padding: 20px 0 10px 0 !important;
    }

    .collapse a, .collapsing a {
        color: #1e5937 !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        display: block !important;
    }

    .collapse ul, .collapsing ul {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .collapse .btn, .collapsing .btn {
        background-color: #666 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        width: 80% !important;
        max-width: 240px !important;
        padding: 10px 16px !important;
        border-radius: 5px !important;
        font-size: 0.9rem !important;
        border: none !important;
        display: block !important;
        margin-top: 20px !important;
    }
}

/*-------Pagination------*/
.pagination {
    font-size: 1.5rem;
    color: #666;
}

.pagination a {
    color: #666 !important;
}

/*-------Style boutons------*/
.btn {
    background-color: #E79D75;
    border: 1px solid #F9EBE4;
    color: #fff;
    border-radius: 25px;
    font-family: 'garetheavy';
}

.btn:hover {
    background-color: #F9EBE4;
    color: #E79D75;
}

.btn:active {
    background-color: #F9EBE4;
    color: #E79D75;
}

/*-------Slider avis------*/
.slider-avis .swiper-slide {
    display: flex;
    height: auto; /* Force Swiper à calculer la hauteur sur le slide le plus grand */
}

/* Le conteneur du picto */
    .swiper-pagination-custom .swiper-pagination-bullet {
        background: none !important; /* On enlève le style par défaut */
        width: auto !important;
        height: auto !important;
        opacity: 0.4; /* Image estompée par défaut */
        transition: opacity 0.3s ease;
        cursor: pointer;
        border: none !important;
    }

    /* Le picto quand la slide est active */
    .swiper-pagination-custom .swiper-pagination-bullet-active {
        opacity: 1; /* Image bien visible */
    }

    /* Taille du picto */
    .swiper-pagination-custom .swiper-pagination-bullet img {
        width: 25px; /* Ajuste selon la taille de ton image */
        height: auto;
    }

    /* Dans ton fichier style.css ou main.css */

/* Remplace '.slider-avis' par la classe spécifique de ton slider si nécessaire */
.swiper.slider-avis, 
.swiper.slider-logos {
    width: 100%;
    max-width: 100vw; /* Empêche de dépasser l'écran */
    overflow-x: hidden; /* Masque le scroll horizontal accidentel */
    margin-left: auto;
    margin-right: auto;
}


/*-------Slider Références------*/
.swiper-button-next:after, .swiper-button-prev:after {
    color: #E79D75;
}


/*-------FLÈCHE RETOUR VERS LE HAUT------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #666;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #666;
}

/*-------FAQ------*/
.accordion-button {
    color: #E79D75;
    background-color: #F9EBE4 !important;
    border: 2px solid #E79D75;
    padding: 1em 2em;
}

.accordion-button:not(.collapsed) {
    color: #E79D75;
    background-color: #F9EBE4 !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

/*-------FOOTER------*/
footer a, 
footer ul {
    word-break: break-word;
    overflow-wrap: anywhere;
}

footer ul {
    padding-left: 1em;
}

footer .col2 a {
    color: #fff;
    transition: opacity 0.3s ease;
}

footer .col2 a:hover {
    color: #fff;
    opacity: 0.6;
}

footer .col3 img {
    transition: opacity 0.3s ease;
}

footer .col3 img:hover {
    opacity: 0.6;
}
