/* Styles spécifiques pour la page À propos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: 0 0 50px 50px;
    padding: 120px 0 100px 0;
    margin: 0;
    overflow: hidden;
    background-image: url('svg/hero-section-background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--text-color);
}

.hero-title {
    font: var(--font-size-xxl);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.hero-subtitle {
    font: var(--font-size-l);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
}

.hero-description {
    margin-bottom: 32px;
}

.two-cta-buttons{
    display: flex;
    gap:32px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animation flottante pour l'illustration de la hero section */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Application de l'animation à l'image de la hero section */
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    animation: float 8s ease-in-out infinite;
}

/* Services Section Styles */
.services-section {
    padding: 72px 20px 0px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    align-items: start;
}

/* Image Section */
.services-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-image img {
    width: 100%;
    /*max-width: 490px;*/
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Services Content */
.services-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-category h2, .formations-title, .autres-services-info-title {
    font: var(--font-size-l);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.formations-title br {
    display: none;
}

.services-category h2 {
    margin-bottom: 32px;
}

/* Dropdown Items */
.dropdown-item {
    margin-bottom: 24px;
}

/* Style fermé - fond gris clair avec flèche droite */
.dropdown-btn {
    font: var(--font-size-xs);
    border: 3px solid #ffffff30;
    background: rgba(255, 255, 255, 0.30);
    box-shadow: 0px 4px 26.3px 0px rgba(153, 153, 153, 0.35);
    backdrop-filter: blur(20px);
    width: 100%;
    border-radius: 25px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Style ouvert - bordure bleue avec flèche vers le bas dans cercle bleu */
.dropdown-btn.active {
    background-color: rgba(255, 255, 255, 0.5);
    border: 3px solid transparent;
    border-radius: 25px;
    background-image: linear-gradient(#F8F9FF, #F8F9FF), var(--dgrad-3-couleurs);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    backdrop-filter: blur(20px);
    box-shadow: 0px 4px 26.3px rgba(153, 153, 153, 0.35);
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: none;
    border-radius: 25px 25px 0 0;
    box-shadow: none;
    
}

/* Icône flèche */
.dropdown-icon {
    border-radius: 1000px;
    border: 3px solid #FFF;
    background: rgba(255, 255, 255, 0.30);
    box-shadow: 0px 4px 26.3px 0px rgba(153, 153, 153, 0.35);
    backdrop-filter: blur(20px);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dropdown-icon svg {
    width: 18px;
    height: 18px;
    color: var(--white);
    transition: transform 0.3s ease;
}

/* Flèche vers la droite par défaut */
.dropdown-btn:not(.active) .dropdown-icon svg {
    transform: rotate(-90deg);
}

/* Flèche vers le bas quand ouvert */
.dropdown-btn.active .dropdown-icon svg {
    transform: rotate(0deg);
}

/* Dropdown Content */
.dropdown-content {
    background-color: rgba(255, 255, 255, 0.5);
    border-top: none;
    border-radius: 0 0 25px 25px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}

.dropdown-icon svg path {
stroke: url(#arrowGradient);
}

.dropdown-content.active {
    border-top: none!important;
    border: 3px solid transparent;
    border-radius: 0 0 25px 25px;
    background-image: linear-gradient(#F8F9FF, #F8F9FF), var(--dgrad-3-couleurs);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 400px;
    padding: 0 25px;
}

/* Services dans le dropdown */
.service-item {
    padding: 16px 16px;
    border-bottom: 1px solid rgba(11, 46, 200, 0.1);
}

.service-item:last-child {
    border-bottom: none;
}

.service-description {
    color: var(--text-color);
}

.service-price {
    margin-top:8px;
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font: var(--font-size-xs);
    text-align: right;
    display: block;
}

/* Section Formations */
.formations-section {
    padding: 144px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.formations-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Contenu texte des formations */
.formations-content {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.autres-services-info-title {
    text-align: center;
    margin-bottom: 24px;
}

.autres-services-info-title br {
    display: none;
}

.autres-services-info-subtitle {
    font: var(--font-size-m);
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.formations-description {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

.formations-description p {
    margin: 0;
}

.cta-button {
    align-self: left;
}

/* Dropdowns des formations */
.formations-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Contenu spécifique des formations */
.formation-item {
    padding: 16px 16px;
}

.formation-content {
    color: var(--text-color);
}

.title-formation-debutant{
    text-decoration: underline;
}

.formation-content ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.formation-content li {
    color: var(--text-color);
}

.formation-section {
    margin-bottom: 20px;
}

.formation-section:last-of-type {
    margin-bottom: 16px;
}

.formation-price {
    background: var(--dgrad-bleu);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font: var(--font-size-xs);
    margin-top: 16px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {

    .cta-button {
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .two-cta-buttons {
        flex-direction: column;
        gap:24px;
        
    }

    .formations-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .formations-section {
        padding: 60px 20px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-section {
        padding: 60px 20px 0px 20px;
    }

    .services-content,
    .formations-dropdowns {
        width: 100%;
        max-width: 650px;
        width: 100%;
        align-self: center;
        margin: 0 auto;
    }

    .dropdown-item {
        width: 100%;
    }

    .dropdown-btn,
    .dropdown-content {
        width: 100%;
    }

    
}

/* Tablettes portrait - max-width: 768px */
@media screen and (max-width: 768px) {
    .hero-section {
        background-image: url('svg/hero-section-background-mobile.svg');
        padding: 120px 0 20px 0;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    .hero-image img {
        animation: float 6s ease-in-out infinite;
        width: 50%;
    }
    
    .services-section {
        padding: 40px 15px 0px 15px;
    }
    
    .services-container {
        gap: 40px;
    }
    
    .services-category h2 {
        margin-bottom: 20px;
    }
    
    .dropdown-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    .services-content {
        gap: 24px;
    }

    .formations-section {
        padding: 40px 15px;
    }
    
    .formations-container {
        gap: 40px;
    }
    
    .formations-content {
        gap: 24px;
    }

    .formation-item {
        padding: 16px 12px;
    }
    
    .formation-content ul {
        padding-left: 16px;
    }
}

/* Mobile - max-width: 480px */
@media screen and (max-width: 480px) {
    * {
        font-size: 16px;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-container p {
        text-align: left ;
    }

    .hero-title {
        font: var(--font-size-xxl-m);
    }

    .hero-subtitle, .formations-title, .autres-services-info-title {
        font: var(--font-size-l-m);
        text-align: center;
    }

    .formations-title br {
        display: block;
    }

    .autres-services-info-title br {
        display: block;
    }

    .autres-services-info-subtitle {
        margin-top: 16px;
        font: var(--font-size-s-m);
    }

    .autres-services-info-title, .autres-services-info-subtitle {
        margin-right: 16px;
        margin-left: 16px;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-description {
        padding: 0px 16px;
    }

    .services-content h2 {
        font: var(--font-size-s-m);
    }

    .dropdown-btn {
        padding: 12px;
    }
    
    .dropdown-content li {
        padding: 8px 0;
    }

    .formations-section {
        margin-top: 40px;
        padding: 40px 16px;
    }

    .formations-section a {
        margin-top: 40px;
    }
    
    .formation-price {
        padding: 10px;
        font: var(--font-size-xs-m);
    }

    .formations-dropdowns {
        max-width: 100%;
    }

  .dropdown-content.active {
        max-height: none;
        overflow-y: visible;
        padding: 0 15px;
    }
}