/* Variables et reset */
:root {
    --primary: #3a5bbc;
    --secondary: #f8a326;
    --dark: #2f2f2f;
    --light: #f5f5f5;
    --transition: all 0.4s ease;
    --blue: #1E78B4;
    --orange: #F1642C;
    --astra-orange: #f9a825;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    animation: fadeIn 1s ease-in;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue);
    margin-left: 10px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--orange);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.active::after {
    width: 100% !important;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 1rem 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .menu-btn {
        display: block;
    }

    nav {
        position: relative;
    }
}

/* Section À propos */
.about-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.about-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-header h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 25%;
    transform: scaleX(0);
    animation: lineGrow 1.5s ease forwards;
}

.about-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

span {
    color: #f8a326;
}

/* Grille contenu */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Carte contenu */
.about-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--primary);
    font-size: 1.7rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.card-content h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

.card-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Section vision */
.vision-section {
    background: linear-gradient(135deg, var(--primary), #2a3f8a);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vision-section .about-img{
    position: relative;
    width: 10rem;
    height: 10rem;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.vision-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.vision-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}


/* Section équipe */
.team-section {
    margin-top: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.team-section h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 350px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
}

.member-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.member-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--blue);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    color: #f8a326;
    transition: .3s;
}

.footer-col h3:hover {
    color: antiquewhite;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--orange), var(--yellow));
    bottom: 0;
    left: 0;
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--yellow);
}

.contact-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--yellow);
    margin-right: 10px;
    width: 20px;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--astra-orange);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--main-color);
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--blue);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--astra-orange);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}


/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Bouton de contact */
.contact-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(248, 163, 38, 0.3);
}

.contact-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 91, 188, 0.4);
}

/* Animation d'icônes */
.service-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: float 5s ease infinite;
    animation-delay: calc(var(--delay) * 1s);
}

.service-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    width: 100%;
    height: auto;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    top: -50%;
    left: -50%;
    transform: rotate(45deg);
    transition: var(--transition);
}

.service-icon:hover::after {
    top: 100%;
    left: 100%;
}

/*----*/
.about-img {
    position: relative;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 50px;

}

.about-img img {
    width: 50%;
    height: 50%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);


}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;

}

.about-img .circle-spin::before {
    content: '';
    position: absolute;
    top: -0.5px;
    left: -0.5px;
    right: -0.5px;
    bottom: -0.5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--secondary);
    border-left-color: var(--secondary);
    animation: rotate 10s linear infinite;
}