/* --- Variables et Style de base --- */
:root {
    --abmcy-blue: #0A2B4C; /* Bleu profond institutionnel */
    --abmcy-white: #FFFFFF;
    --abmcy-light-gray: #f4f7f9;
    --abmcy-accent: #3498db; /* Une touche de bleu plus vif pour les interactions */
    
    --font-sans-serif: 'Lato', sans-serif; /* Typo moderne pour le corps du texte */
    --font-serif: 'Merriweather', serif; /* Typo élégante pour les titres */
}

body {
    font-family: var(--font-sans-serif);
    background-color: var(--abmcy-light-gray);
    color: #333;
    margin: 0;
    scroll-behavior: smooth;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--abmcy-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--abmcy-blue);
}
.logo strong {
    color: var(--abmcy-accent);
}
.logo img {
    height: 50px; /* Hauteur du logo */
    width: auto; /* La largeur s'ajuste automatiquement */
    vertical-align: middle; /* Assure un bon alignement vertical */
}


.main-nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #555;
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--abmcy-accent);
}

.main-nav a.nav-contact {
    background-color: var(--abmcy-accent);
    color: var(--abmcy-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.main-nav a.nav-contact:hover {
    background-color: var(--abmcy-blue);
    color: var(--abmcy-white);
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 6rem 2rem;
    background-color: var(--abmcy-white);
}

.hero-section h1 {
    font-family: var(--font-serif);
    color: #000;
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 650px;
    margin: 1rem auto 2rem auto;
    line-height: 1.7;
}

.cta-button {
    background-color: var(--abmcy-accent);
    color: var(--abmcy-white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--abmcy-blue);
    transform: scale(1.05) translateY(-2px);
}

/* --- Structure générale des sections --- */
.page-section {
    padding: 5rem 2rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    color: #000;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- Conteneur des cartes de service --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* --- Style des cartes de service --- */
.service-card {
    background-color: var(--abmcy-white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0; /* Initialement invisible */
}

/* Animation pour les cartes impaires (1, 3, ...) */
.service-card:nth-child(odd) {
    transform: translateY(50px); /* Vient d'en bas */
}

/* Animation pour les cartes paires (2, 4, ...) */
.service-card:nth-child(even) {
    transform: translateY(-50px); /* Vient d'en haut */
}

/* État visible quand la classe est ajoutée par JS */
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 43, 76, 0.15); /* L'effet de survol est conservé */
}

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

.service-card h2 {
    font-family: var(--font-serif);
    color: #000;
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1; /* Pousse le bouton vers le bas */
    margin-bottom: 1.5rem;
}

/* --- Bouton d'action dans la carte --- */
.card-button {
    background-color: var(--abmcy-accent);
    color: var(--abmcy-white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.card-button:hover {
    background-color: var(--abmcy-blue);
    transform: scale(1.05);
}

/* --- Section Processus --- */
.process-section {
    background-color: var(--abmcy-white);
}

.process-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    padding: 1.5rem;
}

.process-step span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--abmcy-accent);
    color: var(--abmcy-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-serif);
    color: #000;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

/* --- Section Témoignages --- */
.testimonial-container {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--abmcy-white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--abmcy-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: left;
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1rem 0;
    color: #444;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--abmcy-blue);
    font-style: normal;
}

/* ==========================================================================
   Formulaire d'optimisation
   ========================================================================== */

.form-section {
    background-color: var(--abmcy-white);
}

.optimisation-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background-color: #f9fafb; /* Fond légèrement gris pour un look doux */
    padding: 2rem 2.5rem;
    border: 1px solid #e5e7eb; /* Bordure subtile */
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label, 
.form-group legend {
    display: block;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--abmcy-blue);
    margin-bottom: 0.75rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--abmcy-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); /* Ombre douce au focus */
    outline: none;
}

/* ... (autres styles de formulaire à ajouter) ... */

/* --- Footer --- */
.site-footer {
    background-color: var(--abmcy-blue);
    color: var(--abmcy-light-gray);
    text-align: center;
    padding: 2rem;
}

.site-footer a {
    color: var(--abmcy-white);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .site-header { flex-direction: column; gap: 1rem; }
    .hero-section { padding: 4rem 1rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .page-section { padding: 3rem 1rem; }
    .section-title { font-size: 2rem; }
    .process-container, .testimonial-container { flex-direction: column; }
}
/* ==========================================================================
   Hero Carousel Section
   ========================================================================== */

.hero-carousel-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Prend toute la hauteur de l'écran */
    padding: 0; /* On retire le padding pour un vrai plein écran */
    position: relative;
    overflow: hidden;
    --active-color: #4A90E2; /* Default color */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%; /* Le conteneur prend toute la hauteur de la section */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex; /* Ajout pour centrer le contenu */
    align-items: center; /* Ajout pour centrer le contenu */
    justify-content: center; /* Ajout pour centrer le contenu */
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    position: relative; /* S'assure que le contenu est au-dessus de l'image */
    z-index: 2;
    color: var(--abmcy-white);
    text-align: center;
    max-width: 800px; /* Un peu plus large pour l'effet */
    padding: 2rem;
    /* On retire le fond pour un effet plus direct */
    /* background-color: rgba(10, 43, 76, 0.4); */
    /* border-radius: 10px; */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.2); */
    margin-bottom: 55vh; /* Remonte un peu plus le bloc de contenu */
}

.slide-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem; /* Police ajustée pour tenir sur une ligne */
    color: var(--abmcy-white);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ombre pour la lisibilité */
}

.slide-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem; /* Police agrandie pour le sous-titre */
    margin-bottom: 2rem;
    transition: color 0.5s ease;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6); /* Ombre pour la lisibilité */
}

.slide-content .cta-button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.5s ease, transform 0.2s ease;
}

.slide-content .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se place en arrière-plan */
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre tout l'espace */
    opacity: 0.8; /* Légère transparence pour ne pas surcharger */
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--active-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-slide {
        /* flex-direction: column-reverse; */ /* Plus nécessaire */
        text-align: center;
        gap: 1rem;
        justify-content: center;
        padding: 1rem; /* Ajout d'un peu d'espace */
    }
    .slide-content, .slide-image {
        max-width: 100%;
    }
    .slide-content h1 {
        font-size: 2.2rem;
    }
    .slide-image img {
        max-height: 200px;
    }
    .carousel-container {
        height: auto;
        min-height: 500px;
    }
}

/* ==========================================================================
   Bouton de défilement vers le bas
   ========================================================================== */

.scroll-down-button {
    position: absolute;
    bottom: 70px; /* Positionné au-dessus des points de navigation */
    left: 50%;
    z-index: 5;
    width: 50px;
    height: 50px;
    background-color: var(--abmcy-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    /* Animation continue */
    animation: bounce-subtle 2.5s infinite ease-in-out;
    /* Transition pour le survol */
    transition: background-color 0.3s ease;
}

.scroll-down-button:hover {
    background-color: var(--abmcy-blue); /* Changement de couleur au survol */
    animation-play-state: paused; /* Met l'animation en pause au survol pour un effet plus stable */
}

/* Style pour la flèche à l'intérieur du bouton */
.arrow-down {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-color: var(--abmcy-white);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.scroll-down-button:hover .arrow-down {
    transform: rotate(45deg) translateY(2px); /* Petite animation sur la flèche */
}

/* Définition de l'animation de rebond subtil */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}



/* ==========================================================================
   Formulaire d'optimisation - Style Premium
   ========================================================================== */

.optimisation-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background-color: #f9fafb; /* Fond légèrement gris pour un look doux */
    padding: 2rem 2.5rem;
    border: 1px solid #e5e7eb; /* Bordure subtile */
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label, 
.form-group legend {
    display: block;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--abmcy-blue);
    margin-bottom: 0.75rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--abmcy-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); /* Ombre douce au focus */
    outline: none;
}

/* Style pour le champ de fichier */
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: var(--abmcy-white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group input[type="file"]:hover {
    border-color: var(--abmcy-accent);
}

.checkbox-group {
    display: flex;
    align-items: flex-start; /* Aligne au début pour les textes longs */
    margin-bottom: 1rem;
    background-color: var(--abmcy-white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s, box-shadow 0.2s;
}

.checkbox-group:hover {
    border-color: var(--abmcy-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px; /* Aligne la checkbox avec la première ligne de texte */
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--abmcy-accent);
    flex-shrink: 0; /* Empêche la checkbox de rétrécir */
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
}

.checkbox-group label strong {
    color: #111;
}

.form-status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
}
