/* VARIABLES ET RESET */
:root {
    --noir: #000000;
    --noir-80: #333333;
    --noir-60: #666666;
    --noir-40: #999999;
    --noir-20: #CCCCCC;
    --noir-10: #E5E5E5;
    --noir-5: #F5F5F5;
    --blanc: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--noir);
    background: var(--blanc);
    font-weight: 400;
    padding-top: 80px; /* Pour le header fixe */
}




.nav a:hover,
.nav a.active {
    color: var(--noir);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--noir);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--noir-5) 0%, var(--blanc) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--noir-20), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--noir-60);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* HERO FORMULAIRE */
.contact-hero {
    background: linear-gradient(135deg, var(--noir) 0%, var(--noir-80) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.contact-hero p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

/* LAYOUT PRINCIPAL */
.main-content {
    padding: 80px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 120px;
}

.left-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--blanc);
    border: 1px solid var(--noir-10);
    border-radius: 10px;
    text-decoration: none;
    color: var(--noir);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.left-sidebar .sidebar-item:hover {
    border-color: var(--noir);
    transform: translateX(8px);
    box-shadow: 4px 4px 0 var(--noir);
}

.left-sidebar .sidebar-item.active {
    border-color: var(--noir);
    background: var(--noir);
    color: var(--blanc);
}

.sidebar-text {
    font-size: 15px;
    font-weight: 500;
}

/* CONTENU DES SERVICES */
.services-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.service-section {
    background: var(--blanc);
    border: 1px solid var(--noir-10);
    border-radius: 16px;
    padding: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--noir);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-section:hover::before {
    transform: scaleY(1);
}

.service-section:hover {
    border-color: var(--noir-20);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ANIMATIONS */
.services-content .service-section:nth-child(-n+3) {
    animation: slideDown 0.8s ease-out;
}

.services-content .service-section:nth-child(n+4) {
    animation: fadeInUp 0.6s ease-out;
}

.tarifs-content .tarif-section {
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 40px;
}

.service-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.service-header h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0;
    line-height: 1.2;
}

.service-description {
    color: var(--noir-60);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.feature-dot {
    width: 6px;
    height: 6px;
    background: var(--noir);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-dot {
    transform: scale(1.5);
}

.feature-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--noir);
}

/* CONTENU PRINCIPAL CONTACT */
.contact-content {
    padding: 80px 0;
    background: var(--noir-5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}

/* INFORMATIONS CONTACT */
.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--noir);
    letter-spacing: -0.5px;
}

.contact-info > p {
    color: var(--noir-60);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FORMULAIRE */
.contact-form-section {
    padding: 80px 0;
    background: var(--noir-5);
}

.contact-form {
    background: var(--blanc);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--noir-10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--noir);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--noir);
    font-size: 14px;
}



.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    background: var(--noir);
    color: var(--blanc);
    border: none;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--noir-80);
    transform: translateY(-2px);
}

/* STYLES POUR LE CONTENU PRÉSENTATION */
.presentation-content .text-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.presentation-content p {
    color: var(--noir-60);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.highlight-text {
    font-weight: 600;
    color: var(--noir) !important;
    font-style: italic;
    border-left: 3px solid var(--noir);
    padding-left: 1.5rem;
    margin: 1rem 0 !important;
    background: var(--noir-5);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* STYLES POUR LES TARIFS */
.tarifs-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tarif-section {
    background: var(--blanc);
    border: 1px solid var(--noir-10);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
}

.tarif-section:hover {
    border-color: var(--noir-20);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.tarif-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--noir-5);
}

.tarif-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--noir);
    margin: 0;
}

.tarif-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tarif-item-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--noir-5);
    border: 1px solid var(--noir-10);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    font-family: inherit;
}

.tarif-item-btn:hover {
    background: var(--blanc);
    border-color: var(--noir);
    transform: translateX(8px);
    box-shadow: 4px 4px 0 var(--noir);
}

.tarif-service-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tarif-service {
    font-size: 1rem;
    font-weight: 500;
    color: var(--noir);
}

.tarif-desc {
    font-size: 0.875rem;
    color: var(--noir-60);
}

.tarif-prix {
    font-size: 1rem;
    font-weight: 600;
    color: var(--noir-80);
}

.tarif-price-btn {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-arrow {
    color: var(--noir-40);
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.tarif-item-btn:hover .btn-arrow {
    transform: translateX(8px);
    color: var(--noir);
}

/* SECTION CONSEIL - GRID AMÉLIORÉE */
.tarif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tarif-card {
    background: var(--noir-5);
    border: 1px solid var(--noir-10);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.tarif-card:hover {
    border-color: var(--noir);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.tarif-card-service {
    font-size: 1rem;
    font-weight: 600;
    color: var(--noir);
    text-align: center;
}

.tarif-card-prix {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--noir-60);
}

/* RÉSUMÉ DES PRIX DANS LE FORMULAIRE */
.price-summary {
    background: var(--noir-5);
    border: 1px solid var(--noir-10);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--noir-10);
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0 0;
    font-weight: 700;
    font-size: 16px;
    color: var(--noir);
    border-top: 2px solid var(--noir-20);
    margin-top: 10px;
}

/* FOOTER */
.footer {
    background: var(--noir);
    color: var(--blanc);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--noir-40), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-brand p {
    color: var(--noir-40);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--noir-40);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--noir-40);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--blanc);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--blanc);
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--noir-80);
    padding-top: 30px;
    text-align: center;
    color: var(--noir-40);
    font-size: 0.8125rem;
}

/* RIGHT SIDEBAR CACHÉ */
.right-sidebar {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 280px 1fr;
        gap: 50px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .tarif-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 968px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar {
        position: static;
    }
    
    .left-sidebar .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 12px;
    }
    
    .left-sidebar .sidebar-item {
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 200px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .tarif-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .contact-grid,
    .contact-form {
        max-width: 90%;
    }
    
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .contact-content,
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .main-content {
        padding: 60px 0;
    }

    .service-section {
        padding: 30px;
    }

    .service-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-title-group {
        width: 100%;
    }
    
    .service-header h2 {
        font-size: 1.875rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tarif-section {
        padding: 30px;
    }
    
    .tarif-item-btn {
        padding: 18px 20px;
    }
    
    .tarif-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-hero {
        padding: 80px 0 40px;
    }
    
    .contact-hero h1 {
        font-size: 32px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 13px;
    }

    .logo img {
        height: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-section {
        padding: 25px 20px;
    }
    
    .service-header h2 {
        font-size: 1.625rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .tarif-section {
        padding: 25px 20px;
    }
    
    .tarif-item-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    
    .tarif-price-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .presentation-content p {
        font-size: 1rem;
    }
    
    .tarif-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    body {
        padding-top: 100px; /* Plus d'espace pour header empilé */
    }
    
    .contact-form {
        max-width: 95%;
    }
}

/* FOCUS VISIBLE POUR L'ACCESSIBILITÉ */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--noir);
    outline-offset: 2px;
}

/* AMÉLIORATION DE LA LISIBILITÉ */
.service-description,
.presentation-content p {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* SOULIGNER L'ÉLÉMENT ACTIF DANS LA NAVIGATION */
.nav a.active {
    color: var(--noir);
}

.nav a.active::after {
    width: 100%;
}

/* CORRECTION DU DÉFILEMENT POUR LES ANCRES AVEC HEADER FIXE */
html {
    scroll-padding-top: 100px;
}

section {
    scroll-margin-top: 100px;
}

/* STYLES POUR LES DÉTAILS DU SERVICE DANS LES FORMULAIRES */
.service-details {
    margin-top: 30px;
    padding: 25px;
    background: var(--noir-5);
    border-radius: 12px;
    border: 1px solid var(--noir-10);
}

.service-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--noir);
}

.service-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--noir-60);
    font-size: 15px;
}

.service-details li::before {
    content: '✓';
    color: var(--noir);
    font-weight: bold;
    font-size: 14px;
}






/* STYLES POUR LES  CHECKBOXS */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--noir-5);
    border: 1px solid var(--noir-10);
    border-radius: 10px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--blanc);
    border: 1px solid var(--noir-10);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--noir);
}

.checkbox-label:hover {
    border-color: var(--noir-40);
    transform: translateX(4px);
    background: var(--noir-5);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--noir);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--noir);
    font-weight: 600;
}

.checkbox-label span {
    transition: all 0.3s ease;
}

/* Version compacte pour les checkboxes */
.checkbox-group.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
}

.checkbox-group.compact .checkbox-label {
    padding: 10px 12px;
    font-size: 14px;
}

/* Indication visuelle quand checked */
.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: var(--noir);
    background: var(--noir-5);
    box-shadow: 0 2px 8px rgba(255, 254, 254, 0.1);
}








.alert {
    padding: 15px 20px;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 800px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-error ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.alert-error li {
    margin: 5px 0;
}







/* Styles pour les champs en erreur */
.form-group input.error-field,
.form-group select.error-field,
.form-group textarea.error-field {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

body.dark-theme .form-group input.error-field,
body.dark-theme .form-group select.error-field,
body.dark-theme .form-group textarea.error-field {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* Alerte d'erreur de soumission */
.submit-error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: var(--text-primary);
    animation: shake 0.5s ease-in-out;
}

body.dark-theme .submit-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Style pour les labels des champs obligatoires */
.form-group label[required]::after {
    content: " *";
    color: #dc2626;
}




