/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Bilbo&display=swap');

/* Couleurs et typographie */
:root {
    --color-accent: rgb(245, 245, 220);
    --color-bg: #fdfdfd;
    --color-text: #333;
    --color-light: #f9f9f9;
    --color-dark: #222;
    --color-bouton-site: #222;
    --color-icon: #df840c;
    --font-family-title: 'Playfair Display', serif;
    --font-family-body: 'Roboto', sans-serif;
    --font-size-base: 1rem;
    /* Variables pour les animations */
    --transition-speed: 0.3s;
    --modal-overlay-bg: rgba(0, 0, 0, 0.6);
    --modal-content-bg: #fff;
    --modal-border-radius: 15px;

    /* Variables pour les nouvelles animations */
    --animation-duration-fast: 0.2s;
    --animation-duration-medium: 0.5s;
    --animation-duration-slow: 1s;
    --animation-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    font-family: var(--font-family-body), sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    letter-spacing: 0.02em;
    overflow-x: hidden; /* Prévenir le débordement horizontal */
}

h1, h2, h4, h5 {
    font-family: var(--font-family-title), serif;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, color 0.3s ease; /* Transition pour les effets au survol */
}

h2 {
    color: #459534;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    transform: scale(1.05); /* Agrandissement au survol */
    color: #df840c; /* Changement de couleur au survol */
}

a, button {
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

a:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.line-decor {
    width: 60px;
    border: 0;
    border-top: 3px solid var(--color-accent);
    opacity: 0.8;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    transition: width var(--transition-speed) ease;
}

.line-decor:hover {
    width: 80px;
}

.icon-main {
    color: rgb(226, 122, 38);
    transition: transform var(--transition-speed) ease;
}

.icon-main:hover {
    transform: scale(1.2);
}

/* Navbar */
.nav-custom {
    position: fixed;
    width: 100%;
    z-index: 9999; /* Assurer que le preloader couvre tout */
    background: rgb(245, 245, 220);
    background-size: cover;
    background-position: center;
    transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
    padding: 0.5rem 1rem; /* Réduction de la hauteur */
}
.nav-custom .navbar-brand, 
.nav-custom .nav-link, 
.nav-custom .navbar-toggler-icon {
    color: #000000;
    transition: color var(--transition-speed) ease;
}
.nav-custom.scrolled {
    background: rgba(245, 245, 220, 0.9); /* Légère opacité */
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(238, 111, 7, 0.1);
}
.text-dark-nav {
    color: var(--color-text)!important;
}
.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.navbar .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #df840c;
    transition: width var(--transition-speed) ease;
}
.navbar .nav-link:hover::after {
    width: 100%;
    left: 0;
    background: #df840c;
}
.navbar .nav-link:hover {
    color: #df840c !important;
}
.navbar-toggler-icon {
    background-image: none;
}
.navbar-toggler-icon::before {
    content: "≡";
    font-size: 1.5rem;
    display: inline-block;
    color: #fff;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999; /* Augmenté pour s'assurer que le preloader est au-dessus */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader-video {
    width: 250px;
    height: 250px;
    object-fit: contain;
}

#loader-container {
    width: 300px;
    margin-top: 20px;
}

.progress {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #459534;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    border-radius: 10px;
}

/* Carousel */
.carousel-section {
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.carousel-item img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(85%);
    transition: transform 0.5s ease;
}
.carousel-item:hover img {
    transform: scale(1.05);
}
.carousel-caption {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
}
.carousel-caption h1 {
    color: #459534;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-size: 2rem;
}
.carousel-caption p {
    color: var(--color-text);
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent; /* Supprimer le fond par défaut */
    width: 100%;
    height: 100%;
}
.custom-carousel-control-prev,
.custom-carousel-control-next {
    width: 40px; /* Taille réduite */
    height: 40px; /* Taille réduite */
    background: none; /* Supprimer le fond */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    border: none; /* Supprimer les bordures */
}
.custom-carousel-control-prev {
    left: 10px;
}
.custom-carousel-control-next {
    right: 10px;
}
.custom-carousel-control-prev img,
.custom-carousel-control-next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none; /* Les événements passent au parent */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Keyframes pour les nouvelles animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateIcon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section-bg-light {
    background: var(--color-light);
    padding: 40px 0; /* Réduction du padding pour optimiser l'espace */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition-speed) ease;
}
.section-bg-light:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Parallax Section */
.parallax-section {
    background: var(--color-accent) no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
    color: #000000;
    position: relative;
    z-index: 1;
    padding: 60px 0; /* Réduction du padding */
    animation: fadeIn 1s ease-out;
}
.parallax-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245, 245, 220, 0.8); /* Overlay plus léger pour optimiser la lisibilité sans trop d'espace */
    z-index: -1;
    transition: background var(--transition-speed) ease;
}
/* Modification : supprimer l'effet grisâtre au survol */
.parallax-section:hover::before {
    background: rgba(245, 245, 220, 0.8);
}

.text-white {
    --bs-text-opacity: 1;
    color: rgb(255, 255, 255) !important;
}

.logo-carousel {
    display: flex;
    justify-content: left; 
    align-items: left; 
    height: 10vh; 
}

.logo-carousel img {
    width: 70px; /* Ajustez la taille selon vos besoins */
    height: auto; /* Maintenir les proportions */
}



/* Buttons */
.btn-accent {
    background-color: var(--color-accent);
    color: #df840c;
    border: none;
    border-radius: 6px; /* Réduction du rayon de bordure */
    padding: 0.4rem 0.8rem; /* Réduction du padding */
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.btn-accent:hover {
    background-color: rgba(230, 230, 168, 0.9);
    color: #fff;
    transform: translateY(-2px);
    animation: pulse 1s infinite;
}

.btn-accent-light {
    background-color: #F5F5DC;
    color: #df840c;
    border: none;
    border-radius: 6px; /* Réduction du rayon de bordure */
    padding: 0.4rem 0.8rem; /* Réduction du padding */
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.btn-accent-light:hover {
    background-color: rgba(245, 245, 220, 0.9);
    color: #fff;
    transform: translateY(-2px);
}

.btn-plain {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    border-radius: 6px; /* Réduction du rayon de bordure */
    color: #df840c;
    font-weight: 500;
    padding: 0.4rem 0.8rem; /* Réduction du padding */
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.btn-plain:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Animations pour les boutons */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: opacity var(--transition-speed) ease;
}

.btn-animated:hover::after {
    opacity: 1;
}

/* Animations pour les icônes */
.icon-rotating {
    display: inline-block;
    transition: transform var(--transition-speed) ease;
}

.icon-rotating:hover {
    animation: rotateIcon 2s linear infinite;
}

/* Transitions de fond pour les sections interactives */
.interactive-section {
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.interactive-section:hover {
    background-color: var(--color-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animations pour les images */
.img-hover-zoom img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-hover-zoom img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px; /* Réduction du rayon de bordure */
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 180px; /* Réduction de la hauteur pour optimiser l'espace */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: filter var(--transition-speed) ease;
}
.card-img-top:hover {
    filter: brightness(90%);
}

/* Animations pour les cartes */
.card-animated {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}
.card-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Footer */
.footer-custom {
    background: linear-gradient(to top left, var(--color-accent) 0%,#F5F5DC 100%);
    color: var(--color-text);
    padding: 30px 0; /* Réduction du padding */
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}
.footer-custom:hover {
    background: linear-gradient(to top left, rgba(245, 245, 220, 0.9) 0%, #F5F5DC 100%);
}
.footer-custom .social-links a {
    color: var(--color-text);
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    font-size: 1rem; /* Réduction de la taille des icônes */
}
.footer-custom .social-links a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Animations pour le footer */
.footer-animated {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
textarea,
select.form-select {
    border-radius: 6px; /* Réduction du rayon de bordure */
    border: 1px solid #ced4da;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-weight: 300;
    padding: 0.4rem; /* Réduction du padding */
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(190,137,81,0.3);
}

.invalid-feedback {
    font-size: 0.8rem; /* Réduction de la taille de la police */
    color: #dc3545;
}

/* Modals */
.modal-content {
    border-radius: var(--modal-border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out; /* Réduction de la durée de l'animation */
}
.modal-header {
    border-bottom: none;
}
.modal-body {
    padding: 15px; /* Réduction du padding */
}
.modal-footer {
    border-top: none;
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
    transition-timing-function: ease-in-out-cubic;
}
[data-aos].aos-animate {
    opacity: 1;
}
[data-aos="fade-up"] {
    transform: translateY(20px);
}
[data-aos="fade-down"] {
    transform: translateY(-20px);
}
[data-aos="fade-left"] {
    transform: translateX(-20px);
}
[data-aos="fade-right"] {
    transform: translateX(20px);
}

/* Animations pour les sections */
.section-animated {
    opacity: 0;
    animation-duration: var(--animation-duration-medium);
    animation-timing-function: var(--animation-ease-in-out);
    animation-fill-mode: forwards;
}

.section-animated.fade-in-up {
    animation-name: fadeInUp;
}

.section-animated.slide-in-left {
    animation-name: slideInLeft;
}

.section-animated.slide-in-right {
    animation-name: slideInRight;
}

.section-animated.fade-in-scale {
    animation-name: fadeInScale;
}

/* Animations pour les images */
.img-animated {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.img-animated.delay-1 {
    animation-delay: 0.3s;
}

.img-animated.delay-2 {
    animation-delay: 0.6s;
}

.img-animated.delay-3 {
    animation-delay: 0.9s;
}

/* Animations pour le footer */
.footer-animated {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Section Équipe Styles */
#equipe {
    background-color: var(--color-light);
}

#equipe .swiper-container {
    padding: 20px 0; /* Réduction du padding */
}

#equipe .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

#equipe .team-member .team-name {
    color: #000000; /* Couleur orange */
    font-weight: 600;
    margin-bottom: 5px; /* Réduction de la marge */
    font-size: 1rem; /* Réduction de la taille de la police */
    font-family: "Bilbo", serif;
}

.bilbo-regular {
    font-family: "Bilbo", serif;
    font-weight: 600;
    font-style: normal;
}

#equipe .team-member .avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px; /* Réduction de la marge */
    border: 3px solid #ccc; /* Réduction de l'épaisseur de la bordure */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#equipe .team-member .avatar img {
    width: 120%;
    height: 120%;
    object-fit: cover;
}
#equipe .team-member .avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

#equipe .role-label {
    background-color: #e8b872; /* Couleur douce (pêche) */
    color: #fff;
    padding: 6px 12px; /* Réduction du padding */
    border-radius: 15px; /* Réduction du rayon de bordure */
    display: inline-block;
    font-weight: 500;
    transition: background-color var(--transition-speed) ease;
    font-size: 0.8rem; /* Réduction de la taille de la police */
}

#equipe .role-label:hover {
    background-color: #FFA07A;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;    /* Centre verticalement */
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box;
    text-align: center;
}

/* Swiper Navigation Buttons Customization */
.custom-swiper-button-next,
.custom-swiper-button-prev {
    color: transparent; /* Masquer l'icône par défaut */
    background: none; /* Supprimer le fond */
    position: absolute;
    top: 50%;
    width: 40px; /* Taille réduite */
    height: 40px; /* Taille réduite */
    margin-top: -20px; /* Moins la moitié de la hauteur */
    z-index: 10;
    cursor: pointer;
    border: none; /* Supprimer les bordures */
}
.custom-swiper-button-next img,
.custom-swiper-button-prev img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none; /* Les événements passent au parent */
}

/* Swiper Pagination Dots */
.swiper-pagination-bullet {
    background: #459534;
    opacity: 0.7;
    transition: background-color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.swiper-pagination-bullet-active {
    background: #306b2b;
    opacity: 1;
}

#hello-asso {
    size: 40px;
    width: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    #equipe .team-member .avatar {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 992px) {
    #equipe .swiper-container {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 1rem;
    }
    .navbar .nav-link {
        font-size: 0.85rem;
        margin: 0.2rem 0;
    }
    .line-decor {
        width: 40px;
    }
    .carousel-caption {
        padding: 10px;
    }
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 0.85rem;
    }
    .footer-custom .social-links a {
        font-size: 0.9rem;
    }
    .modal-body {
        padding: 15px;
    }
    /* Ajustement des flèches de navigation pour mobiles */
    .custom-carousel-control-prev,
    .custom-carousel-control-next,
    .custom-swiper-button-prev,
    .custom-swiper-button-next {
        width: 25px; /* Taille réduite */
        height: 25px; /* Taille réduite */
    }
    .custom-carousel-control-prev img,
    .custom-carousel-control-next img,
    .custom-swiper-button-prev img,
    .custom-swiper-button-next img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    #equipe .team-member .avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    #equipe .team-member .avatar {
        width: 80px;
        height: 80px;
    }
}

/* Responsive Swiper Styles */
@media (max-width: 1200px) {
    #equipe .team-member .avatar {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    #equipe .team-member .avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    #equipe .team-member .avatar {
        width: 80px;
        height: 80px;
    }
}


/* Section Articles de Presse Styles */
.press-frame {
    max-height: 400px; /* Hauteur maximale de la frame */
    overflow-y: auto; /* Activation de la barre de défilement verticale */
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition-speed) ease;
}
.press-frame:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.press-frame ul li a {
    color: #459534;
    transition: color var(--transition-speed) ease;
}
.press-frame ul li a:hover {
    color: #306b2b;
}

/* Preloader Hide */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

