/*-----------------------------------*\
  #PROPRIÉTÉS PERSONNALISÉES
\*-----------------------------------*/

:root {

    /**
   * COULEURS
   */
    --or-jaune: hsl(38, 53%, 65%);
    --mercure: hsla(0, 0%, 65%, 1);
    --gris-clair: hsla(30, 3%, 34%, 1);
    --fumé-noir-1: hsla(40, 12%, 5%, 1);
    --fumé-noir-2: hsla(30, 8%, 5%, 1);
    --fumé-noir-3: hsla(0, 3%, 7%, 1);
    --noir-foncé-1: hsla(210, 4%, 9%, 1);
    --noir-foncé-2: hsla(210, 4%, 11%, 1);
    --noir-foncé-3: hsla(180, 2%, 8%, 1);
    --noir-foncé-4: hsla(0, 0%, 13%, 1);
    --blanc: hsla(0, 0%, 100%, 1);
    --blanc-gris-1: hsla(0, 0%, 100%, 0.2);
    --rouge: hsl(0, 92%, 47%);
    --blanc-gris-2: hsla(0, 0%, 100%, 0.1);
    --noir: hsla(0, 0%, 0%, 1);
    --noir-gris-1: hsla(0, 0%, 0%, 0.8);
    --noir-gris-2: hsla(0, 0%, 0%, 0.15);

    /**
   * TYPOGRAPHIE
   */

    /* famille de police */
    --fontFamily-forum: 'Forum', cursive;
    --fontFamily-dm_sans: 'DM Sans', sans-serif;

    /* taille de police */
    --fontSize-display-1: calc(1.3rem + 6.7vw);
    --fontSize-headline-1: calc(2rem + 2.5vw);
    --fontSize-headline-2: calc(1.3rem + 2.4vw);
    --fontSize-title-1: calc(1.6rem + 1.2vw);
    --fontSize-title-2: 2.2rem;
    --fontSize-title-3: 2.1rem;
    --fontSize-title-4: calc(1.6rem + 1.2vw);
    --fontSize-body-1: 2.4rem;
    --fontSize-body-2: 1.6rem;
    --fontSize-body-3: 1.8rem;
    --fontSize-body-4: 1.6rem;
    --fontSize-label-1: 1.4rem;
    --fontSize-label-2: 1.2rem;

    /* poids de police */
    --weight-regular: 400;
    --weight-bold: 700;

    /* hauteur de ligne */
    --lineHeight-1: 1em;
    --lineHeight-2: 1.2em;
    --lineHeight-3: 1.5em;
    --lineHeight-4: 1.6em;
    --lineHeight-5: 1.85em;
    --lineHeight-6: 1.4em;

    /* espacement des lettres */
    --letterSpacing-1: 0.15em;
    --letterSpacing-2: 0.4em;
    --letterSpacing-3: 0.2em;
    --letterSpacing-4: 0.3em;
    --letterSpacing-5: 3px;

    /**
   * ESPACEMENT
   */

    --section-space: 70px;

    /**
   * OMBRE
   */

    --shadow-1: 0px 0px 25px 0px hsla(0, 0%, 0%, 0.25);

    /**
   * RAYON DE BORDURE
   */

    --radius-24: 24px;
    --radius-circle: 50%;

    /**
   * TRANSITION
   */

    --transition-1: 250ms ease;
    --transition-2: 500ms ease;
    --transition-3: 1000ms ease;

}





/*-----------------------------------*\
  #RÉINITIALISATION
\*-----------------------------------*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a,
img,
data,
span,
input,
button,
select,
ion-icon,
textarea {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    height: auto;
}

input,
button,
select,
textarea {
    background: none;
    border: none;
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    outline: none;
}

button {
    cursor: pointer;
}

address {
    font-style: normal;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--noir-foncé-1);
    color: var(--blanc);
    font-family: var(--fontFamily-dm_sans);
    font-size: var(--fontSize-body-4);
    font-weight: var(--weight-regular);
    line-height: var(--lineHeight-5);
    height: 300vh;
}

body.loaded {
    overflow: overlay;
}

body.nav-active {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--or-jaune);
}





/*-----------------------------------*\
  #TYPOGRAPHIE
\*-----------------------------------*/

.display-1,
.headline-1,
.headline-2,
.title-1,
.title-2,
.title-3,
.title-4 {
    color: var(--blanc);
    font-family: var(--fontFamily-forum);
    font-weight: var(--weight-regular);
    line-height: var(--lineHeight-2);
}

.display-1 {
    font-size: var(--fontSize-display-1);
    line-height: var(--lineHeight-1);
}

.headline-1 {
    font-size: var(--fontSize-headline-1);
}

.headline-2 {
    font-size: var(--fontSize-headline-2);
    line-height: var(--lineHeight-6);
}

.title-1 {
    font-size: var(--fontSize-title-1);
}

.title-2 {
    font-size: var(--fontSize-title-2);
}

.title-3 {
    font-size: var(--fontSize-title-3);
}

.title-4 {
    font-size: var(--fontSize-title-4);
}

.body-1 {
    font-size: var(--fontSize-body-1);
    line-height: var(--lineHeight-6);
}

.body-2 {
    font-size: var(--fontSize-body-2);
    line-height: var(--lineHeight-4);
}

.body-3 {
    font-size: var(--fontSize-body-3);
}

.body-4 {
    font-size: var(--fontSize-body-4);
}

.label-1 {
    font-size: var(--fontSize-label-1);
}

.label-2 {
    font-size: var(--fontSize-label-2);
}


/*-----------------------------------*\
  #RETOUR EN HAUT
\*-----------------------------------*/

.back-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--or-jaune);
    font-size: 22px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-1);
    transition: var(--transition-1);
    opacity: 0;
    visibility: hidden;
    z-index: 4;
}

.back-top-btn:is(:hover, :focus-visible) {
    background-color: var(--blanc);
    color: var(--or-jaune);
}

.back-top-btn.active {
    opacity: 1;
    visibility: visible;
}


/*-----------------------------------*\
  #STYLE RÉUTILISÉ
\*-----------------------------------*/

.container {
    padding-inline: 16px;
}

.separator {
    width: 8px;
    height: 8px;
    border: 1px solid var(--or-jaune);
    transform: rotate(45deg);
}

.contact-label {
    font-weight: var(--weight-bold);
}

.contact-number {
    color: var(--or-jaune);
    max-width: max-content;
    margin-inline: auto;
}

.hover-underline {
    position: relative;
    max-width: max-content;
}

.hover-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    border-block: 1px solid var(--or-jaune);
    transform: scaleX(0.2);
    opacity: 0;
    transition: var(--transition-2);
}

.hover-underline:is(:hover, :focus-visible)::after {
    transform: scaleX(1);
    opacity: 1;
}

.contact-number::after {
    bottom: -5px;
}

.text-center {
    text-align: center;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-subtitle {
    position: relative;
    color: var(--or-jaune);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letterSpacing-2);
    margin-block-end: 12px;
}

.section-subtitle::after {
    content: url('../images/separator.svg');
    display: block;
    width: 100px;
    margin-inline: auto;
    margin-block-start: 5px;
}

.btn {
    position: relative;
    color: var(--or-jaune);
    font-size: var(--fontSize-label-2);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--letterSpacing-5);
    max-width: max-content;
    border: 2px solid var(--or-jaune);
    padding: 12px 45px;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    border-radius: var(--radius-circle);
    background-color: var(--or-jaune);
    transition: var(--transition-2);
    z-index: -1;
}

.btn .text {
    transition: var(--transition-1);
}

.btn .text-2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: max-content;
    color: var(--fumé-noir-1);
}

.btn:is(:hover, :focus-visible)::before {
    bottom: -50%;
}

.btn:is(:hover, :focus-visible) .text-1 {
    transform: translateY(-40px);
}

.btn:is(:hover, :focus-visible) .text-2 {
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-secondary {
    background-color: var(--or-jaune);
    color: var(--noir);
}

.btn-secondary::before {
    background-color: var(--fumé-noir-1);
}

.btn-secondary .text-2 {
    color: var(--blanc);
}

.has-before,
.has-after {
    position: relative;
    z-index: 1;
}

.has-before::before,
.has-after::after {
    content: "";
    position: absolute;
}

.section {
    position: relative;
    padding-block: var(--section-space);
    overflow: hidden;
    z-index: 1;
}

.tt {
    background-color: var(--fumé-noir-2);
}

.grid-list {
    display: grid;
    gap: 40px;
}

.hover\:shine {
    position: relative;
}

.hover\:shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 0%, #fff6 100%);
    transform: skewX(-0.08turn) translateX(-180%);
}

.hover\:shine:is(:hover, :focus-within)::after {
    transform: skewX(-0.08turn) translateX(275%);
    transition: var(--transition-3);
}

.img-holder {
    aspect-ratio: var(--width) / var(--height);
    overflow: hidden;
    background-color: var(--noir-foncé-4);
}

.btn-text {
    color: var(--or-jaune);
    padding-block-end: 4px;
    margin-inline: auto;
    text-transform: uppercase;
    letter-spacing: var(--letterSpacing-3);
    font-weight: var(--weight-bold);
    transition: var(--transition-1);
}

.btn-text:is(:hover, :focus-visible) {
    color: var(--blanc);
}

.shape {
    display: none;
    position: absolute;
    max-width: max-content;
    z-index: -1;
}

.w-100 {
    width: 100%;
}

.move-anim {
    animation: move 5s linear infinite;
}

@keyframes move {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(30px);
    }
}

.has-bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.input-field {
    background-color: var(--noir-foncé-2);
    color: var(--blanc);
    height: 56px;
    padding: 10px 20px;
    border: 1px solid var(--blanc-gris-2);
    margin-block-end: 20px;
    outline: none;
    transition: border-color var(--transition-2);
}

.input-field::placeholder {
    color: inherit;
}

.input-field:focus {
    border-color: var(--or-jaune);
}

.icon-wrapper {
    position: relative;
    margin-block-end: 20px;
}

.icon-wrapper .input-field {
    margin-block-end: 0;
    padding-inline-start: 40px;
    appearance: none;
    cursor: pointer;
}

.icon-wrapper ion-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    --ionicon-stroke-width: 50px;
    pointer-events: none;
}

.icon-wrapper ion-icon:first-child {
    left: 15px;
}

.icon-wrapper ion-icon:last-child {
    right: 10px;
}

.logo img {
    width: 100px;
    /* Ajustez la largeur selon vos besoins */
    height: auto;
    /* Maintient le ratio d'aspect */
    max-width: 100%;
    /* Empêche le dépassement */
    margin-left: 50px;
}

.image-top-right {
    position: absolute;
    top: -20px;
    /* Adjust to align with the section title */
    right: 40px;
    /* Adjust to position it to the right */
    width: 150px;
    /* Adjust width as needed */
    height: auto;
    z-index: 10;
}

/*-----------------------------------*\
  #PRÉCHARGEMENT
\*-----------------------------------*/

.preload {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--or-jaune);
    z-index: 10;
    display: grid;
    place-content: center;
    justify-items: center;
    transition: var(--transition-2);
}

.preload>* {
    transition: var(--transition-1);
}

.preload.loaded>* {
    opacity: 0;
}

.preload.loaded {
    transition-delay: 250ms;
    transform: translateY(100%);
}

.circle {
    width: 112px;
    height: 112px;
    border-radius: var(--radius-circle);
    border: 3px solid var(--blanc);
    border-block-start-color: var(--fumé-noir-3);
    margin-block-end: 45px;
    animation: rotate360 1s linear infinite;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(1turn);
    }
}

.preload .text {
    background-image: var(--chargement-texte-gradient);
    background-size: 500%;
    font-size: calc(2rem + 3vw);
    font-weight: var(--weight-bold);
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 16px;
    padding-inline-start: 16px;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-stroke: 0.5px var(--noir-foncé-3);
    animation: loadingText linear 2s infinite;
}

@keyframes loadingText {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}





/*-----------------------------------*\
  #BARRE SUPÉRIEURE
\*-----------------------------------*/

.topbar {
    padding: 8px 20px;
    /* Slightly increased padding */
    font-size: 1rem;
    /* Slightly larger font size */
    background-color: #111 !important;
    /* Opaque black background for strong contrast */
    color: var(--blanc);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--blanc-gris-1);
    backdrop-filter: blur(10px);
    /* Adds a modern blur effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.topbar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fontSize-label-1);
}

.topbar-item .icon {
    font-size: 1.4rem;
    /* Slightly larger icon size */
    color: var(--or-jaune);
}

.topbar .separator {
    width: 1px;
    height: 20px;
    background-color: var(--blanc-gris-1);
}

.topbar .link {
    color: var(--blanc);
    text-decoration: none;
    transition: color 0.3s ease;
}

.topbar .link:hover {
    color: var(--or-jaune);
}





/*-----------------------------------*\
  #EN-TÊTE
\*-----------------------------------*/

.header .btn {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #111 !important;
    /* Opaque black background for strong contrast */
    padding-block: 40px;
    z-index: 4;
    border-block-end: 1px solid transparent;
    transition: var(--transition-1);
}

/* Réduit l'épaisseur (hauteur) du header */
.header {
  /* ...existing code... */
  padding-block: 10px !important; /* Hauteur réduite */
  min-height: 0 !important;
}

.header.active {
    padding-block: 20px;
    background-color: var(--noir-foncé-4);
    border-color: var(--noir-gris-2);
}

.header.hide {
    transform: translateY(-100%);
    transition-delay: 250ms;
}

.header .container {
    padding-inline: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* Ajuste le container du header si besoin */
.header .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

.menu-icon{
        display: none;

}

.nav-open-btn {
    padding: 12px;
    padding-inline-end: 0;
    display: none;
}

.nav-open-btn .line {
    width: 30px;
    height: 2px;
    background-color: var(--blanc);
    margin-block: 4px;
    transform-origin: left;
    animation: menuBtn 400ms ease-in-out alternate infinite;
}

@keyframes menuBtn {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0.5);
    }
}

.nav-open-btn .line-2 {
    animation-delay: 150ms;
}

.nav-open-btn .line-3 {
    animation-delay: 300ms;
}

.navbar {
    padding: 12px 45px;
    /* Slightly increased padding */
    background-color: #111 !important;
    /* Opaque black background for strong contrast */
    opacity: 1 !important;
    backdrop-filter: none !important;
    /* Remove blur effect for a solid look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Réduit l'épaisseur (hauteur) de la navbar si besoin */
.navbar {
  /* ...existing code... */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

.navbar.active {
    background-color: var(--noir-foncé-4);
    /* Darker background when active */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar .navbar-list {
    display: flex;
    gap: 30px;
    /* Slightly increased gap between items */
    list-style: none;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    font-size: 1rem;
    /* Slightly larger font size */
    padding: 8px 12px;
    /* Slightly increased padding */
    color: var(--blanc);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--or-jaune);
    transform: scale(1.1);
}

.navbar-link .separator {
    display: none;
    /* Remove separator for a cleaner look */
}

.close-btn {
    display: none;
    /* Hide close button for desktop view */
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .navbar .navbar-list {
        flex-direction: column;
        gap: 15px;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: var(--blanc);
        font-size: 1.8rem;
        cursor: pointer;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: var(--noir-gris-1);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-2);
    z-index: 1;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Sous-onglet "Compte" dans le menu Contact */

.navbar-item.dropdown {
  position: relative;
}

.navbar-item .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 140px;
  background: var(--noir-foncé-3, #181818);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px #0003;
  z-index: 10;
  padding: 0;
  margin: 0;
}

.navbar-item.dropdown:hover .dropdown-menu,
.navbar-item.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--or-jaune, #e5c07b);
  font-size: 1rem;
  text-decoration: none;
  background: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 0 0 12px 12px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--or-jaune, #e5c07b);
  color: var(--noir-foncé-3, #181818);
}


/*-----------------------------------*\
  #REQUÊTES MÉDIAS
\*-----------------------------------*/

/**
 * responsive pour écran supérieur à 575px
 */

@media (min-width: 575px) {

    /**
   * PROPRIÉTÉS PERSONNALISÉES
   */

    :root {

        /**
     * TYPOGRAPHIE
     */

        --fontSize-body-2: 2rem;

    }



    /**
   * STYLE RÉUTILISÉ
   */

    :is(.service, .about) .section-text {
        max-width: 420px;
        margin-inline: auto;
    }

    .contact-number {
        --fontSize-body-1: 3rem;
    }



    /**
   * BARRE SUPÉRIEURE
   */

    .topbar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-block: 10px;
        border-block-end: 1px solid var(--blanc-gris-1);
        z-index: 4;
        transition: var(--transition-1);
    }

    .topbar:has(~ .header.active) {
        transform: translateY(-100%);
    }

    .topbar-item:not(.link),
    .topbar .separator {
        display: none;
    }

    .topbar .container,
    .topbar-item {
        display: flex;
        align-items: center;
    }

    .topbar .container {
        justify-content: center;
        gap: 30px;
    }

    .topbar-item {
        gap: 6px;
    }

    .topbar-item ion-icon {
        --ionicon-stroke-width: 60px;
    }

    .topbar-item .span {
        font-size: var(--fontSize-label-1);
    }

    .topbar .link {
        transition: var(--transition-1);
    }

    .topbar .link:is(:hover, :focus-visible) {
        color: var(--or-jaune);
    }



    /**
   * EN-TÊTE
   */

    .header {
        top: 0; /* Coller le header juste sous la topbar */
    }

    .header.active {
        top: 0;
    }

    .header .btn {
        display: block;
        margin-inline-start: auto;
    }


  }




/* Écrans jusqu'à 700px */
@media (max-width: 700px) {
  .contact-main {
    margin-top: 110px;
    padding-bottom: 18px;
  }

  .contact-section-modern,
  .map-section-modern {
    padding: 14px 2vw;
    min-width: unset;
    max-width: 99vw;
    width: 85vw;
    margin-left: 10px;
    margin-right: 10px;
  }

  .contact-image-top img {
    width: 60px;
  }

  .map-responsive {
    min-height: 180px;
    aspect-ratio: 16/10;
  }

  .topbar {
    display: none;
  }

  /* Header */
  .header {
    top: 0 !important; /* force le header à être collé en haut */
    position: fixed;
    left: 0;
    width: 100%;
    background-color: var(--blanc);
    z-index: 99;
    transition: var(--transition-1);
  }

  /* Conteneur header plus fin */
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    gap: 6px;
  }

  /* Logo réduit */
  .header .logo img {
    width: 45px;
    height: auto;
  }

  /* Bouton Connexion / Déconnexion visible et stylé */
  .header .btn {
    display: inline-block !important;
    position: relative;
    z-index: 1100;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background-color: var(--btn-bg, #333);
    color: var(--btn-color, #fff);
    margin-left: auto;
  }

  /* Bouton menu hamburger visible uniquement sur mobile */
  .nav-toggle-btn {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #fff;     /* bouton blanc */
    border: none;
    border-radius: 12px;        /* bords arrondis */
    padding: 5px 8px;   /* Diminue la taille du "coussin" autour du bouton */
    font-size: 1.8rem;  /* Diminue la taille de l'icône */
    cursor: pointer;
    color: #000;                /* couleur icône/text */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1101;
    transition: background-color 0.3s ease;
  }

  .nav-toggle-btn:hover,
  .nav-toggle-btn:focus {
    background-color: #f0f0f0;
  }

  /* Navbar mobile cachée par défaut */
  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 80px 20px;
    transition: left 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Navbar active (ouverte) */
  .navbar.active {
    left: 0;
  }

  /* Liste de navigation verticale sur mobile */
  .navbar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .navbar-item {
    border: none;
  }

  .navbar-link {
    font-weight: var(--weight-bold);
    letter-spacing: var(--letterSpacing-1);
    position: relative;
    padding: 8px 12px;
  }

  .navbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--or-jaune);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .navbar-link:is(:hover, :focus-visible, .active)::after {
    transform: scaleX(1);
    opacity: 1;
  }

  /* Overlay pour fermeture menu mobile */
  .overlay {
    display: none;
  }

  .navbar.active ~ .overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
  }

   .menu-icon {
    display: block;
    font-size: 2rem; /* adapte la taille */
    cursor: pointer;
    z-index: 1000;
  }
}

/**
 * responsive pour écran supérieur à 768px
 */

@media (min-width: 768px) {

    /**
   * STYLE RÉUTILISÉ
   */

    .grid-list {
        grid-template-columns: 1fr 1fr;
    }

    :is(.service, .event) .container {
        max-width: 820px;
    }

    :is(.service, .event) .grid-list li:last-child {
        grid-column: 1 / 3;
        width: calc(50% - 20px);
        margin-inline: auto;
    }



    /**
   * EN-TÊTE
   */

    .navbar-list {
        margin-inline: 30px;
    }

}





/**
 * responsive pour écran supérieur à 992px
 */

@media (min-width: 992px) {

    /**
   * PROPRIÉTÉS PERSONNALISÉES
   */

    :root {

        /**
     * ESPACEMENT
     */

        --section-space: 100px;

    }



    /**
   * STYLE RÉUTILISÉ
   */

    :is(.service, .event) .container {
        max-width: unset;
    }

    :is(.service, .event) .grid-list {
        grid-template-columns: repeat(3, 1fr);
    }

    :is(.service, .event) .grid-list li:last-child {
        grid-column: auto;
        width: 100%;
    }



    /**
   * BARRE SUPÉRIEURE
   */

    .topbar-item:not(.link) {
        display: flex;
    }

    .topbar .item-2 {
        margin-inline-end: auto;
    }


}





/**
 * responsive pour écran supérieur à 1200px
 */

@media (min-width: 1200px) {

    /**
   * PROPRIÉTÉS PERSONNALISÉES
   */

    :root {

        /**
     * TYPOGRAPHIE
     */

        --fontSize-title-2: 2.5rem;

    }



    /**
   * STYLE RÉUTILISÉ
   */

    .container,
    :is(.service, .event) .container {
        max-width: 1200px;
        width: 100%;
        margin-inline: auto;
    }

    


    /**
   * BARRE SUPÉRIEURE
   */

    .topbar .container {
        max-width: unset;
    }

    .topbar .separator {
        display: block;
    }



    /**
   * EN-TÊTE
   */

    .nav-open-btn,
    .navbar>*:not(.navbar-list),
    .header .overlay {
        display: none;
    }

    .header .container {
        max-width: unset;
    }

    .navbar,
    .navbar.active,
    .navbar-list {
        all: unset;
    }

    .navbar,
    .navbar.active {
        margin-inline: auto 20px;
    }

    .navbar-list {
        display: flex;
        gap: 30px;
    }

    .navbar-item {
        border-block-start: none;
    }

    .navbar .separator {
        display: none;
    }

    .navbar-link:is(:hover, :focus-visible, .active) .span {
        transform: unset;
    }

    .navbar-link {
        font-weight: var(--weight-bold);
        letter-spacing: var(--letterSpacing-1);
    }

    .navbar-link::after {
        display: block;
    }

    .navbar-link.active::after {
        transform: scaleX(1);
        opacity: 1;
    }

    .header .btn {
        margin-inline-start: 0;
    }



}


/**
 * responsive pour écran supérieur à 1400px
 */

@media (min-width: 1400px) {

    /**
   * EN-TÊTE
   */

    .navbar {
        margin-inline: auto;
    }

}


  /* Masquer complètement topbar et header lors du scroll vers le bas */
  body.hide-header .topbar {
    transform: translateY(-120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
  body.hide-header .header {
    transform: translateY(-200%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

/* Effet header/topbar qui disparaît vers le haut et réapparaît vers le bas (comme vente.css) */
.topbar,
.header {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), background 0.3s, opacity 0.3s;
  will-change: transform, opacity;
}
.header {
  top: 51px;
}
