/* Variables CSS pour la palette de couleurs */
:root {
    --primary-gradient: linear-gradient(135deg, #FF0080 0%, #4B0082 100%);
    --accent-yellow: #FFD700;
    --dark-blue: #001f3f;
    --azure: #00CFFF;
    --charcoal: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --neon-glow: 0 0 20px rgba(255, 207, 255, 0.5);
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --text-medium: #333333;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-gradient);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Improved text readability for lists */
ul, ol {
    color: var(--text-dark);
    line-height: 1.6;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Improved text readability for inline elements */
span {
    color: inherit;
}

strong {
    color: var(--text-dark);
}

/* Container et layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Navigation */
.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #FF0080;
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    padding: 150px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-gray);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-yellow);
    color: var(--dark-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--dark-blue);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    background: var(--dark-blue);
    color: var(--white);
}

/* Cards */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--dark-blue);
}

.card p {
    color: var(--text-dark);
    line-height: 1.6;
}

.card ul {
    color: var(--text-dark);
}

.card li {
    color: var(--text-dark);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Services Section */
.services {
    background: var(--light-gray);
}

.service-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 207, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Process Section */
.process {
    background: var(--white);
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.process-step h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--text-dark);
    line-height: 1.6;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 100%;
    width: 120px;
    height: 3px;
    background: var(--accent-yellow);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
}

/* Gallery */
.gallery {
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
    border-left: 4px solid var(--accent-yellow);
}

.testimonial p {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-yellow);
    opacity: 0.3;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-blue);
    text-align: right;
}

.testimonial-author span {
    color: var(--text-light);
}

/* Form */
.form-section {
    background: var(--primary-gradient);
    color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--neon-glow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-medium);
}

/* Select dropdown styles */
.form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-select option {
    background: var(--white);
    color: var(--text-dark);
    padding: 10px;
    font-size: 1rem;
}

.form-select option:checked {
    background: var(--accent-yellow);
    color: var(--dark-blue);
}

.form-select option:hover {
    background: #f8f9fa;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-checkbox a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent-yellow);
    color: var(--dark-blue);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 10000;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--accent-yellow);
    color: var(--dark-blue);
}

.cookie-decline {
    background: #f0f0f0;
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Text readability improvements */
.section p {
    color: var(--text-dark);
    line-height: 1.7;
}

.section:nth-child(even) p {
    color: var(--text-dark);
}

.section h2 {
    color: var(--dark-blue);
    text-shadow: none;
}

.section h3 {
    color: var(--dark-blue);
    text-shadow: none;
}

/* Form checkbox label improvements */
.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Specific section color overrides */

/* Section "Qui Sommes-Nous?" - Black text */
#apropos h2,
#apropos h3,
#apropos h4 {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

#apropos p {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* Fix inline styles in apropos section */
#apropos div h4[style*="color: #001f3f"] {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

#apropos div p[style*="color: #666"] {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* Section "Demandez Votre Devis Gratuit" - Black text */
.form-section h2,
.form-section .form-container h2 {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

.form-section p,
.form-section .form-container p {
    color: var(--text-dark) !important;
    text-shadow: none !important;
}

/* Footer section "Audit Financier Expert" - White text */
.footer-section:first-child h3 {
    color: var(--white) !important;
}

.footer-section:first-child p {
    color: var(--white) !important;
}

/* Footer text labels and copyright - White text */
.footer-section p:contains("Téléphone :"),
.footer-section p:contains("Email :"),
.footer-section p:contains("Adresse :"),
.footer-section p:contains("Heures d'ouverture :") {
    color: var(--white) !important;
}

.footer-bottom p {
    color: var(--white) !important;
}

.footer-bottom {
    color: var(--white) !important;
}

/* Footer contact labels */
.footer-section strong {
    color: var(--white) !important;
}

/* All footer paragraphs with contact info */
.footer p,
.footer-section p {
    color: var(--white) !important;
}

/* Improve text readability in services section */
.services h2 {
    color: var(--dark-blue) !important;
    text-shadow: none !important;
}

.services p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

/* Improve text readability in gallery section */
.gallery h2 {
    color: var(--dark-blue) !important;
    text-shadow: none !important;
}

.gallery p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

.gallery h3[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

/* Improve text readability in testimonials section */
.testimonials h2 {
    color: var(--dark-blue) !important;
    text-shadow: none !important;
}

.testimonials p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

.testimonials span[style*="color: #666"] {
    color: var(--text-light) !important;
}

/* Improve text readability in process section */
.process h2 {
    color: var(--dark-blue) !important;
    text-shadow: none !important;
}

.process p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

/* Improve text readability in general sections */
section p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

section h3[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

/* Improve text readability in legal pages */
.section h1[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

.section h2[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

.section h3[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

.section p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

.section ul[style*="color: #666"] {
    color: var(--text-dark) !important;
}

.section li[style*="color: #666"] {
    color: var(--text-dark) !important;
}

/* Improve text readability in merci page */
.section h4[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

.section p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

.section li[style*="color: #666"] {
    color: var(--text-dark) !important;
}

/* Improve text readability in cards */
.card h3[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

.card p[style*="color: #666"] {
    color: var(--text-dark) !important;
}

.card li[style*="color: #666"] {
    color: var(--text-dark) !important;
}

/* Improve text readability in colored backgrounds */
div[style*="color: #666"] {
    color: var(--text-dark) !important;
}

/* Improve text readability in form labels */
.form-label {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Improve text readability in alerts and boxes */
div[style*="background: #fff3cd"] p {
    color: #856404 !important;
}

div[style*="background: #f8d7da"] p {
    color: #721c24 !important;
}

div[style*="background: #d1ecf1"] p {
    color: #0c5460 !important;
}

div[style*="background: #f8f9fa"] p {
    color: var(--text-dark) !important;
}

/* Additional readability improvements */
.hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Improve readability for all white text on dark backgrounds */
.section[style*="background: var(--primary-gradient)"] p,
.section[style*="background: linear-gradient"] p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure good contrast for all text elements */
.section div[style*="color: #666"] p,
.section div[style*="color: #666"] span,
.section div[style*="color: #666"] strong {
    color: var(--text-dark) !important;
}

/* Improve readability for numbered lists */
.section div[style*="color: #666"] li {
    color: var(--text-dark) !important;
}

/* Additional improvements for specific elements */
.section h4[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
    font-weight: 600;
}

.section strong[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

/* Improve readability for inline text colors */
*[style*="color: #666"] {
    color: var(--text-dark) !important;
}

*[style*="color: #001f3f"] {
    color: var(--dark-blue) !important;
}

/* Smooth scroll behavior for entire site */
html {
    scroll-behavior: smooth;
}

/* Back to top button styling */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0.8;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .nav {
        display: none;
    }
    
    .form {
        padding: 2rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .form {
        padding: 1.5rem;
    }
} 