* {
    scroll-behavior: smooth;
}


.container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .glass-nav {
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}


.nav-link {
    position: relative;
    font-size: 17px;
    transition: all 0.3s ease-in-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #649b88;
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #649b88;
    transform: scale(1.05);
}

.icon-link {
    position: relative;
    font-size: 17px;
    color: #333;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.icon-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #649b88;
    transition: width 0.3s ease-in-out;
}

.icon-link:hover::after {
    width: 100%;
}

.icon-link:hover {
    color: #649b88;
    transform: scale(1.05);
}

.logo-wrapper {
    height: 42px;
    display: flex;
    align-items: center;
}

/* Conteneur commun */
.logo-container {
    height: 100%;
    max-width: 150px;
    /* ou ajuste à ton besoin */
    display: none;
}

/* Image du logo */
.logo-container img {
    height: 100%;
    width: auto;
    /* conserve le ratio */
    object-fit: contain;
    display: block;
}

/* Afficher l'un ou l'autre selon la taille écran */
@media (min-width: 768px) {
    .logo-container.desktop {
        display: block;
    }

}

@media (max-width: 767px) {
    .logo-container.mobile {
        display: block;
    }
}

.banner_main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    margin-top: 15px;
    overflow: hidden;
    user-select: none;
}


/* Exemple pour les écrans de 13-15 pouces, typiquement 1366px à 1600px de largeur */
@media screen and (max-width: 1600px) {

    .overlayText {
        top: 45%; /* descente légèrement ajustée */
        transform: translate(-50%, -50%);
        padding: 0 20px; /* éviter que le texte touche les bords */
    }

    .carousselText {
        font-size: 3rem; /* réduire le texte principal */
        margin-bottom: 8px;
    }

    .carousselSubText {
        font-size: 1.5rem; /* réduire le sous-texte */
    }

    .carousel-cta {
        bottom: 25vh; /* remonter légèrement le bouton */
        padding: 0 10px;
    }

    .carousel-indicators button {
        width: 6px;
        height: 6px;
    }

    .carousel-indicators button.active {
        width: 20px;
        border-radius: 35px;
    }

    a#Scroll-to-down-btn {
        height: 50px;
        width: 25px;
        bottom: 60px;
    }

    a#Scroll-to-down-btn::before {
        height: 15px;
        width: 10px;
    }

    .scroll-text {
        font-size: 9px;
        bottom: 120px;
    }
}


.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    background: -webkit-linear-gradient(87deg, #123d27ae 0%, #5eb187a4 66%, #649b88a3 100%);
    background: -moz-linear-gradient(87deg, #123d27ae 0%, #5eb187a4 66%, #649b88a3 100%);
    background: linear-gradient(87deg, #123d27ae 0%, #5eb187a4 66%, #649b88a3 100%);

}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(87deg, #123d27ae 0%, #5eb187a4 66%, #649b88a3 100%);
    z-index: 0;
}

.overlayText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.carousel-item {
    will-change: opacity;
}

.carousel-item img {
    transform: translateZ(0);
}

.carousselText {
    font-size: 4rem;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInLeft 1s forwards;
}

.carousel-item.active .carousselText {
    animation: fadeInLeft 0.8s forwards;
    animation-delay: 0.2s;
}

.carousel-item.active .carousselSubText {
    animation: fadeInRight 0.8s forwards;
    animation-delay: 0.5s;
}

.carousselSubText {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInRight 1s forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-cta {
    position: absolute;
    bottom: 30vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #dbdbdb62;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* visqueux */
}

.carousel-indicators button.active {
    width: 25px;
    /* étirement en barre */
    border-radius: 45px;
    /* coins arrondis */
    background-color: #f5f5f5;
}

a#Scroll-to-down-btn {
    position: absolute;
    height: 60px;
    width: 30px;
    border: 1px solid #ffffff;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 70px;
    border-radius: 42px;
    user-select: none;
    z-index: 10;
    overflow: hidden;
    /* important si tu veux tout confiner */
}

a#Scroll-to-down-btn::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 5px;
    margin: auto;
    height: 20px;
    width: 14px;
    background: #f5f5f5;
    border-radius: 42px;
    animation: move-down 2s infinite;
}

.scroll-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 145px;
    /* juste en dessous du bouton */
    letter-spacing: 2px;
    font-weight: 200;
    font-size: 11px;
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    pointer-events: none;
    z-index: 10;

    background: repeating-linear-gradient(120deg,
            transparent 0%,
            transparent 12%,
            #ffffff 13%,
            transparent 14%,
            transparent 29%,
            #ffffff 30%,
            transparent 31%,
            transparent 46%,
            #ffffff 47%,
            transparent 48%,
            transparent 100%);
    background-size: 300% 100%;
    background-position: 200% center;

    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(245, 245, 245, 0.7);

    animation: shimmerPass 6s infinite ease-in-out;
}

@keyframes shimmerPass {
    0% {
        background-position: 200% center;
    }

    40% {
        background-position: 0% center;
    }

    70% {
        background-position: -100% center;
    }

    100% {
        background-position: -100% center;
    }
}

/* Animation confinée */

@keyframes move-down {
    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(50px);
        opacity: 0;
    }

}



.text-white {
    transition: all 0.3s ease-in-out;
    z-index: 1;
}

body {
    font-family: 'Inter', sans-serif;
    padding-top: 52px;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background-color: rgba(100, 155, 136, 0.3);
    border-radius: 3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 6px;
    background-color: #649b88;
    border-radius: 3px;
}

.mb-6 {
    margin-bottom: 3.5rem;
}

.bg-green-50 {
    --tw-bg-opacity: 1;
    background-color: #649b882d;
}

#backToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease-in-out;
}

#backToTopBtn.show:hover {
    transition: all 0.3s ease-in-out;
}

/* Menu mobile de base */
#mobile-menu {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    transform: translateY(-20px) scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        opacity 0.4s ease-in-out;
    z-index: 40;
}

/* Menu visible avec effet visqueux */
#mobile-menu.show {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
    padding-top: 35px;

}


@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }

    .overlayText {
        top: 40%;
        width: 90%;
        transform: translate(-50%, -50%);
    }

    .carousselText {
        font-size: 2.2rem;
        margin-bottom: 8px;
    }

    .carousselSubText {
        font-size: 1.3rem;
        font-weight: 300;
    }

    .carousel-cta {
        position: absolute;
        top: 57%;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        text-align: center;
    }

    .carousel-cta a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 6px;
    }

    a#Scroll-to-down-btn {
        bottom: 70px;
    }

    a#Scroll-to-down-btn::after {
        font-size: 10px;
        bottom: 70px;
    }

    #backToTopBtn {
        display: none;
    }

    .pulse {
        animation: pulse-mobile 0.6s ease-in-out;
    }

    @keyframes pulse-mobile {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.05);
            opacity: 0.8;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .shake {
        animation: shake-mobile 0.3s ease-in-out;
    }

    @keyframes shake-mobile {
        0% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-4px);
        }

        50% {
            transform: translateX(4px);
        }

        75% {
            transform: translateX(-2px);
        }

        100% {
            transform: translateX(0);
        }
    }
}


#loader-wrapper {
    position: fixed;
    inset: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.infinity-loader {
    width: 100px;
    height: 60px;
    position: relative;
}

.infinity-loader::before,
.infinity-loader::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #649b88;
    border-radius: 50%;
    animation: infinity 1.5s infinite ease-in-out;
}

.infinity-loader::after {
    left: 50px;
    animation-delay: 0.75s;
}

@keyframes infinity {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}


.fa-quote-left,
.fa-quote-right {
    color: #649b88;
    font-size: 1.5rem;
    /* taille ajustable */
    vertical-align: middle;
}

.fa-quote--left {
    margin-right: 6px;
}

.fa-quote--right {
    margin-left: 6px;
}


/*Formulaire de contact (feMorphologie et animation)*/

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    transition: border-color 0.3s ease;
    outline: none;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.4;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom: transparent;
}

.bar {
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 2px;
    width: 0;
    background: #649b88;
    transition: width 0.3s ease-in-out;
}

input:focus~.bar,
textarea:focus~.bar {
    width: 100%;
}

/*Message d'erreur*/

input.border-red-500,
textarea.border-red-500 {
    border-bottom: 2px solid #e53e3e;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* État initial */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quand visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* état initial des liens du menu mobile */
#mobile-menu .nav-link,
#mobile-menu .social-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* état final (affiché) */
#mobile-menu.show .nav-link,
#mobile-menu.show .social-link {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) { /* tablette */
  .carousselText { font-size: 2rem; }
  .carousselSubText { font-size: 1.2rem; }
}

@media (max-width: 640px) { /* mobile */
  .carousselText { font-size: 1.5rem; }
  .carousselSubText { font-size: 1rem; }
}


@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

input.border-red-500,
textarea.border-red-500 {
  animation: shake 0.3s ease-in-out;
}

.error-message {
  font-size: 0.7rem; /* plus petit */
  line-height: 1.2;
  margin-top: 2px;
  margin-left: 0.3rem;
  color: #ef4444; /* rouge Tailwind (500) */
  text-align: left;
}
