/* ============================================
   COULEURS (PALETTE CLIENT)
   ============================================ */
:root {
    --header-bg: #635548;
    /* Fond du header */
    --hover-color: #e8dcc8;
    /* Couleur au survol + active */
    --body-bg: #f6f5f2;
    /* Fond principal du site */
    --accent-light: #f4f0e8;
    /* Accent subtil */
    --accent-dark: #635548;
    /* Accent foncé slim */
    --text-dark: #2c2c2c;
    /* Texte foncé */
    --text-light: #ffffff;
    /* Texte clair */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   HEADER - LOGO À GAUCHE, NAV À DROITE
   ============================================ */
.navbar {
    background-color: var(--header-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo à gauche */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.5s ease;
}

.logo-img.rotate {
    transform: rotate(360deg);
}

/* Navigation à droite */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--hover-color);
    font-weight: 800;
    /* Ajouté pour plus d'épaisseur */
    text-shadow: 0 0 1px rgba(244, 240, 232, 0.5);
    /* Petit effet de brillance */
}

/* Menu mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-founder h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.footer-founder p {
    font-size: 0.7rem;
    opacity: 0.7;
}

.footer-nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-nav-links a:hover {
    color: var(--hover-color);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-social-icons a:hover {
    color: var(--hover-color);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.footer-bottom-left .separator {
    opacity: 0.5;
}

.footer-bottom-left a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-left a:hover {
    color: var(--hover-color);
}

.back-to-top {
    background: var(--hover-color);
    color: var(--header-bg);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .logo-img {
        height: 40px;
    }

    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-nav-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-bottom-left {
        justify-content: center;
    }
}

/* ============================================
   HERO CARROUSEL - ACCUEIL
   ============================================ */
.hero-carousel {
    position: relative;
    height: 90vh;
    min-height: 550px;
    margin-top: 70px;
    overflow: hidden;
}

.carousel-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide-hero.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Contenu du carrousel */
.carousel-content {
    position: absolute;
    bottom: 25%;
    left: 10%;
    z-index: 10;
    color: var(--text-light);
    max-width: 500px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: #e8dcc8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    max-width: 100%;
    /* Ajouté pour prendre toute la largeur */
    white-space: normal;
    /* Permet le retour à la ligne si nécessaire */
    word-break: keep-all;
    /* Évite la coupure des mots */
}

.carousel-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    max-width: 100%;
    /* Changé de 650px à 100% */
}

.carousel-cta {
    display: inline-block;
    background: var(--hover-color);
    color: var(--header-bg);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.carousel-cta:hover {
    background: var(--text-light);
    transform: translateX(5px);
}

/* Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-size: 1.3rem;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--header-bg);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Dots indicateurs */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 28px;
    border-radius: 10px;
}

.dot:hover {
    background: white;
}

/* Responsive carrousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 450px;
        margin-top: 60px;
    }

    .carousel-content {
        bottom: 20%;
        left: 5%;
        right: 5%;
        max-width: 90%;
    }

    .carousel-title {
        font-size: 1.2rem;
        color: #e8dcc8;
    }

    .carousel-desc {
        font-size: 0.8rem;
        max-width: 100%;

    }

    .carousel-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .carousel-nav {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

/* ============================================
   PRELOADER - EFFET CINÉMATIQUE (MOUVEMENTS PLUS RAPIDES)
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 85, 72, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease;
}

.preloader-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 150px;
    height: auto;
    animation: floatAndSpin 3.5s ease-in-out forwards;
    /* Réduit de 4s à 3.5s */
}

/* Animation : mouvements plus rapides, rotation douce */
@keyframes floatAndSpin {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }

    15% {
        transform: translate(-25px, -15px) rotate(60deg) scale(1.1);
        opacity: 1;
    }

    30% {
        transform: translate(25px, -10px) rotate(120deg) scale(1.05);
        opacity: 1;
    }

    45% {
        transform: translate(-20px, 20px) rotate(180deg) scale(1.08);
        opacity: 1;
    }

    60% {
        transform: translate(20px, 15px) rotate(240deg) scale(1.02);
        opacity: 0.9;
    }

    75% {
        transform: translate(-15px, -20px) rotate(300deg) scale(0.95);
        opacity: 0.7;
    }

    90% {
        transform: translate(10px, -10px) rotate(330deg) scale(0.9);
        opacity: 0.4;
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   SECTION HISTOIRE DE L'ARCHITECTE
   ============================================ */
.architecte-section {
    padding: 5rem 0;
    background-color: var(--body-bg);
}

.architecte-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* Image carrée sans coins arrondis */
.architecte-image {
    position: sticky;
    top: 100px;
}

.architecte-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
    display: block;
    /* Pas de border-radius - image carrée */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contenu texte */
.architecte-content {
    background: transparent;
}

.architecte-title {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    color: #5a4a42;
    margin-bottom: 1.5rem;
    text-align: left;
    /* Titre à gauche */
    letter-spacing: 1px;
}

.architecte-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: justify;
}

.architecte-text strong {
    color: var(--accent-dark);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .architecte-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .architecte-image {
        position: relative;
        top: 0;
        text-align: center;
    }

    .architecte-image img {
        max-width: 250px;
        margin: 0 auto;
    }

    .architecte-title {
        text-align: center;
        font-size: 1.6rem;
    }

    .architecte-text p {
        font-size: 0.9rem;
        text-align: left;
    }
}

/* ============================================
   SECTION POURQUOI CHOISIR NTBARCHI
   ============================================ */
.pourquoi-section {
    padding: 4rem 0;
    background: var(--body-bg);
}

.pourquoi-title {
    text-align: center;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.pourquoi-title span {
    color: var(--accent-dark);
    font-weight: 300;
}

/* Carrousel à chiffres */
.pourquoi-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-chiffres {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.chiffre-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chiffre-item:hover {
    transform: translateY(-3px);
}

.chiffre-circle {
    width: 55px;
    height: 55px;
    background: var(--text-light);
    border: 2px solid var(--accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-dark);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.chiffre-item.active .chiffre-circle {
    background: var(--accent-dark);
    color: white;
    transform: scale(1.05);
}

.chiffre-item:hover .chiffre-circle {
    background: var(--accent-dark);
    color: white;
    transform: scale(1.05);
}

/* Argumentaire - CACHÉ PAR DÉFAUT */
.argumentaire-container {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    min-height: 180px;
    margin-top: 1.5rem;
    display: none;
    /* Caché par défaut */
}

.argumentaire-container.visible {
    display: block;
    /* Apparaît quand actif */
}

.argumentaire {
    display: none;
    animation: fadeIn 0.3s ease;
}

.argumentaire.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.argumentaire h3 {
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.argumentaire p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .pourquoi-title {
        font-size: 1.3rem;
    }

    .chiffre-circle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .carousel-chiffres {
        gap: 1rem;
    }

    .argumentaire-container {
        padding: 1rem;
        min-height: 200px;
    }

    .argumentaire h3 {
        font-size: 1rem;
    }

    .argumentaire p {
        font-size: 0.8rem;
    }
}

/* ============================================
   BOUTON PROGRESSION (SCROLL PERCENTAGE)
   ============================================ */
.scroll-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.progress-circle {
    position: relative;
    width: 55px;
    height: 55px;
    background: var(--header-bg);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    /* Texte en blanc pour contraster */
    z-index: 2;
}

.progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-bg {
    stroke: rgba(255, 255, 255, 0.3);
    /* Cercle de fond blanc transparent */
}

.progress-bar {
    stroke: white;
    /* Barre de progression blanche */
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23;
    transition: stroke-dashoffset 0.1s linear;
}

/* Effet de survol - change la couleur */
.scroll-progress:hover .progress-bar {
    stroke: var(--hover-color);
    /* Devient beige au survol */
}

.scroll-progress:hover .progress-text {
    color: var(--hover-color);
    /* Texte beige au survol */
}

.scroll-progress:hover .progress-circle {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-progress {
        bottom: 15px;
        right: 15px;
    }

    .progress-circle {
        width: 45px;
        height: 45px;
    }

    .progress-text {
        font-size: 0.7rem;
    }
}

/* ============================================
   SECTION PROJETS RÉCENTS
   ============================================ */
.projets-recents {
    padding: 5rem 0;
    background: var(--body-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.projets-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.projet-card-recent {
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card-recent:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.projet-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.projet-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projet-card-recent:hover .projet-image-container img {
    transform: scale(1.05);
}

/* Overlay au survol */
.projet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 85, 72, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1rem;
}

.projet-card-recent:hover .projet-overlay {
    opacity: 1;
}

.projet-overlay h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.projet-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.projet-card-recent:hover .projet-overlay h3,
.projet-card-recent:hover .projet-overlay p {
    transform: translateY(0);
}

/* Bouton Voir plus */
.voir-plus-container {
    text-align: center;
    margin-top: 1rem;
}

.btn-voir-plus {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--accent-dark);
    color: var(--accent-dark);
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-voir-plus:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .projets-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .projets-grid-4 {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .projet-overlay h3 {
        font-size: 1rem;
    }
}

/*********FIN DE LA PAGE D'ACCUEIL*********/


/* ============================================
   PAGE À PROPOS
   ============================================ */

/* Hero avec image fixe - texte à gauche */
.a-propos-hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.a-propos-hero-image {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
}

.a-propos-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.hero-text h1 {
    font-size: 1.8rem;
    color: var(--hover-color);
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Section contenu */
.a-propos-content {
    position: relative;
    width: 100%;
    padding: 4rem 0;
    background: var(--body-bg);
}

.content-full-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 500px;
}

/* Image de fond */
.background-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.carousel-slides-about {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide-about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide-about.active {
    opacity: 1;
    position: relative;
}

.carousel-slide-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay transparent */
.image-overlay-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(246, 245, 242, 0.85) 0%, rgba(246, 245, 242, 0.7) 100%);
    z-index: 2;
    border-radius: 0;
}

/* Texte sur le calque */
.texte-calque {
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 2rem 2rem 2rem 0;
    border-radius: 0;
}

.texte-content {
    background: transparent;
    width: 100%;
    padding-right: 1rem;
}

.texte-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    text-align: justify;

}

.texte-content p,
.texte-content .intro,
.texte-content .subtitle,
.texte-content .quote,
.texte-content .conclusion {
    text-align: justify;
}

.texte-content .intro {
    font-size: 0.95rem;
    line-height: 1.7;
}

.texte-content .subtitle {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}

.texte-content .quote {
    font-style: italic;
    margin-top: 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-dark);
}

.texte-content .conclusion {
    margin-top: 0.8rem;
}

.texte-content strong {
    color: var(--accent-dark);
}

/* Grille des projets */
.projets-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.projet-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: left;
}

.projet-check {
    color: var(--accent-dark);
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.projet-item em {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Dots */
.carousel-about-dots {
    position: absolute;
    bottom: -30px;
    right: 15%;
    transform: translateX(50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.about-dot {
    width: 10px;
    height: 10px;
    background: rgba(99, 85, 72, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-dot.active {
    background: var(--accent-dark);
    width: 28px;
    border-radius: 10px;
}

.about-dot:hover {
    background: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.5rem;
        left: 5%;
    }

    .a-propos-hero-image {
        height: 35vh;
        min-height: 250px;
    }

    .background-image-container {
        position: relative;
        width: 100%;
        height: 250px;
        margin-bottom: 2rem;
    }

    .image-overlay-left {
        display: none;
    }

    .texte-calque {
        position: relative;
        width: 100%;
        padding: 1rem;
    }

    .content-full-wrapper {
        min-height: auto;
        padding: 0 1rem;
    }

    .carousel-about-dots {
        bottom: -25px;
        right: 50%;
        transform: translateX(50%);
    }

    .projet-item {
        flex-wrap: wrap;
    }
}

/*******************************FIN DE LA PAGE À PROPOS ***************/

/* ============================================
   PAGE SERVICES
   ============================================ */

/* Hero */
.services-hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.services-hero-image {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
}

.services-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.services-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.services-hero .hero-text h1 {
    font-size: 2.5rem;
    color: var(--hover-color);
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.services-hero .hero-text p {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* Section services */
.services-section {
    padding: 5rem 0;
    background: var(--body-bg);
}

.services-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.services-title span {
    color: var(--accent-dark);
}

.services-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.7;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Liste des services */
.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.service-item.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.service-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-dark);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
    min-width: 60px;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.service-divider {
    width: 50px;
    height: 2px;
    background: var(--accent-dark);
    margin-bottom: 1rem;
}

.service-item.reverse .service-divider {
    margin-left: auto;
}

.service-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.8;
    text-align: justify;
}

/* CTA Parallax - Dégradé subtil (recommandé) */
.services-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f6f5f2 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 85, 72, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.services-cta:hover::before {
    opacity: 1;
    animation: rotateBg 4s linear infinite;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.services-cta p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-services {
    display: inline-block;
    background: var(--accent-dark);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-services:hover {
    background: var(--hover-color);
    color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .services-hero .hero-text h1 {
        font-size: 1.8rem;
    }

    .services-title {
        font-size: 1.5rem;
    }

    .service-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-item.reverse {
        flex-direction: column;
        text-align: left;
    }

    .service-item.reverse .service-divider {
        margin-left: 0;
    }

    .service-number {
        font-size: 1.5rem;
    }

    .services-cta {
        padding: 1.5rem;
    }

    .services-cta p {
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS PAGE SERVICES
   ============================================ */

/* Animation au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation spécifique pour les services */
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
}

.service-item.reverse:hover {
    transform: translateX(-10px);
}

.service-item:hover .service-number {
    opacity: 0.8;
    transform: scale(1.1);
}

.service-number {
    transition: all 0.3s ease;
    display: inline-block;
}

.service-content h3 {
    transition: color 0.3s ease;
}

.service-item:hover .service-content h3 {
    color: var(--header-bg);
}

.service-divider {
    transition: width 0.4s ease;
}

.service-item:hover .service-divider {
    width: 80px;
}

/* Animation pour le CTA */
.services-cta {
    transition: all 0.3s ease;
}

.services-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/*****FIN DE LA PAGE SERVICES *****/
/* ============================================
   PAGE RÉALISATIONS
   ============================================ */

/* Hero */
.realisations-hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.realisations-hero-image {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
}

.realisations-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realisations-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.realisations-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.realisations-hero .hero-text h1 {
    font-size: 2.5rem;
    color: var(--hover-color);
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.realisations-hero .hero-text p {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* Section réalisations */
.realisations-section {
    padding: 5rem 0;
    background: var(--body-bg);
}

.realisations-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.realisations-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 3rem;
}
/* Filtres */
.filters-container {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(99, 85, 72, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(99, 85, 72, 0.1);
}

.search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-dark);
    opacity: 0.6;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-dark);
    color: var(--accent-dark);
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Réduction de la taille du texte pour les écrans moyens */
@media (min-width: 768px) and (max-width: 1024px) {
    .filter-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
    }
}

/* Version desktop plus grande */
@media (min-width: 1025px) {
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .filter-buttons {
        gap: 0.8rem;
    }
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-dark);
    color: white;
}

/* Responsive mobile */
@media (max-width: 767px) {
    .filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
        white-space: normal;
    }
    
    .filter-buttons {
        gap: 0.4rem;
    }
}
/* Grille projets */
.projets-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.projet-card-realisations {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projet-card-realisations:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.projet-card-realisations img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projet-card-realisations:hover img {
    transform: scale(1.05);
}

.projet-overlay-realisations {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(99, 85, 72, 0.9) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.projet-card-realisations:hover .projet-overlay-realisations {
    transform: translateY(0);
}

.projet-overlay-realisations h3 {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Modal */
.modal-realisations {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content-realisations {
    position: relative;
    margin: 50px auto;
    width: auto;
    max-width: 90%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--hover-color);
}

/* Nom du projet en haut du modal realisations */
.modal-title-realisations {
    color: var(--hover-color);
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.modal-carousel-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 56px;   /* espace reserve aux fleches, colle a l'image */
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 85, 72, 0.7);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-prev {
    left: 0;
}

.modal-next {
    right: 0;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--accent-dark);
}

.modal-prev.hide,
.modal-next.hide {
    display: none;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
}

.modal-image-container img {
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.modal-image-container video {
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
}

.modal-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    opacity: 0.6;
}

.modal-thumb.active {
    opacity: 1;
    border: 2px solid var(--accent-dark);
}

.modal-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.credits {
    text-align: center;
    font-size: 0.7rem;
    color: white;
    opacity: 0.5;
    margin-top: 1rem;
    padding-top: 0.5rem;
}


/* Responsive */
@media (max-width: 768px) {
    .realisations-hero .hero-text h1 {
        font-size: 1.8rem;
    }

    .realisations-title {
        font-size: 1.5rem;
    }

    .filter-buttons {
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        background: transparent;
        border: 1px solid var(--accent-dark);
        color: var(--accent-dark);
        padding: 0.5rem 1rem;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.8rem;
        white-space: normal;
    }

    .projets-grille {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .modal-content-realisations {
        width: 95%;
        margin: 30px auto;
    }

    .modal-carousel-container {
        padding: 0 42px;   /* fleches plus rapprochees sur mobile */
    }

    .modal-prev,
    .modal-next {
        padding: 0.5rem 0.8rem;
        font-size: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================
   PAGE CONTACT
   ============================================ */

.contact-hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.contact-hero-image {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
}

.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
}

.contact-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.contact-hero .hero-text h1 {
    font-size: 2.5rem;
    color: var(--hover-color);
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.contact-hero .hero-text p {
    font-size: 1rem;
    color: white;
    opacity: 0.9;
}

/* Section contact */
.contact-section {
    padding: 5rem 0;
    background: var(--body-bg);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Cartes d'information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.info-icon {
    flex-shrink: 0;
    color: var(--accent-dark);
    background: var(--beige-medium);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    background: var(--accent-dark);
    color: white;
}

.info-content {
    min-width: 0;
    overflow-wrap: break-word;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-content p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.info-content .closed {
    opacity: 0.6;
}

.contact-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.contact-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Lien hebergeur (mentions legales) : noir, sans soulignement, marron au survol */
.host-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.host-link:hover {
    color: var(--accent-dark);
}

/* Formulaire */
.contact-form {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    min-width: 0;
}

.contact-form:hover {
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(99,85,72,0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(99,85,72,0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-contact {
    background: var(--accent-dark);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-contact:hover {
    background: var(--header-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99,85,72,0.3);
}

.success-message {
    background: var(--beige-medium);
    color: var(--accent-dark);
    padding: 0.8rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 4px solid var(--accent-dark);
}

.error-message {
    background: var(--beige-medium);
    color: #c0392b;
    padding: 0.8rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 4px solid #c0392b;
}

/* Animations */
.animate-title {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.animate-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-info { animation-delay: 0.1s; }
.contact-form { animation-delay: 0.2s; }

/* Messages d'erreur sous les champs */
.error-msg {
    display: none;
    color: #c0392b;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    padding-left: 0.5rem;
}
/* Style des champs en erreur */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #c0392b;
    border-width: 2px;
}

/* Compteur de caractères */
.char-counter {
    text-align: right;
    font-size: 0.7rem;
    color: var(--accent-dark);
    margin-top: 0.3rem;
    opacity: 0.7;
}

#charCount {
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Bouton désactivé */
.btn-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Fond transparent pour les cartes */
.info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-hero .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group.half {
        margin-bottom: 0;
    }
}




/* ============================================
   PAGE MENTIONS LÉGALES ET CONFIDENTIALITÉ
   ============================================ */

.legal-page {
    padding: 120px 0 60px;
    background: var(--body-bg);
    min-height: 70vh;
}

.legal-page h1 {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* ============================================
   ANIMATIONS TITRE ET SECTIONS
   ============================================ */

.animate-title {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.animate-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Délais progressifs pour les sections */
.legal-section:nth-child(1) {
    animation-delay: 0.1s;
}

.legal-section:nth-child(2) {
    animation-delay: 0.2s;
}

.legal-section:nth-child(3) {
    animation-delay: 0.3s;
}

.legal-section:nth-child(4) {
    animation-delay: 0.4s;
}

.legal-section:nth-child(5) {
    animation-delay: 0.5s;
}

.legal-section:nth-child(6) {
    animation-delay: 0.6s;
}

.legal-section:nth-child(7) {
    animation-delay: 0.7s;
}

.legal-section:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   STYLE DES SECTIONS
   ============================================ */

.legal-section {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-light);
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.legal-section strong {
    color: var(--accent-dark);
}

/* ============================================
   STYLE DES LISTES - CORRECTION
   ============================================ */

/* Style pour les listes avec symboles ✦ (uniquement pour .legal-list) */
.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.legal-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding-left: 1.5rem;
}

.legal-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
}

/* Style pour les listes des droits (sans symbole automatique) */
.droits-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.droits-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding-left: 0;
}

.droits-list li::before {
    content: none;
    /* Pas de symbole automatique */
}

/* Style générique pour les autres listes - NE RIEN AJOUTER AUTOMATIQUEMENT */
.legal-section ul {
    list-style: none;
    padding-left: 0;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.legal-section ul li::before {
    content: none;
    /* Pas de symbole automatique par défaut */
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 40px;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .legal-section {
        padding: 1rem;
    }

    .legal-section h2 {
        font-size: 1rem;
    }

    .legal-section p {
        font-size: 0.85rem;
    }

    .legal-section ul li {
        font-size: 0.85rem;
        padding-left: 1.2rem;
    }
}

/* ============================================
   CORRECTIONS RESPONSIVE MOBILE (24 juin 2026)
   ============================================ */

/* Conteneur general : marges laterales (n'avait aucune regle CSS) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    /* #1 + #7 : espace sur les cotes (accueil, services, realisations, carte contact...) */
    .container {
        padding: 0 1.1rem;
    }

    /* #2 : texte de l'accueil justifie */
    .architecte-text p {
        text-align: justify;
    }

    /* #3 : overlay "Nos projets recents" visible au tactile (sans survol souris) */
    .projet-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(99, 85, 72, 0.92) 0%, rgba(99, 85, 72, 0.45) 55%, rgba(99, 85, 72, 0) 100%);
        justify-content: flex-end;
        padding-bottom: 1.1rem;
    }

    .projet-overlay h3,
    .projet-overlay p {
        transform: none;
    }

    /* #5 : puce ✦ "Residentiels (villas...)" alignee comme les autres */
    .projet-item {
        align-items: flex-start;
    }

    .projet-item > span:last-child {
        flex: 1;
        min-width: 0;
    }

    /* #4 : footer mobile plus propre (logo, infos, separateurs) */
    .footer-info {
        flex-direction: column;
        gap: 0.4rem;
    }

    .footer-logo {
        height: 50px;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-bottom-left .separator {
        display: none;
    }

    /* #6 : modal realisations - fleches visibles + image qui tient a l'ecran */
    .modal-carousel-container {
        padding: 0 38px;
    }

    .modal-image-container img,
    .modal-image-container video {
        max-width: 72vw;
        max-height: 68vh;
    }

    /* Modal centre verticalement (au lieu de coller en haut) */
    .modal-content-realisations {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 92%;
        max-height: 92vh;
        overflow-y: auto;
    }

    /* Filtres realisations : chips sur une ligne, defilables au doigt */
    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.6rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}