/* Base styles */
:root {
    --bg-color: #111827;
    --text-color: #f3f4f6;
    --accent-gold: #facc15;
    --accent-blue: #06b6d4;
    --button-gradient-start: #10b981;
    --button-gradient-end: #3b82f6;
    --dark-overlay: rgba(17, 24, 39, 0.8);
    --card-bg: rgba(30, 41, 59, 0.7);
    --header-height: 80px;
    --mobile-header-height: 60px;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo span {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: lowercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--accent-gold);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

/* Button styles */
.button, button, .cta-button {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, var(--button-gradient-start), var(--button-gradient-end));
    color: var(--text-color);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button:hover, button:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button:active, button:active, .cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.button::after, button::after, .cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--button-gradient-end), var(--button-gradient-start));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.button:hover::after, button:hover::after, .cta-button:hover::after {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Section Styles */
section {
    padding: 100px 0;
    width: 100%;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-blue));
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin: 20px;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--accent-gold);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg);
}

.faq-question {
    background-color: var(--card-bg);
    padding: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.faq-answer {
    background-color: rgba(30, 41, 59, 0.4);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-item input:checked ~ .faq-answer {
    max-height: 300px;
    padding: 20px;
}

.faq-item input:checked ~ .faq-question::after {
    transform: rotate(45deg);
}

.faq-item:hover .faq-question {
    background-color: rgba(30, 41, 59, 0.9);
}

/* Contact Form */
.contact-form {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

/* Style pour les selects */
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='%23f3f4f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 10px;
}

.checkbox-group {
    margin-top: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: normal;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-right: 10px;
    vertical-align: middle;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-blue));
    border-radius: 3px;
}

.checkbox-group:hover .checkbox-custom {
    border-color: var(--accent-blue);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Message d'erreur */
.error-message {
    background-color: rgba(220, 38, 38, 0.2);
    border-left: 4px solid #dc2626;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #f3f4f6;
}

/* Form errors */
.form-errors {
    background-color: rgba(220, 38, 38, 0.2);
    border-left: 4px solid #dc2626;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.form-errors ul {
    list-style-type: disc;
    padding-left: 20px;
}

.form-errors li {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: rgba(17, 24, 39, 0.9);
    padding-top: 80px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    margin-top: 10px;
    opacity: 0.8;
}

.footer-contact p, .footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-contact a:hover, .footer-links a:hover, .footer-legal a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-banner p {
    margin-right: 20px;
}

.cookie-banner a {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Contact & Map */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-info-text {
    margin-left: 15px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    margin-top: auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Policy pages */
.policy-content {
    max-width: 800px;
    margin: 100px auto 50px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.policy-content h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-blue));
    border-radius: 2px;
}

.policy-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.policy-content h2::after {
    left: 0;
    transform: none;
    width: 60px;
}

.policy-content p, .policy-content ul, .policy-content ol {
    margin-bottom: 20px;
}

.policy-content ul, .policy-content ol {
    padding-left: 20px;
}

.policy-content ul li, .policy-content ol li {
    margin-bottom: 10px;
}

/* Thank you page */
.thank-you {
    text-align: center;
    padding: 100px 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thank-you h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.thank-you p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        margin-top: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    header .container {
        height: var(--mobile-header-height);
    }
    
    .hero {
        padding-top: var(--mobile-header-height);
        min-height: 500px;
        height: calc(100vh - 20px);
    }
    
    .logo span {
        font-size: 1.6rem;
    }
    
    .nav-toggle-label {
        display: block;
        position: relative;
        cursor: pointer;
        padding: 15px;
        margin-right: -15px;
        z-index: 1001;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-color);
        height: 2px;
        width: 24px;
        position: relative;
        transition: transform 0.3s ease;
    }
    
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    
    .nav-toggle-label span::before {
        bottom: 8px;
    }
    
    .nav-toggle-label span::after {
        top: 8px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(17, 24, 39, 0.95);
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - var(--mobile-header-height));
        overflow-y: auto;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px;
        margin: 0;
    }
    
    nav li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    nav a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .nav-toggle:checked ~ nav {
        transform: scale(1, 1);
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg) translate(5px, 5px);
        bottom: 0;
    }
    
    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg) translate(5px, -5px);
        top: 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .advantage-item {
        padding: 20px 15px;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .contact-section {
        overflow-x: hidden;
        width: 100%;
    }
}

@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
        width: 95%;
        overflow-x: hidden;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .button, button, .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 50px 0;
        overflow-x: hidden;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .section-intro {
        margin-bottom: 40px;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-form {
        word-break: break-word;       /* переносить слова */
        overflow-wrap: break-word; 
        width: 280px;
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .policy-content {
        padding: 25px 15px;
        margin: 80px auto 40px;
    }
    
    .policy-content h1 {
        font-size: 1.8rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
        width: 100%;
    }

    .faq-question::after {
        font-size: 1.2rem;
    }
    
    .faq-item input:checked ~ .faq-answer {
        padding: 15px;
    }
    
    .cookie-banner {
        flex-direction: column;
        padding: 15px;
    }
    
    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .cookie-banner button {
        width: 100%;
    }
    
    .contact-info {
        padding: 20px 15px;
    }
    
    .map-container {
        min-height: 300px;
    }
    
    .thank-you h1 {
        font-size: 2rem;
    }
    
    .thank-you p {
        font-size: 1rem;
    }

    .form-control {
        font-size: 16px; /* Prévient le zoom sur iOS */
    }

    /* Corrections spécifiques pour les FAQ sur mobile */
    .faq-container {
        width: 100%;
    }

    .faq-item {
        margin-bottom: 12px;
    }
} 