﻿@font-face {
    font-family: 'Aeonik';
    src: url('police/Aeonik-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Aeonik';
    src: url('police/Aeonik-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Fond animé avec particles (supprimé)
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
}
*/
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    font-family: 'Aeonik', Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    color: black;
    animation: fadeInBody 0.6s ease-out;
}

/* Conteneur principal */
.menu-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    text-align: center;
    animation: slideUp 0.7s ease-out;
}

/* Boutons principaux */
.button-row button {
    padding: 22px 36px;
    font-size: 20px;
    background-color: white;
    color: black;
    border: 2px solid #ccc; /* Bordure en gris clair */
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Aeonik', Arial, sans-serif;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    transition: all 0.3s ease;
    overflow: hidden;
    transform: translate(0, 0);
}

/* Sous-boutons */
.sub-buttons button {
    padding: 20px 32px;
    font-size: 18px;
    background-color: white;
    color: black;
    border: 2px solid #ccc; /* Bordure en gris clair */
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Aeonik', Arial, sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .button-row button:hover,
    .sub-buttons button:hover {
        background-color: black;
        color: white;
        transform: translateY(-3px);
    }

    .button-row button:active,
    .sub-buttons button:active {
        transform: scale(0.97);
    }

/* Espace entre les boutons principaux */
.button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px; /* Augmente l'espace entre les boutons principaux */
    margin-bottom: 40px; /* Ajoute un espace entre les boutons principaux et les sous-boutons */
}

/* Espace entre le conteneur des sous-boutons et les boutons principaux */
.sub-menu-container {
    margin-top: 40px; /* Ajustez selon vos préférences */
}

/* Espace entre les sous-boutons */
.sub-buttons {
    display: flex;
    justify-content: center;
    gap: 32px; /* Augmente l'espace entre les sous-boutons */
}

/* Masquer les sous-menus */
/* Nouveau style pour transition douce */
.sub-buttons {
    display: flex;
    justify-content: center;
    gap: 32px;
    opacity: 1;
    height: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(0);
    overflow: hidden;
}

    .sub-buttons.hidden {
        opacity: 0;
        pointer-events: none;
        height: 0;
        transform: translateY(10px);
    }

.main-button.active {
    background-color: black;
    color: white;
}

/* Animations */
@keyframes fadeInBody {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 800px) {
    .button-row, .sub-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

        .button-row button,
        .sub-buttons button {
            width: 80%;
            font-size: 18px;
            padding: 18px 0;
            border-radius: 14px;
        }
}
/* ----------------------------------
   Image diagonale par défaut
---------------------------------- */
.diagonal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%; /* 15% de la largeur de l'écran */
    height: 100%; /* 100% de la hauteur de l'écran */
    z-index: -1; /* Derrière le contenu */
    /* Appliquer l'ombre sur le conteneur */
    filter: drop-shadow(5px 0 5px rgba(0, 0, 0, 0.5));
}

.diagonal-image {
    width: 100%;
    height: 100%;
    background: url("image_menu/napoleon.jpg") no-repeat center center;
    background-size: cover;
    /* Définir le clip-path pour la diagonale */
    clip-path: polygon( 0 0, 60% 0, 100% 100%, 0 100% );
    transition: background 0.3s ease, opacity 0.3s ease;
}
.menu-title {
    font-size: 3rem; /* Taille du titre */
    margin-bottom: 40px; /* Espace entre le titre et les boutons */
    text-align: center;
    color: black;
}

/* Si vous souhaitez ajouter encore plus d'espace au-dessus des boutons, 
   vous pouvez ajouter un margin-top à .button-row */
.button-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px; /* ou une valeur adaptée */
}
.logo-container {
    position: fixed;
    bottom: 20px; /* Ajustez la marge du bas selon vos besoins */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Au-dessus du reste, si nécessaire */
}

    .logo-container img {
        max-height: 60px; /* Ajustez la taille du logo */
        width: auto;
    }
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
/* Positionnement du conteneur du bouton en haut à gauche */
.return-home {
    position: fixed;
    top: 20px;      /* Ajustez la marge supérieure si besoin */
    left: 80px;     /* Ajustez la marge gauche si besoin */
    z-index: 1000;  /* Pour que le bouton reste au-dessus des autres éléments */
}

/* Styles modifiés pour le bouton en adoptant un fond noir */
/* Bouton animé issu de Uiverse.io avec fond noir */
.button {
    display: block;
    position: relative;
    width: 66px;
    height: 66px;
    margin: 0;
    overflow: hidden;
    outline: none;
    background-color: transparent;

    border: 0;
    border-radius: 50%;  /* Ajouté pour obtenir un bouton circulaire */
    cursor: pointer;
}

  
  .button:before,
  .button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
  }
  
  .button:before {
    border: 4px solid #000000;
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
                transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
  }
  
  .button:after {
    border: 4px solid #000000;
    transform: scale(1.3);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
  }
  
  .button:hover:before,
  .button:focus:before {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .button:hover:after,
  .button:focus:after {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s cubic-bezier(0.77, 0, 0.175, 1) 80ms,
                transform 0.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) 80ms;
  }
  
  .button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .button-elem {
    display: block;
    width: 30px;
    height: 30px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #000000;
  }
  
  .button:hover .button-box,
  .button:focus .button-box {
    transition: 0.4s;
    transform: translateX(-56px);
  }
  
