/* Styles CSS pour Domain - Services Comptables */

/* Variables CSS pour la palette de couleurs unique */
:root {
    --gradient-bg: linear-gradient(135deg, #00C9A7 0%, #FF6B6B 100%);
    --primary-teal: #00C9A7;
    --warm-coral: #FF6B6B;
    --accent-gold: #FFD93D;
    --deep-blue: #0D3B66;
    --text-dark: #2E2E2E;
    --text-white: #FFFFFF;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--gradient-bg);
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography responsive */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-white);
    text-shadow: 2px 2px 4px var(--shadow-medium);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: bold;
    color: var(--deep-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary-teal);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: var(--primary-teal);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: var(--gradient-bg);
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/Jy6bsA.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-white);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--deep-blue);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.6);
}

/* Sections générales */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.9);
}

.section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.7);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Grid responsive */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-item {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-light);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.grid-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

/* À propos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services */
.service-item {
    text-align: center;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.8);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Étapes de travail */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--text-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    animation: fadeInUp 0.8s ease-out;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--deep-blue);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    z-index: 1;
}

.step-item:last-child::before {
    display: none;
}

/* Formulaire */
.contact-form {
    background: var(--text-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow-medium);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-blue);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: var(--text-white);
    box-shadow: 0 0 10px rgba(0, 201, 167, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-bg);
    color: var(--text-white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 201, 167, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 201, 167, 0.5);
}

/* Footer */
.footer {
    background: var(--deep-blue);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--deep-blue);
    color: var(--text-white);
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -5px 20px var(--shadow-medium);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--accent-gold);
    color: var(--deep-blue);
}

.cookie-decline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.cookie-btn:hover {
    transform: scale(1.05);
}

/* Animations CSS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .header {
        padding: 0;
    }
    
    .nav-container {
        padding: 0.8rem 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        order: 2;
        font-size: 0.9rem;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        background: rgba(0, 201, 167, 0.1);
    }
    
    .hero {
        padding: 90px 0 50px;
        min-height: 60vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .step-item::before {
        display: none;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-menu a {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Accessibilité et focus states */
*:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Impression */
@media print {
    .header, .footer, .cookie-banner {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
