:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #06B6D4;
    --secondary-light: #67E8F9;
    --accent: #F97316;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #94A3B8;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn-primary:active::after {
    width: 200%;
    height: 200%;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.gradient-bg {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-wave .shape-fill {
    fill: #FFFFFF;
}

.feature-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 1.5rem;
}

.benefit-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-item:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 1rem;
}

.faq-active .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

.faq-question .icon {
    transition: transform 0.3s ease;
}

.faq-active .faq-question .icon {
    transform: rotate(45deg);
}

.step-item {
    position: relative;
    padding-bottom: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.step-item > p {
    flex-grow: 1;
}

/* Centrer le contenu verticalement dans les boîtes d'information */
.step-item > div.bg-white {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px; /* Ajustez au besoin */
}

.step-number {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 80%;
    left: 10%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: white;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.visible {
    transform: translateX(0);
}

.mobile-nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.tooltip {
    position: relative;
}

.tooltip:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

.tooltip:hover:before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
    z-index: 10;
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.scale-animation {
    animation: scale 5s ease-in-out infinite;
}

@keyframes scale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Custom checkboxes */
.custom-checkbox {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 9px;
    top: 5px;
    width: 7px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Scroll indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Custom select */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select select {
    appearance: none;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

.custom-select:after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray);
    transition: all 0.3s ease;
}

.custom-select:hover:after {
    color: var(--dark);
}

/* Blob animations */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: -1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-light);
    top: -100px;
    right: -100px;
    animation: blob-move-1 20s ease-in-out infinite alternate;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-light);
    bottom: 10%;
    left: -100px;
    animation: blob-move-2 15s ease-in-out infinite alternate;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background-color: var(--accent);
    top: 40%;
    right: -50px;
    animation: blob-move-3 18s ease-in-out infinite alternate;
}

@keyframes blob-move-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-50px, 50px) scale(1.2);
    }
}

@keyframes blob-move-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, -30px) scale(1.1);
    }
}

@keyframes blob-move-3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-30px, 50px) scale(1.15);
    }
}

/* Team profile cards */
.team-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-card-content {
    padding: 1.5rem;
    background-color: white;
    text-align: center;
}

.team-social {
    display: flex;
    gap: 0.5rem;
}

.team-social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-social-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Highlighting for important text */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(129, 140, 248, 0.3);
    z-index: -1;
    transform: skewX(-10deg);
}

/* Custom styles for mobile */
@media (max-width: 768px) {
    .hero-wave svg {
        height: 40px;
    }

    .comparison-container {
        height: 300px;
    }

    .blob {
        filter: blur(40px);
        opacity: 0.3;
    }

    .blob-1, .blob-2, .blob-3 {
        width: 200px;
        height: 200px;
    }
}

/* Faire grandir le paragraphe pour pousser le bloc bénéfice vers le bas */
.feature-card > p.text-gray-600 {
    flex-grow: 1;
}

/* Rétablissement des règles de comparaison Avant/Après */
.comparison-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comparison-before, .comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-before {
    background-image: url('images/outils_actuel_profs.png');
    z-index: 1;
}

.comparison-after {
    background-image: url('images/infographie_classe360.png');
    width: 50%;
    z-index: 2;
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    transform: translateX(-50%);
    z-index: 3;
    cursor: ew-resize;
    outline: none; /* Supprimer le contour par défaut lors du focus */
}

/* Amélioration du style et de la zone de contact du handle */
.comparison-handle::after {
    font-family: "Font Awesome 6 Free"; /* Utilisation de FontAwesome */
    font-weight: 900;
    content: "\f337"; /* Icône fas fa-arrows-alt-h */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;  /* Augmentation de la taille */
    height: 50px; /* Augmentation de la taille */
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem; /* Ajustement taille icône */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse-handle 2s infinite ease-in-out; /* Durée réduite à 2s */
}

.comparison-handle:hover::after, .comparison-handle:focus::after {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Styles pour accessibilité focus clavier (simple contour) */
.comparison-handle:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Animation de pulsation pour le handle */
@keyframes pulse-handle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15); /* Augmentation de l'échelle */
        opacity: 0.85;
    }
}

/* Amélioration scroll suggestions sur mobile */
#school-suggestions {
    -webkit-overflow-scrolling: touch;
}

/* Conteneur pour cacher le débordement des blobs */
#blob-container {
    position: absolute; /* Ou fixed si besoin */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Pour ne pas gêner les clics */
    z-index: -1; /* Pour être derrière le contenu */
}

html, body {
    overflow-x: hidden;
} 