/* 
 * Main stylesheet for domain.com
 * Color Palette:
 * - Deep Cobalt: #283593
 * - Bright Fuchsia: #EC407A
 * - Pearly White: #F3F4F6
 * - Graphite: #212121
 * - Aqua Accent: #00BCD4
 */

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #F3F4F6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #283593;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #EC407A;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212121;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem; 
    margin-bottom: 2rem; 
    text-align: center; /* Centre tous les titres h2 */
}
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Logo */
.logo-text {
    font-size: 2rem;
    text-transform: lowercase;
    color: #283593;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
}

.menu-icon {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: #283593;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #283593;
    transition: all 0.3s ease;
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(8px);
}

.menu-toggle:checked + .menu-button .menu-icon {
    background-color: transparent;
}

.menu-toggle:checked + .menu-button .menu-icon::before {
    transform: rotate(45deg);
}

.menu-toggle:checked + .menu-button .menu-icon::after {
    transform: rotate(-45deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    display: block;
    padding: 0.5rem;
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EC407A;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #283593, #00BCD4);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 53, 147, 0.3);
}

.nav-cta:hover::after {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #283593, #00BCD4);
    color: white;
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero .logo-text {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: #EC407A;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: white;
    color: #EC407A;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 64, 122, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0;
}

/* Why Us Section */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    position: relative;
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #EC407A, #283593);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

/* Timeline Section */
.timeline {
    background-color: #fff;
    position: relative;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #283593;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #EC407A;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: #F3F4F6;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(236, 64, 122, 0.5);
}

/* Testimonials Section */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

/* FAQ Section */
.faq {
    background-color: #F3F4F6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:target .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item:target .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Contact Form Section */
.custom-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.custom-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #283593, #00BCD4, #EC407A);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #283593;
    box-shadow: 0 0 0 3px rgba(40, 53, 147, 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.submit-button {
    background: linear-gradient(135deg, #283593, #00BCD4);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #00BCD4, #283593);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(40, 53, 147, 0.3);
}

/* Footer */
.main-footer {
    background-color: #212121;
    color: white;
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info, .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-logo p {
    color: #ccc;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1rem;
}

.white-contact li,
.white-contact li strong,
.white-contact li a,
.white-contact li address {
    color: white !important;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
}

.footer-nav li, .footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00BCD4;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    text-align: center;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(40, 53, 147, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    display: none; /* Hidden by default, shown with JavaScript */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content a {
    color: #00BCD4;
    text-decoration: underline;
}

.cookie-button {
    background-color: #EC407A;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-button:hover {
    background-color: white;
    color: #EC407A;
}

/* Legal Pages */
.legal-page {
    padding: 8rem 0 5rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legal-container h1 {
    border-bottom: 2px solid #283593;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Page de remerciement */
.thank-you-content {
    text-align: center; /* Centre tout le contenu de la page de remerciement */
}

.thank-you-content p {
    text-align: center; /* Assure que les paragraphes sont également centrés */
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.legal-container h1 {
    text-align: center; /* Centre le titre h1 pour toutes les pages légales, y compris la page de remerciement */
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: #283593;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .footer-container,
    .footer-info,
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    .menu-toggle:checked ~ .main-nav {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        padding: 1rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero .logo-text {
        font-size: 3rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
} 