/* --- VARIABLES ET FONDATIONS REVELIA --- */
:root {
    --vert-foret: #2C3E33;
    --gris-pierre: #6D6F6F;
    --beige-nature: #F5F1E9;
    --touche-brun: #A87E6F;
    --blanc: #FFFFFF;
    --succes: #38a169;
    --erreur: #D32F2F;

    /* Police principale et de secours */
    --font-family-heading: 'Raleway', sans-serif;
    --font-family-body: 'Lato', sans-serif;
    
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    --header-height: 85px;
    --border-radius: 8px;
    --transition: 0.3s ease-in-out;
    --shadow-md: 0 5px 20px rgba(44, 62, 51, 0.08);
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Raleway:wght@700;800&display=swap');

/* --- RÉINITIALISATION ET STYLES DE BASE --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-family-body);
    background-color: var(--beige-nature);
    color: var(--gris-pierre);
    line-height: 1.75;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.menu-is-open {
    overflow: hidden;
}
main { flex-grow: 1; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    color: var(--vert-foret);
    font-weight: 800;
    line-height: 1.3;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: var(--space-lg); }
h3 { font-size: clamp(1.5rem, 3vw, 1.8rem); color: var(--touche-brun); font-weight: 700; }
p { margin: 0 0 var(--space-md) 0; }
a { color: var(--touche-brun); text-decoration: none; font-weight: 700; transition: color var(--transition); }
a:not(.button):hover { color: var(--vert-foret); }
ul { list-style: none; padding: 0; }

/* --- HEADER --- */
.main-header {
    background-color: #EAE4D9;
    padding: 0 5%;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 50px; width: auto; }

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo .logo-text {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    color: var(--vert-foret);
    font-weight: 800;
    margin-left: 15px;
    line-height: 1;
}

/* Navigation */
.main-nav { display: none; }
.main-nav ul { 
    display: flex; 
    gap: var(--space-lg);
    justify-content: center; /* Ajout pour centrer les liens */
    margin: 0;
    padding: 0;
}
.main-nav a { font-family: var(--font-family-heading); font-weight: 700; color: var(--gris-pierre); position: relative; padding: 5px 0; font-size: 1.1rem; }
.main-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background-color: var(--touche-brun); transition: width var(--transition); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header-contact {
    display: none;
    align-items: center;
    gap: 0.5rem;
    /* Suppression des marges pour permettre l'alignement flexbox */
}
.header-contact a {
    font-family: var(--font-family-body);
    font-weight: 700;
    color: var(--vert-foret);
    font-size: 1.1rem;
}
.header-contact i {
    color: var(--touche-brun);
    font-size: 1.1rem;
}

.mobile-nav-toggle { display: block; background: none; border: none; font-size: 1.8rem; color: var(--vert-foret); z-index: 1001; cursor: pointer; }

/* --- MENU MOBILE (MODIFIÉ) --- */
.mobile-nav-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(44, 62, 51, 0.98);
    backdrop-filter: blur(4px);
    display: block;
    padding: 0 5%;
    z-index: 1010;
    transform: translateY(-100%); 
    transition: transform 0.4s ease-in-out; 
}
body.menu-is-open .mobile-nav-overlay { transform: translateY(0); }

.mobile-nav-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav-header .logo .logo-text {
    color: var(--beige-nature);
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--succes);
    cursor: pointer;
    transition: color 0.3s ease;
}
.mobile-nav-close:hover {
    color: var(--beige-nature);
}

.mobile-nav-overlay nav {
    padding-top: var(--space-lg);
}
.mobile-nav-overlay ul {
    list-style: none;
    padding: 0;
}
.mobile-nav-overlay li {
    margin-bottom: 0;
}
.mobile-nav-overlay a { 
    display: block;
    padding: 1.1rem 0;
    color: var(--beige-nature); 
    font-size: 1.6rem; 
    font-family: var(--font-family-heading);
    border-bottom: 1px solid rgba(245, 241, 233, 0.1);
    transition: background-color 0.3s ease;
}
.mobile-nav-overlay li:last-child a {
    border-bottom: none;
}
.mobile-nav-overlay a:hover {
    background-color: rgba(245, 241, 233, 0.05);
}

.mobile-nav-overlay .mobile-nav-contact {
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(245, 241, 233, 0.2); 
}
.mobile-nav-overlay .mobile-nav-contact a {
    font-size: 1.4rem;
    font-family: var(--font-family-body);
    font-weight: 700;
    border-bottom: none;
    padding-top: var(--space-lg);
    display: inline-flex;
    align-items: center;
}
.mobile-nav-overlay .mobile-nav-contact i {
    color: var(--touche-brun);
    margin-right: 12px;
    font-size: 1.2rem;
}


/* --- COMPOSANTS --- */
.button { display: inline-block; padding: 14px 32px; border-radius: 50px; font-family: var(--font-family-heading); font-weight: 700; text-align: center; transition: all var(--transition); border: 2px solid transparent; letter-spacing: 0.5px; cursor: pointer; }
.button--primary { background-color: var(--vert-foret); color: var(--beige-nature); }
.button--primary:hover { background-color: var(--touche-brun); border-color: var(--touche-brun); transform: translateY(-3px); }

.page-header { padding: var(--space-xl) 0; text-align: center; }
.page-header p { max-width: 800px; margin: 0 auto; font-size: 1.15rem; }

.section { padding: var(--space-xxl) 0; }
.section-title { text-align: center; margin-bottom: var(--space-xl); }
.section-title p { max-width: 700px; margin: 0 auto; }

.cta-section { background-color: var(--blanc); padding: var(--space-xl) 0; text-align: center; }

/* --- STYLES SPÉCIFIQUES AUX PAGES --- */

/* Accueil */
.hero { display: flex; flex-direction: column; justify-content: center; padding: var(--space-xxl) 0; background-color: var(--vert-foret); background-size: cover; background-position: center; color: var(--blanc); position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, rgba(44, 62, 51, 0.8), rgba(44, 62, 51, 0.4)); }
.hero .container { position: relative; max-width: 700px; }
.hero h1 { color: var(--blanc); text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; }

/* --- City Scroller (Hero) --- */
.city-scroller {
    margin: 3rem 0 0;
    width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    text-align: center;
    position: relative;
}

.scroller-title {
    color: var(--blanc);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
    animation: scroll 60s linear infinite;
}

.scroller-inner span {
    color: var(--blanc);
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    margin: 0 0.5rem;
    white-space: nowrap;
}

@keyframes scroll {
    to {
        transform: translate(-50%);
    }
}


.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.value-card { padding: var(--space-lg) var(--space-md); text-align: center; }
.value-card i { font-size: 3rem; color: var(--touche-brun); margin-bottom: var(--space-md); }
.value-card h3 { color: var(--vert-foret); }

.service-highlight-card { background-color: var(--blanc); border-radius: var(--border-radius); box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.service-highlight-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(44, 62, 51, 0.12); }
.service-highlight-card img { width: 100%; height: 220px; object-fit: cover; background-color: var(--gris-pierre); }
.service-highlight-card__content { padding: var(--space-lg); }

.testimonial-card { background-color: var(--blanc); padding: var(--space-lg); border-radius: var(--border-radius); box-shadow: var(--shadow-md); }
.testimonial-card blockquote { margin: 0; font-size: 1.1rem; font-style: italic; border-left: 4px solid var(--touche-brun); padding-left: var(--space-lg); }
.testimonial-card cite { display: block; text-align: right; margin-top: var(--space-md); font-weight: 700; color: var(--vert-foret); }

/* Services */
.service-section { padding: var(--space-xl) 0; border-bottom: 1px solid #e0dace; }
.service-section:nth-child(even) { background-color: var(--blanc); }
.service-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
.service-layout img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-md); background-color: var(--gris-pierre); }
.service-content ul { list-style-position: inside; }
.service-content li { position: relative; padding-left: 30px; margin-bottom: var(--space-sm); }
.service-content li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--succes); position: absolute; left: 0; }

/* À Propos */
.about-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
.about-layout img { width: 100%; border-radius: var(--border-radius); box-shadow: var(--shadow-md); background-color: var(--gris-pierre); }
.process-steps { list-style: none; padding: 0; max-width: 800px; margin: var(--space-xxl) auto 0 auto; }
.process-step { display: flex; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.process-step__number { font-size: 1.5rem; font-weight: 800; color: var(--blanc); background-color: var(--touche-brun); border-radius: 50%; width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xxl); }
.contact-info p { display: flex; align-items: flex-start; margin-bottom: var(--space-lg); }
.contact-info i { margin-right: var(--space-md); color: var(--touche-brun); width: 20px; text-align: center; margin-top: 5px; font-size: 1.2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: var(--space-sm); font-weight: 700; color: var(--vert-foret); }
.form-control { width: 100%; padding: 14px; border-radius: var(--border-radius); border: 2px solid #ddd; font-family: inherit; background-color: var(--blanc); }

#form-status {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#form-status.is-visible {
    display: block;
    opacity: 1;
}

#form-status.info {
    background-color: #f0f5f9;
    color: #3b5061;
    border-color: #cddbe4;
}

#form-status.success {
    background-color: #eafbf3;
    color: var(--vert-foret);
    border-color: var(--succes);
}

#form-status.error {
    background-color: #fdecea;
    color: #8c2b2b;
    border-color: var(--erreur);
}

/* --- FOOTER --- */
.main-footer { background-color: var(--vert-foret); color: var(--beige-nature); padding: var(--space-xl) 0 var(--space-lg) 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg); }
.footer-col h4 { color: var(--blanc); }
.footer-col, .footer-col a { color: #e0dace; font-weight: normal; }
.footer-col a:hover { color: var(--blanc); }
.footer-logo-col .logo .logo-text {
    color: var(--blanc);
    font-size: 2rem;
}
.footer-bottom { text-align: center; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid rgba(245, 241, 233, 0.2); font-size: 0.9rem; color: #b8b3a7; }
.footer-bottom a { font-weight: 700; }

/* --- MEDIA QUERIES --- */
@media (min-width: 768px) {
    .service-layout { grid-template-columns: 1fr 1fr; }
    .service-layout:nth-child(odd) img { order: 1; }
    .about-layout { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
    .main-nav { 
        display: block;
        flex-grow: 1; /* Ajout pour que la nav prenne l'espace */
    }
    .mobile-nav-toggle { display: none; }
    .header-contact { display: flex; }
    .contact-layout { grid-template-columns: 1fr 1.5fr; }
}

/* --- NOUVEAU STYLE : Section Processus (À Propos) --- */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: var(--space-xl);
}

.process-card {
    background-color: var(--blanc);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid #e0dace;
}

.process-card__header {
    background-color: var(--vert-foret);
    color: var(--blanc);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.process-card__number {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background-color: var(--touche-brun);
    color: var(--blanc);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    line-height: 1;
}

.process-card__title {
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    color: var(--blanc);
    margin: 0;
}

.process-card__body {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--gris-pierre);
}

.process-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -1rem 0;
}

.process-connector i {
    font-size: 2rem;
    color: var(--touche-brun);
    transform: rotate(90deg);
}

@media (min-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-connector {
        display: none;
    }
    .process-grid .process-card:nth-child(odd)::after {
        content: '\f061';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: -2.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        color: var(--touche-brun);
    }
     .process-card {
        position: relative;
    }
}

@media (max-width: 991px) {
    .process-card:last-of-type + .process-connector {
       display: none;
    }
}

/* --- STYLES POUR LA SIGNATURE AURA --- */
.footer-bottom .site-credit {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom .site-credit a {
    font-weight: bold;
    color: inherit;
}

/* --- NOUVEAUX STYLES POUR LE FORMULAIRE DE CONTACT --- */
.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.form-group-checkbox input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
    accent-color: var(--touche-brun);
}
.form-group-checkbox label {
    font-size: 0.9rem;
    color: var(--gris-pierre);
    margin: 0;
    font-weight: normal;
}
.form-group-checkbox label a {
    text-decoration: underline;
    font-weight: normal;
}

.required-notice {
    font-size: 0.85rem;
    color: var(--gris-pierre);
    margin-bottom: 1.5rem;
}

.invalid-feedback {
    display: none;
    color: var(--erreur);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.form-control.is-invalid {
    border-color: var(--erreur);
}
.form-group.is-invalid .invalid-feedback {
    display: block;
}