/*
 Theme Name: ETI Club
 Theme URI: https://eleckid.github.io/
 Author: Stéphane DONNA
 Author URI: https://eleckid.github.io/
 Description: Un thème WordPress utilisant Tailwind CSS et Flowbite, compatible avec Elementor.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: eti
*/
:root {
    /* Colors */
    /* Blue */
    --eti-blue-50: #c2eaffff;
    --eti-blue-100: #8fd9ffff;
    --eti-blue-200: #5cc7ffff;
    --eti-blue-300: #29b6ffff;
    --eti-blue-400: #00a1f5ff;
    --eti-blue-500: #0081c4ff;
    --eti-blue-600: #005e8fff;
    --eti-blue-700: #003c5cff;
    --eti-blue-800: #001b29ff;
    --eti-blue-900: #001724ff;
    /* Gray */
    --eti-gray-50: #f9fafb;
    --eti-gray-100: #f3f4f6;
    --eti-gray-200: #e5e7eb;
    --eti-gray-300: #d1d5db;
    --eti-gray-400: #9ca3af;
    --eti-gray-500: #6b7280;
    --eti-gray-600: #4b5563;
    --eti-gray-700: #374151;
    --eti-gray-800: #1f2937;
    --eti-gray-900: #111827;
    /* White */
    --eti-white: #f5fcffff;
    /* OTHER */
    --card-color: #002233;
    --body-bg: #ebf5ff;

    --dark-blue: #233876;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.text-dark-blue {
    color: var(--dark-blue);
}

.bg-dark-blue {
    background-color: var(--dark-blue);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #333;
    background-color: var(--body-bg);
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 36px !important;
    font-style: normal;
    font-weight: 800 !important;
    color: var(--eti-blue-500);
    max-width: 672px;
}

p {
    color: var(--gray-600);
}

.btn {
    padding: 10px 20px !important;
    border-radius: var(--rounded-lg, 8px);
    border: 1px solid var(--eti-gray-200);
    font-size: 14px !important;
    font-style: normal;
    font-weight: 500;
    justify-content: center;
    align-items: center;
    gap: var(--2, 8px);
    display: flex;
}

input:disabled,
input:read-only,
select:disabled,
textarea:disabled {
    background-color: var(--eti-gray-100);
    color: var(--eti-gray-500);
    cursor: not-allowed;
}

.adherent-card,
.company-card {
    display: flex;
    width: 400px;
    height: 480px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    background: var(--card-color);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.adherent-card:hover,
.company-card:hover {
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.4);
    transform: scale(1.05) !important;
}

.adherent-card-content,
.company-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 300px;
    color: var(--eti-white);
    padding: 8px;
}

.adherent-card-name,
.company-card-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 150%;
}

.adherent-card-job {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 8px;
}

.adherent-card-job-2 {
    color: var(--eti-white);
    font-size: 14px;
    font-weight: 300;
    line-height: 150%;
}

.adherent-card-photo,
.company-card-photo {
    position: absolute;
    bottom: 0;
    left: 0;
    border-bottom-left-radius: 16px;
    -webkit-mask: url('./dist/css/mask-image.png') no-repeat -6px 25px / contain; 
            mask: url('./dist/css/mask-image.png') no-repeat  -6px 25px / contain;
}

.linkedin-link {
    position: absolute;
    bottom: 20px;
    right: 30px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.linkedin-link:hover {
    transform: scale(1.1);
}

.mask-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 450px;
            height: 321px;
            background-color: white;
            -webkit-mask: url('./dist/css/mask-image.png') no-repeat -6px 25px / contain; 
            mask: url('./dist/css/mask-image.png') no-repeat  -6px 25px / contain;
            border-bottom-left-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.5em;
        }

        .mask-container img {
          -webkit-transform: scale(0.5) translateX(-200px);-ms-transform: scale(0.5) translateX(-200px);transform: scale(0.5) translateX(-200px);
          width: 100%;
        }

div[modal-backdrop] {
    background-color: rgba(0, 0, 0, 0.2);
}

input:required ~ label::after,
input:required + label::after {
    content: ' *';
    color: var(--eti-blue-500);
}

.liked {
    color: var(--eti-blue-500);
}

svg.liked path {
    fill: var(--eti-blue-500) !important;
}

label.required::after,
p.required::after,
textarea.required::after {
    content: ' *';
    color: red;
}

textarea {
    overflow: hidden;
}

.swiper {
    height: 640px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-navigation-wrapper {
    position: absolute;
    top: 50%;
    left: 4%;
    top: 300px;
    left: 50px;
    height: 197px;
    z-index: 1000;
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.swiper-navigation-wrapper svg {
    display: block;
}

.custom-button-prev,
.custom-button-next {
    cursor: pointer;
}

.custom-button-prev path:hover,
.custom-button-next path:hover {
    fill: white !important;
    opacity: 1 !important;
}

.custom-pagination {
    font-size: 30px;
    opacity: 0.3;
    color: white;
    font-weight: 700;
    line-height: 45px;
}

.swiper-content {
    color: white;
    border-radius: 10px;
    font-size: 20px;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    left: 9%;
    top: 125px;
    left: 115px;
}

.swiper-content-title {
    font-size: 36px;
    font-weight: 800;
    text-align: left;
    line-height: 150%;
}

.swiper-content-description {
    font-size: 24px;
    font-weight: 500;
    line-height: 150%;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-text {
    font-size: 16px;
    color: #333;
}

.card-date {
    font-size: 14px;
    color: #777;
}

#home-table tr:nth-child(2) {
    background-color: var(--body-bg);
}

/* Styles pour les sous-menus */
.menu-item-has-children:hover > .sub-menu {
    display: flex;
}

.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 130%;
    z-index: 10;
    background-color: white;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1),
        0px 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 1.2em;
    border-radius: 8px;
    width: 232px;
    transition: all ease-in-out 0.3s;
}

.sub-menu .menu-item {
    white-space: nowrap;
}

.nav-link.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 5px;
}


.sticky-effect {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    animation: fadeInAnimation ease 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#nav-fixed a:active {
    color: var(--eti-blue-500) !important;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.single-event-content-container {
    order: 1;
}

/* Responsive */

@media screen and (max-width: 768px) {
    .sub-menu {
        position: static !important;
        display: none;
        padding: 0;
        box-shadow: none !important;
        border-radius: 0;
        width: 100%;
    }

    .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .nav-link.dropdown-toggle::after {
        content: ' ►';
    }

    .swiper-navigation-wrapper {

        left: 30px;
    }

    .swiper-content-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 1020px) {

    .swiper-content {
        top: 80px;
        max-width: 250px;
    }

    .single-event-content-container {
        order: 2 !important;
    }
}

@media screen and (max-width: 450px) {
	.adherent-card {
		width: 100% !important
	}
}