/* 
 * Style CSS pour domain
 * Palette de couleurs: 
 * - Fond principal: #1E1E2F (violet foncé)
 * - Accents: #F8B195 (pêche), #355C7D (bleu profond), #6C5B7B (lavande)
 * - Texte: #FFFFFF et #EDEDED
 * - Boutons: gradient de #F67280 à #C06C84
 */

/* ------------ Reset & Bases ------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* Pour faciliter le calcul des rem (1rem = 10px) */
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #EDEDED;
    background-color: #1E1E2F;
    overflow-x: hidden;
}

/* --- Typographie --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Roboto', sans-serif;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #FFFFFF;
}

h1 {
    font-size: 4.8rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    height: 0.4rem;
    width: 8rem;
    background: linear-gradient(to right, #F8B195, #F67280);
    margin-top: 1.2rem;
}

h3 {
    font-size: 2.4rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.6rem;
}

a {
    color: #F8B195;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #F67280;
}

ul, ol {
    list-style-position: inside;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Sections --- */
section {
    padding: 8rem 0;
    position: relative;
}

.section-bg {
    background-color: #232338;
    border-radius: 1rem;
    padding: 4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

/* ------------ En-tête ------------ */
header {
    padding: 1.5rem 0; /* Réduit de 2rem à 1.5rem */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 30, 47, 0.9);
    backdrop-filter: blur(1rem);
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 2.8rem;
    font-weight: 700;
    color: #F8B195;
    text-transform: lowercase;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.logo-text:hover {
    color: #F67280;
    text-decoration: none;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 2.5rem;
}

.desktop-nav ul li a {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 1.6rem;
    padding: 0.8rem 0;
    position: relative;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 0.2rem;
    background-color: #F8B195;
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.4rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 0.3rem;
    background-color: #FFFFFF;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(1.05rem) rotate(45deg);
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-1.05rem) rotate(-45deg);
}

.mobile-nav {
    display: none;
    padding: 2rem 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 2rem;
}

.mobile-nav ul li a {
    display: block;
    font-size: 2rem;
    font-weight: 500;
    color: #FFFFFF;
    padding: 1rem 0;
}

/* ------------ Hero ------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 8rem;
    text-align: center; /* Centrer le texte */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 30, 47, 0.9), rgba(30, 30, 47, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60rem;
    margin: 0 auto; /* Centrer le contenu */
}

.hero h1 {
    margin-bottom: 2.4rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* ------------ Boutons ------------ */
.btn {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    border-radius: 5rem;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(to right, #F67280, #C06C84);
    color: #FFFFFF;
    box-shadow: 0 0.4rem 1.5rem rgba(246, 114, 128, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0.6rem 2.4rem rgba(246, 114, 128, 0.5);
    transform: translateY(-0.3rem);
    color: #FFFFFF;
}

.btn-secondary {
    background: transparent;
    border: 0.2rem solid #F8B195;
    color: #F8B195;
}

.btn-secondary:hover {
    background-color: #F8B195;
    color: #1E1E2F;
}

.btn-cta {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* ------------ About ------------ */
.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
}

.about-card {
    flex: 1;
    min-width: 28rem;
    background-color: rgba(53, 92, 125, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
}

.about-image {
    width: 12rem;
    height: 12rem;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 0.3rem solid #F8B195;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #355C7D, #6C5B7B);
    color: #FFFFFF;
    font-size: 3.6rem;
}

/* ------------ Services ------------ */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    flex: 1;
    min-width: 30rem;
    background-color: #232338;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
}

.service-image {
    height: 20rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 3rem;
}

.service-content h3 {
    margin-bottom: 1.5rem;
}

/* ------------ Timeline ------------ */
.timeline {
    position: relative;
    max-width: 80rem;
    margin: 6rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.4rem;
    margin-left: -0.2rem;
    background: linear-gradient(to bottom, #F8B195, #F67280, #C06C84);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding-right: 4rem;
    margin-bottom: 6rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 4rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -0.8rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #F8B195;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -0.8rem;
}

.timeline-content {
    background-color: #232338;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-number {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    background-color: #F8B195;
    color: #1E1E2F;
    border-radius: 50%;
    text-align: center;
    line-height: 3rem;
    font-weight: 700;
    margin-right: 1rem;
}

/* ------------ Testimonials ------------ */
.testimonials {
    background-color: #232338;
    padding: 8rem 0;
    position: relative;
}

.testimonial-container {
    position: relative;
    max-width: 120rem;
    margin: 0 auto;
    padding: 4rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.testimonial-item {
    background-color: #1E1E2F;
    border-radius: 1rem;
    padding: 4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    position: relative;
    flex: 1;
    min-width: 30rem;
    max-width: calc(33.333% - 2rem);
    margin-bottom: 0;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 8rem;
    color: rgba(248, 177, 149, 0.2);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    color: #F8B195;
    margin: 0;
}

/* ------------ FAQ ------------ */
.faq-container {
    max-width: 80rem;
    margin: 4rem auto 0;
}

.faq-item {
    background-color: #232338;
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.faq-question {
    position: relative;
    padding: 2rem;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.8rem;
    padding-right: 4rem;
}

.faq-toggle {
    display: none;
}

.faq-toggle-label {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
}

.faq-toggle-label::before,
.faq-toggle-label::after {
    content: '';
    position: absolute;
    background-color: #F8B195;
    border-radius: 0.2rem;
    transition: transform 0.3s ease;
}

.faq-toggle-label::before {
    width: 100%;
    height: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
}

.faq-toggle-label::after {
    width: 0.3rem;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 50rem;
    padding: 0 2rem 2rem;
}

.faq-toggle:checked ~ .faq-question .faq-toggle-label::after {
    transform: translateX(-50%) rotate(90deg);
}

/* ------------ Contact Form ------------ */
.contact-form-container {
    max-width: 70rem;
    margin: 5rem auto 0;
    background-color: #232338;
    border-radius: 1rem;
    padding: 4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 0.5rem;
    border: 0.1rem solid #355C7D;
    background-color: rgba(30, 30, 47, 0.5);
    color: #FFFFFF;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #F8B195;
    outline: none;
    box-shadow: 0 0 0 0.3rem rgba(248, 177, 149, 0.3);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23F8B195' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-position: right 1.5rem center;
    background-repeat: no-repeat;
    background-size: 0.8rem;
    padding-right: 4rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.4rem;
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.form-error {
    color: #F67280;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* ------------ Footer ------------ */
footer {
    background-color: #17172B;
    padding-top: 6rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 5rem;
}

.footer-section {
    flex: 1;
    min-width: 25rem;
}

.footer-section h3 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    display: block;
    height: 0.3rem;
    width: 5rem;
    background: linear-gradient(to right, #F8B195, #F67280);
    margin-top: 1rem;
}

.contact-info,
.useful-links,
.legal-links {
    list-style: none;
}

.contact-info li,
.useful-links li,
.legal-links li {
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
}

/* ------------ Cookie Popup ------------ */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #232338;
    padding: 2rem;
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    min-width: 30rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#cookie-accept {
    background: linear-gradient(to right, #F67280, #C06C84);
    color: #FFFFFF;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#cookie-accept:hover {
    box-shadow: 0 0.4rem 1.5rem rgba(246, 114, 128, 0.3);
    transform: translateY(-0.3rem);
}

/* ------------ Legal Pages ------------ */
.legal-page {
    padding-top: 12rem;
    padding-bottom: 8rem;
}

.legal-content {
    max-width: 90rem;
    margin: 0 auto;
    background-color: #232338;
    border-radius: 1rem;
    padding: 4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

.legal-content h2 {
    margin-top: 4rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 3rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 1rem;
}

/* ------------ Thank You Page ------------ */
.thank-you {
    padding-top: 15rem;
    padding-bottom: 10rem;
    text-align: center;
}

.thank-you h1 {
    font-size: 5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.thank-you p {
    font-size: 2rem;
    max-width: 60rem;
    margin: 0 auto 4rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.thank-you .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.thank-you-content {
    max-width: 70rem;
    margin: 0 auto;
    background-color: #232338;
    border-radius: 1rem;
    padding: 5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    border: 0.2rem solid #F8B195;
}

/* ------------ Animations ------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation styles avec délai pour PHP */
.animation-delay-1 {
    animation-delay: 0.2s;
}

.animation-delay-2 {
    animation-delay: 0.4s;
}

.animation-delay-3 {
    animation-delay: 0.6s;
}

.animation-delay-4 {
    animation-delay: 0.8s;
}

.animation-delay-5 {
    animation-delay: 1s;
}

/* Tous les éléments fade-in sont visibles par défaut quand PHP leur applique la classe visible */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------ Media Queries ------------ */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .timeline::after {
        left: 3.1rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 8rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 8rem;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 2.1rem;
    }
    
    .testimonial-item {
        max-width: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-open .mobile-nav {
        display: block;
    }
    
    .about-cards,
    .services-container {
        flex-direction: column;
    }
    
    .about-card,
    .service-card {
        min-width: auto;
    }
    
    .testimonial-item {
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 5rem;
    }
    
    .footer-section {
        min-width: auto;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .section-bg,
    .contact-form-container,
    .legal-content {
        padding: 3rem;
    }
    
    .testimonial-item {
        padding: 3rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
} 