/* Style principal - Comptabilité Néon */

/* Variables et réinitialisation */
:root {
    --dark-emerald: #043927;
    --electric-yellow: #FFD700;
    --ceramic-blue: #A3BFD9;
    --soft-graphite: #2E2E2E;
    --white: #FFFFFF;
    --shadow-neon: 0 0 10px rgba(255, 215, 0, 0.7);
    --font-main: 'Segoe UI', Arial, sans-serif;
    --transition-main: all 0.3s ease;
    --header-height: 80px; /* Hauteur estimée du header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-emerald);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Solution améliorée pour compenser le header sticky sans JavaScript */
section[id] {
    scroll-margin-top: var(--header-height);
    scroll-padding-top: var(--header-height);
}

section[id]::before {
    content: '';
    display: block;
    height: var(--header-height);
    margin-top: calc(-1 * var(--header-height));
    visibility: hidden;
    pointer-events: none;
}

a {
    color: var(--electric-yellow);
    text-decoration: none;
    transition: var(--transition-main);
}

a:hover {
    text-shadow: var(--shadow-neon);
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--electric-yellow);
}

h3 {
    font-size: 1.5rem;
}

/* Layout et conteneurs */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

/* Header et navigation */
header {
    background-color: var(--dark-emerald);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: var(--header-height);
}

/* Classe utilitaire pour centrer le texte */
.text-center {
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--electric-yellow);
    transition: var(--transition-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(4, 57, 39, 0.9), rgba(4, 57, 39, 0.7)), url('./img/UW5EFD.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--ceramic-blue);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-main);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--electric-yellow), var(--dark-emerald));
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--electric-yellow);
    color: var(--electric-yellow);
}

.btn-secondary:hover {
    background-color: var(--electric-yellow);
    color: var(--dark-emerald);
}

/* Sections avec arrière-plans alternés */
.section-alt {
    background-color: var(--ceramic-blue);
    color: var(--soft-graphite);
}

/* À propos */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition-main);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
}

/* Cards pour les services et avantages */
.card {
    background: rgba(163, 191, 217, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-main);
    border-left: 4px solid var(--electric-yellow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--electric-yellow);
}

.card h3 {
    color: var(--electric-yellow);
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(to bottom right, rgba(4, 57, 39, 0.9), rgba(4, 57, 39, 0.7));
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-main);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--electric-yellow), transparent, var(--electric-yellow));
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: var(--transition-main);
}

.service-card:hover::before {
    opacity: 1;
    animation: glowing 1.5s linear infinite;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card .price {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: bold;
    color: var(--electric-yellow);
}

/* Témoignages */
.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 5rem;
    color: var(--electric-yellow);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(163, 191, 217, 0.2);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: bold;
    color: var(--electric-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Formulaire */
.form-section {
    background: linear-gradient(to bottom, rgba(4, 57, 39, 0.8), rgba(4, 57, 39, 0.95)), url('./img/uppj4k.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #000000;
    font-family: var(--font-main);
    transition: var(--transition-main);
    outline: none;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L0 3h12L6 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.custom-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-yellow);
    opacity: 0;
    transition: var(--transition-main);
}

input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

input[type="checkbox"]:focus + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.checkbox-label {
    font-size: 0.9rem;
    flex: 1;
}

/* Pied de page */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--electric-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--ceramic-blue);
}

.footer-links a:hover {
    color: var(--electric-yellow);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.footer-contact-icon {
    margin-right: 10px;
    color: var(--electric-yellow);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Animations CSS */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Adaptations mobiles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--dark-emerald);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
} 