:root {
    --gold: #C9A84C;
    --bleu: #1A3A5C;
    --blanc: #FFFFFF;
    --fond: #FDF9F3;
    --gris: #4A6070;
}
* { margin: 0; padding: 0; box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

body { font-family: Arial, sans-serif; font-size: 1rem; background-color: var(--fond); color: var(--bleu); }

nav {
    position: fixed; top: 0; width: 100%;
    background-color: var(--blanc);
    padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--gold);
    z-index: 100;
}
.nav-logo img { height: 80px; }
.nav-liens { list-style: none; display: flex; gap: 25px; }
.nav-liens a { text-decoration: none; color: var(--bleu); font-size: 0.94rem; }
.nav-liens a:hover { color: var(--gold); }
.btn-nav {
    background-color: var(--bleu); color: var(--blanc);
    padding: 10px 22px; border-radius: 25px;
    text-decoration: none; font-size: 0.875rem;
}
.btn-nav:hover { background-color: var(--gold); }

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--fond), #D6EAF8);
    display: flex; align-items: center; justify-content: space-between;
    padding: 120px 60px 60px; gap: 40px;
}
.hero-contenu { max-width: 550px; }
.hero h1 { font-size: 3.25rem; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); font-style: italic; }
.hero-desc { font-size: 1.0625rem; color: var(--gris); line-height: 1.7; margin-bottom: 35px; }
.hero-boutons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image img { width: 800px; max-width: 100%; }

.btn-or {
    background-color: var(--gold); color: var(--blanc);
    padding: 13px 30px; border-radius: 30px;
    text-decoration: none; font-size: 0.9375rem;
    display: inline-block; border: none; cursor: pointer;
}
.btn-or:hover { background-color: #b8922e; }
.btn-contour {
    border: 2px solid var(--bleu); color: var(--bleu);
    padding: 11px 26px; border-radius: 30px;
    text-decoration: none; font-size: 0.9375rem; display: inline-block;
}
.btn-contour:hover { background-color: var(--bleu); color: var(--blanc); }

.section { padding: 80px 60px; }
.section-titre { font-size: 2.5rem; color: var(--bleu); margin-bottom: 10px; }
.section-titre span { color: var(--gold); font-style: italic; }
.section-sous-titre {
    font-size: 0.6875rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.sous-titre {
    font-size: 0.6875rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 15px;
}
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 45px; }
.carte {
    background-color: var(--blanc); border-radius: 12px;
    padding: 30px 25px; border: 1px solid rgba(201,168,76,0.25);
}
.carte:hover { box-shadow: 0 8px 25px rgba(26,58,92,0.1); }
.carte-icone { font-size: 1.875rem; margin-bottom: 15px; }
.carte h3 { font-size: 1.25rem; color: var(--bleu); margin-bottom: 10px; }
.carte p { font-size: 0.875rem; color: var(--gris); line-height: 1.7; }

.temoignage { background-color: var(--fond); border-left: 4px solid var(--gold); }
.citation { font-size: 0.9375rem; color: var(--gris); line-height: 1.7; font-style: italic; margin-bottom: 15px; }
.auteur { font-size: 0.8125rem; font-weight: bold; color: var(--bleu); }

.section-foncee { background-color: var(--bleu); padding: 80px 60px; color: var(--blanc); }
.apropos-interieur { display: flex; align-items: center; gap: 60px; }
.apropos-interieur h2 { font-size: 2.5rem; margin-bottom: 20px; }
.apropos-interieur h2 span { color: var(--gold); font-style: italic; }
.apropos-interieur p {
    color: rgba(255,255,255,0.75); font-size: 1rem;
    line-height: 1.8; margin-bottom: 12px; max-width: 520px;
}
.apropos-logo img { width: 260px; max-width: 100%; flex-shrink: 0; }

.section-contact { text-align: center; }
.contact-desc { font-size: 1rem; color: var(--gris); margin: 15px auto 35px; max-width: 520px; }
.formulaire {
    max-width: 600px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 15px; text-align: left;
}
.form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.formulaire input, .formulaire textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 0.875rem; font-family: Arial, sans-serif;
    background-color: var(--blanc); color: var(--bleu);
}
.formulaire textarea { height: 130px; resize: vertical; }
.formulaire .btn-or { align-self: center; padding: 13px 40px; }

footer { background-color: var(--bleu); padding: 60px; color: rgba(255,255,255,0.6); }
.footer-logo { height: 60px; margin-bottom: 15px; }
.footer-grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grille p { font-size: 0.8125rem; line-height: 1.7; }
footer h4 { font-size: 0.6875rem; letter-spacing: 2px; text-transform: uppercase; color: #E8C97A; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }
footer ul a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.8125rem; }
footer ul a:hover { color: #E8C97A; }
.footer-bas {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
    display: flex; justify-content: space-between; font-size: 0.75rem;
}

.messenger-wrapper { display: flex; height: 80vh; margin: 20px auto; max-width: 1200px; background: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid #eee; }
.side-chats { width: 350px; border-right: 1px solid #eee; display: flex; flex-direction: column; background: #f8f9fa; }
.side-header { padding: 20px; background: #fff; border-bottom: 1px solid #eee; }
.chat-list { overflow-y: auto; flex: 1; }
.chat-user { display: flex; align-items: center; padding: 15px 20px; cursor: pointer; transition: 0.3s; border-bottom: 1px solid #eee; }
.chat-user:hover { background: #fff; } .chat-user.active { background: #eef2f7; border-left: 5px solid var(--bleu); }
.user-img { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; background: #ddd; flex-shrink: 0; }
.main-chat { flex: 1; display: flex; flex-direction: column; background: #fff; }
.main-chat-header { padding: 15px 25px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
.messages-area { flex: 1; padding: 25px; overflow-y: auto; background: #f4f7f6; display: flex; flex-direction: column; gap: 15px; }
.msg { max-width: 70%; padding: 12px 18px; border-radius: 15px; font-size: 15px; line-height: 1.4; }
.msg.received { align-self: flex-start; background: #fff; color: #333; border-bottom-left-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.msg.sent { align-self: flex-end; background: var(--bleu); color: #fff; border-bottom-right-radius: 2px; }
.chat-input-box { padding: 20px; border-top: 1px solid #eee; display: flex; gap: 10px; align-items: center; }
.chat-input-box input { flex: 1; padding: 12px 20px; border: 1px solid #ddd; border-radius: 30px; outline: none; }
.send-icon-btn { background: var(--bleu); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.status-dot { width: 10px; height: 10px; background: #28a745; border-radius: 50%; display: inline-block; margin-right: 5px; }

@media (max-width: 768px) {
    .grille, .footer-grille, .form-ligne { grid-template-columns: 1fr; }
    .apropos-interieur { flex-direction: column; }
    .apropos-logo { display: none; }
    .hero { flex-direction: column; padding: 100px 25px 50px; text-align: center; }
    .hero h1 { font-size: 2.25rem; }
    .hero-image img { width: 200px; }
    .hero-boutons { justify-content: center; }
    .section, .section-foncee { padding: 60px 25px; }
    nav { padding: 15px 20px; }
    .nav-liens { display: none; }
    footer { padding: 40px 25px; }
    .messenger-wrapper { flex-direction: column; height: 100vh; margin: 0; border-radius: 0; border: none; }
    .side-chats { width: 100%; border-right: none; border-bottom: 1px solid #eee; max-height: 40vh; }
    .main-chat { height: 60vh; }
}
.bubble { 
    max-width: 75%; 
    padding: 12px 18px; 
    border-radius: 15px; 
    border: 3px solid #000 !important; /* Bordure noire pour tout le monde */
    position: relative; 
    font-size: 14px;
    margin-bottom: 5px;
}

.bubble.admin { 
    align-self: flex-end; 
    background: #000; 
    color: #fff; 
    border-bottom-right-radius: 2px; 
}

.bubble.user { 
    align-self: flex-start; 
    background: #fff; 
    color: #000;
    border-bottom-left-radius: 2px; 
    box-shadow: 5px 5px 0px #000; 
}

.role-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.7;
}

.time {
    display: block;
    text-align: right;
    font-size: 9px;
    margin-top: 5px;
    opacity: 0.5;
}