/* -------------------------------------------------------------
   Variables globales et réinitialisation
   ------------------------------------------------------------- */
:root {
    /* Palette de couleurs */
    --color-indigo: #2E294E;
    --color-mandarin: #F95738;
    --color-mint: #A8E6CF;
    --color-sand: #FFF1E6;
    --color-graphite: #3B3B3B;
    
    /* Variantes et teintes */
    --color-indigo-light: #3F3B64;
    --color-mandarin-light: #FA7E65;
    --color-mint-light: #C0EFE0;
    --color-sand-dark: #F5E6D8;
    
    /* Erreur et succès */
    --color-error: #e63946;
    --color-success: #2a9d8f;
    
    /* Typo */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Bordures et ombres */
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(46, 41, 78, 0.1);
}

/* Réinitialisation */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-graphite);
    background-color: var(--color-sand);
    overflow-x: hidden;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container responsive */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* -------------------------------------------------------------
   Typographie et éléments textuels
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--color-indigo);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--color-mandarin);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-sm);
}

section {
    padding: 110px 0 !important;
}

/* Texte centré pour les titres de section */
section h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* -------------------------------------------------------------
   Boutons et éléments interactifs
   ------------------------------------------------------------- */
.cta-button {
    display: inline-block;
    background-color: var(--color-mandarin);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 10px rgba(249, 87, 56, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-mandarin-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(249, 87, 56, 0.4);
}

.submit-button {
    display: inline-block;
    width: 100%;
    background-color: var(--color-indigo);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--color-indigo-light);
    box-shadow: 0 4px 12px rgba(46, 41, 78, 0.3);
}

/* -------------------------------------------------------------
   En-tête et Navigation
   ------------------------------------------------------------- */
.site-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-xs) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 180px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--color-graphite);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-mandarin);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-mandarin);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-indigo);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--color-indigo-light);
    color: white !important;
}

.nav-cta:hover::after {
    display: none;
}

/* Menu burger pour mobile */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-indigo);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* -------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------- */
.hero-section {
    padding: var(--space-lg) 0;
    background-color: var(--color-sand);
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-content h1 {
    margin-bottom: var(--space-sm);
    font-size: 2.8rem;
    color: var(--color-indigo);
}

.hero-content p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    color: var(--color-graphite);
}

/* -------------------------------------------------------------
   About Section
   ------------------------------------------------------------- */
.about-section {
    background-color: white;
}

.about-content {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* -------------------------------------------------------------
   Services Section
   ------------------------------------------------------------- */
.services-section {
    background-color: var(--color-sand);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: var(--space-sm);
    color: var(--color-indigo);
    font-size: 1.3rem;
}

.service-card p {
    padding: 0 var(--space-sm) var(--space-sm);
}

/* -------------------------------------------------------------
   Advantages Section
   ------------------------------------------------------------- */
.advantages-section {
    background-color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.advantage-item {
    text-align: center;
    padding: var(--space-md);
    background-color: var(--color-sand);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin: 0 auto var(--space-sm);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-item h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

/* -------------------------------------------------------------
   Testimonials Section
   ------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-sand);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content {
    position: relative;
    padding-top: var(--space-sm);
}

.testimonial-content::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 5rem;
    position: absolute;
    top: -40px;
    left: -10px;
    color: var(--color-mint);
    opacity: 0.5;
}

.testimonial-author {
    margin-top: var(--space-md);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--color-sand-dark);
    padding-top: var(--space-sm);
}

/* -------------------------------------------------------------
   FAQ Section
   ------------------------------------------------------------- */
.faq-section {
    background-color: white;
}

.faq-container {
    margin-top: var(--space-md);
}

.faq-item {
    margin-bottom: var(--space-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: var(--color-indigo);
    color: white;
    padding: var(--space-sm);
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.faq-answer {
    padding: var(--space-sm);
    background-color: var(--color-sand);
}

/* -------------------------------------------------------------
   Contact Section
   ------------------------------------------------------------- */
.contact-section {
    background-color: var(--color-sand);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.contact-form {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-indigo);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: white;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-mint);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: var(--space-xs);
}

.checkbox-group label {
    margin-bottom: 0;
}

.contact-info {
    background-color: var(--color-indigo);
    color: white;
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    color: white;
    position: relative;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-md);
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-mandarin);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.contact-info svg {
    margin-right: var(--space-xs);
    margin-top: 4px;
}

.contact-info a {
    color: var(--color-mint);
}

.contact-info a:hover {
    color: var(--color-mint-light);
    text-decoration: underline;
}

.map-container {
    margin-top: var(--space-md);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-indigo);
    color: white;
    padding: var(--space-lg) 0 var(--space-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.footer-info {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: var(--space-sm);
}

.footer-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact, 
.footer-nav, 
.footer-legal {
    grid-column: span 1;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p,
.footer-nav li,
.footer-legal li {
    margin-bottom: var(--space-xs);
}

.footer-nav a,
.footer-legal a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--color-mint);
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* -------------------------------------------------------------
   Cookie Consent
   ------------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-indigo);
    color: white;
    padding: var(--space-sm);
    z-index: 1000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.cookie-content p {
    margin: 0;
    flex: 1;
    padding-right: var(--space-md);
}

.cookie-content a {
    color: var(--color-mint);
    text-decoration: underline;
}

.cookie-button {
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-mandarin);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-button:hover {
    background-color: var(--color-mandarin-light);
}

/* -------------------------------------------------------------
   Formulaire d'erreurs
   ------------------------------------------------------------- */
.form-errors {
    background-color: rgba(230, 57, 70, 0.1);
    border-left: 4px solid var(--color-error);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius);
}

.form-errors ul {
    list-style-type: disc;
    padding-left: var(--space-md);
    margin-bottom: 0;
}

.form-errors li,
.error-message {
    color: var(--color-error);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.form-errors li:last-child {
    margin-bottom: 0;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

.form-success {
    background-color: rgba(42, 157, 143, 0.1);
    border-left: 4px solid var(--color-success);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius);
}

.form-success p {
    color: var(--color-success);
    margin: 0;
}

/* -------------------------------------------------------------
   Media Queries pour la Responsivité
   ------------------------------------------------------------- */

/* Tablettes */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    .hero-content h1{
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .footer-info {
        grid-column: span 2;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        padding-right: 0;
        margin-bottom: var(--space-sm);
    }
}

/* Mobiles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-icon {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--box-shadow);
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--space-sm);
        border-bottom: 1px solid #f0f0f0;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        max-height: 500px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-section .container,
    .about-content {
        flex-direction: column;
    }
    
    .hero-image,
    .about-image {
        order: -1;
        margin-bottom: var(--space-md);
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-info,
    .footer-contact,
    .footer-nav,
    .footer-legal {
        grid-column: span 1;
    }
}

/* Petits mobiles */
@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: var(--space-md) 0;
    }
    
    .advantage-item {
        padding: var(--space-sm);
    }
} 