/* =======================================
   Variables CSS
   ======================================= */
:root {
    --primary-color: #6B7FD7;
    --primary-dark: #5566C3;
    --primary-light: #8B9FE8;
    --secondary-color: #9B7FD7;
    --accent-color: #D77FB5;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FF;
    --bg-white: #FFFFFF;
    --hero-bg: #B8C5F4;
    --border-color: #E0E7FF;
    --shadow: 0 2px 15px rgba(107, 127, 215, 0.1);
    --shadow-hover: 0 5px 25px rgba(107, 127, 215, 0.2);
    --transition: all 0.3s ease;
}

/* =======================================
   Reset et Base
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================
   Typographie
   ======================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* =======================================
   Header & Navigation
   ======================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* =======================================
   Boutons
   ======================================= */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--bg-white);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =======================================
   Hero Section - Avec fond coloré
   ======================================= */
.hero {
    padding: 120px 0 60px;
    background: var(--hero-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: floatAnimation 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

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

/* =======================================
   About Section
   ======================================= */
.about {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    font-style: italic;
}

/* =======================================
   Services Section
   ======================================= */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =======================================
   Crédit d'impôt Section
   ======================================= */
.credit-impot {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
}

.credit-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.credit-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.credit-impot h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.credit-main {
    font-size: 1.3rem;
    color: var(--bg-white);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.credit-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.credit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.credit-item h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.credit-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.credit-note {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--bg-white);
}

/* =======================================
   Recrutement Section
   ======================================= */
.recrutement {
    padding: 80px 0;
    background: var(--bg-white);
}

.recrutement-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.recrutement-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.recrutement-text h3:first-child {
    margin-top: 0;
}

.recrutement-list {
    list-style: none;
    margin-bottom: 2rem;
}

.recrutement-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.recrutement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.recrutement-form-box {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recrutement-form-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recrutement-form-box p {
    margin-bottom: 2rem;
}

.form-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =======================================
   Contact Section
   ======================================= */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-item p, .contact-item a {
    color: var(--text-light);
    font-size: 1rem;
}

.social-links {
    margin-top: 3rem;
}

.social-links h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #E1306C, #C13584);
    color: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--bg-white);
}

/* =======================================
   Formulaire
   ======================================= */
.contact-form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 127, 215, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* =======================================
   Footer - Amélioré
   ======================================= */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(107, 127, 215, 0.3);
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(107, 127, 215, 0.4);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* =======================================
   Responsive Design
   ======================================= */
@media (max-width: 968px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-content-wrapper,
    .about-content,
    .recrutement-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image-content {
        order: -1;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .credit-details {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .recrutement-form-box {
        padding: 2rem;
    }

    .logo img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .credit-impot h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-logo img {
        max-width: 180px;
    }

    .logo img {
        height: 45px;
    }
}

/* =======================================
   Animations
   ======================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.credit-item,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* =======================================
   Accessibilité
   ======================================= */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* =======================================
   Print Styles
   ======================================= */
@media print {
    .navbar,
    .menu-toggle,
    .hero-buttons,
    .btn,
    .contact-form,
    .footer {
        display: none;
    }

    body {
        color: #000;
    }

    .hero {
        padding-top: 0;
    }
}

/* Étape 1 : Le fond hero avec un gradient multicolore TRÈS visible */
.hero {
    background: linear-gradient(120deg, 
        #A8B7F0 0%,      /* Bleu */
        #C8B8F4 35%,     /* Violet */
        #E8C8F4 70%,     /* Rose */
        #F4E8F0 100%     /* Rose très clair */
    ) !important;
    padding: 120px 0 60px !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Étape 2 : Les cercles décoratifs animés (pseudo-éléments) */

/* Cercle VIOLET en haut à droite - Couleur et taille augmentées */
.hero::before {
    content: '' !important;
    position: absolute !important;
    top: -20% !important;
    right: -10% !important;
    width: 700px !important;
    height: 700px !important;
    background: radial-gradient(circle, rgba(155, 127, 215, 0.45) 0%, transparent 65%) !important;
    border-radius: 50% !important;
    filter: blur(60px) !important;
    animation: pulse-circle 8s ease-in-out infinite !important;
    z-index: 1 !important;
}

/* Cercle ROSE en bas à gauche - Couleur et taille augmentées */
.hero::after {
    content: '' !important;
    position: absolute !important;
    bottom: -25% !important;
    left: -15% !important;
    width: 800px !important;
    height: 800px !important;
    background: radial-gradient(circle, rgba(215, 127, 181, 0.35) 0%, transparent 65%) !important;
    border-radius: 50% !important;
    filter: blur(80px) !important;
    animation: pulse-circle-2 10s ease-in-out infinite !important;
    z-index: 1 !important;
}

/* Cercle BLEU au centre - Couleur augmentée */
.hero .hero-content-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 600px !important;
    height: 600px !important;
    background: radial-gradient(circle, rgba(107, 127, 215, 0.25) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    filter: blur(50px) !important;
    animation: rotate-slow 30s linear infinite !important;
    z-index: 1 !important;
}

/* Étape 3 : S'assurer que le contenu (texte, image) reste au-dessus des cercles */
.hero .hero-content-wrapper {
    position: relative !important;
    z-index: 2 !important;
}

/* Étape 4 : Les animations (keyframes) - SYNTAXE CORRIGÉE */

/* Animation de pulsation pour le cercle violet */
@keyframes pulse-circle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* Animation de pulsation et rotation pour le cercle rose */
@keyframes pulse-circle-2 {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.9) rotate(45deg);
        opacity: 0.6;
    }
}

/* Animation de rotation lente pour le cercle bleu central */
@keyframes rotate-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Étape 5 : Optimisation pour les mobiles */
@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        filter: blur(40px) !important;
        opacity: 0.5 !important;
    }

    .hero .hero-content-wrapper::before {
        display: none !important; /* On cache le cercle central sur petit écran */
    }
}

/* Agrandir l'image hero-illustration */
.hero-illustration {
    width: 100% !important;
    max-width: 650px !important;  /* Augmenté de 500px à 650px */
    height: auto !important;
    animation: floatAnimation 6s ease-in-out infinite !important;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1)) !important;
}

/* Animation amplifiée - Mouvement beaucoup plus prononcé */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-40px);  /* Augmenté de -20px à -40px */
    }
}

/* Version responsive pour tablettes */
@media (max-width: 968px) {
    .hero-illustration {
        max-width: 550px !important;
    }
}

/* Version responsive pour mobiles */
@media (max-width: 576px) {
    .hero-illustration {
        max-width: 100% !important;
    }

    /* Animation réduite sur mobile pour économiser la batterie */
    @keyframes floatAnimation {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-25px);
        }
    }
}