﻿/* =========================================================
   Logements Ã‰tudiants â€” Feuille de style principale
   Responsive, accessible, sans framework externe
   ========================================================= */

/* ----- Reset & variables ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:    #1a5276;
    --primary-dk: #154360;
    --accent:     #2e86c1;
    --accent-lt:  #d6eaf8;
    --success:    #1e8449;
    --warning:    #d68910;
    --danger:     #c0392b;
    --gray-100:   #f4f6f8;
    --gray-200:   #e8ecef;
    --gray-400:   #aab7c4;
    --gray-700:   #4a5568;
    --gray-900:   #1a202c;
    --white:      #ffffff;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(0,0,0,.10);
    --shadow-md:  0 4px 24px rgba(0,0,0,.14);
    --font:       'Segoe UI', system-ui, sans-serif;
    --transition: .2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; height: 100%; }
body { font-family: var(--font); color: var(--gray-900); background: var(--gray-100); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ----- Layout ----- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ----- Header ----- */
.site-header {
    background: var(--primary);
    color: var(--white);
    padding: .6rem 0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.btn-back-home { font-size: .85rem; padding: .3rem .85rem; opacity: .9; }
.btn-back-home:hover { opacity: 1; text-decoration: none; }
.logo { display: flex; align-items: center; gap: .75rem; color: var(--white); font-size: 1.3rem; font-weight: 700; }
.logo:hover { text-decoration: none; opacity: .9; }
.logo-img { height: 56px; width: auto; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: rgba(255,255,255,.85); font-size: .95rem; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); text-decoration: none; }
/**/
.header-logo-evreux { height: 200px; width: auto; object-fit: contain; margin-left: .2rem; }

/* ----- Buttons ----- */
.btn {
    display: inline-block; padding: .5rem 1.2rem; border-radius: var(--radius);
    font-size: .95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-align: center; white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); text-decoration: none; }
.btn-outline   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.btn-success   { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-danger    { background: var(--danger);  color: var(--white); border-color: var(--danger); }
.btn-warning   { background: var(--warning); color: var(--white); border-color: var(--warning); }
.btn-sm        { padding: .3rem .8rem; font-size: .85rem; }
.btn-block     { width: 100%; display: block; }
.btn:disabled  { opacity: .5; cursor: not-allowed; }

/* ----- Filtres de recherche ----- */
.search-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
}
.search-form {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end;
}
.search-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray-700); margin-bottom: .25rem; }
.search-form select,
.search-form input[type="text"] {
    border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: .45rem .75rem; font-size: .9rem; background: var(--white);
    color: var(--gray-900); min-width: 180px;
}
.search-form .btn { align-self: flex-end; }

/* ----- Liste annonces ----- */
.listings-section { padding: 2rem 0; }
.section-title { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; }

.annonce-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); display: flex; gap: 1rem;
    padding: 1rem; margin-bottom: 1rem; transition: box-shadow var(--transition);
    text-decoration: none; color: inherit;
}
.annonce-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.annonce-thumb {
    width: 160px; min-width: 160px; height: 110px;
    border-radius: calc(var(--radius) - 2px); overflow: hidden; background: var(--gray-200);
}
.annonce-thumb img { width: 100%; height: 100%; object-fit: cover; }
.annonce-info { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.annonce-type { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.annonce-titre { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.annonce-desc  { font-size: .88rem; color: var(--gray-700); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.annonce-meta  { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--gray-700); margin-top: auto; }
.annonce-loyer { font-size: 1.05rem; font-weight: 700; color: var(--primary); }

/* ----- Pagination ----- */
.pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; padding: 1.5rem 0; }
.pagination a, .pagination span {
    display: inline-block; padding: .4rem .9rem; border-radius: var(--radius);
    border: 1px solid var(--gray-200); font-size: .9rem; background: var(--white);
}
.pagination a { color: var(--accent); }
.pagination a:hover { background: var(--accent-lt); text-decoration: none; }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ----- Fiche annonce dÃ©taillÃ©e ----- */
.breadcrumb { font-size: .82rem; color: var(--gray-400); padding: .75rem 0; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 .35rem; }

.annonce-detail { padding: 2rem 0; }
.annonce-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }

.photos-gallery { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-bottom: 1.5rem; }
.photo-main { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }
.photos-thumbs { display: flex; gap: .5rem; overflow-x: auto; }
.photos-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.photos-thumbs img:hover, .photos-thumbs img.active { border-color: var(--accent); }

.annonce-detail-info h1 { font-size: 1.5rem; color: var(--primary); margin-bottom: .5rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin: 1rem 0; }
.info-item label { font-size: .78rem; font-weight: 700; color: var(--gray-400); display: block; text-transform: uppercase; }
.info-item span  { font-size: .95rem; color: var(--gray-900); }

.dpe-badge {
    display: inline-block; font-weight: 700; font-size: .9rem;
    padding: .2rem .6rem; border-radius: 4px; color: var(--white);
}
.dpe-a { background: #1e8449; } .dpe-b { background: #27ae60; }
.dpe-c { background: #f1c40f; color: #333; } .dpe-d { background: #e67e22; }
.dpe-e { background: #e74c3c; } .dpe-f { background: #c0392b; } .dpe-g { background: #7b241c; }
.dpe-nc { background: var(--gray-400); }

.equipements { margin: 1rem 0; }
.equipements h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.equipements-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.equip-tag { background: var(--accent-lt); color: var(--accent); border-radius: 20px; padding: .2rem .75rem; font-size: .82rem; font-weight: 600; }

/* Formulaire contact Ã©tudiant (sidebar) */
.contact-sidebar {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 80px;
}
.contact-sidebar h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; border-bottom: 2px solid var(--accent-lt); padding-bottom: .5rem; }
.share-pdf-box { margin-top: 1.5rem; }
.btn-share { background: var(--white); color: var(--accent); border-color: var(--accent); }
.btn-share:hover { background: var(--accent-lt); }
.btn-share:disabled { opacity: .6; cursor: wait; }
.share-feedback { font-size: .85rem; margin-top: .5rem; min-height: 1.2em; }
.share-feedback.is-success { color: var(--success); }
.share-feedback.is-error   { color: var(--danger); }

/* ----- Formulaires ----- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .3rem; }
.form-group label .required { color: var(--danger); }
.form-control {
    width: 100%; padding: .5rem .75rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius); font-size: .95rem; color: var(--gray-900);
    transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,134,193,.15); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: .8rem; margin-top: .25rem; }
.form-hint { font-size: .78rem; color: var(--gray-400); margin-top: .2rem; }

/* Checkboxes */
.checkbox-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.checkbox-item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ----- Alertes / Notifications ----- */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #d5f5e3; color: #1e8449; border-left: 4px solid #1e8449; }
.alert-error    { background: #fdecea; color: #c0392b; border-left: 4px solid #c0392b; }
.alert-warning  { background: #fef9e7; color: #9a7d0a; border-left: 4px solid #d68910; }
.alert-info     { background: var(--accent-lt); color: var(--primary); border-left: 4px solid var(--accent); }

/* ----- Back office layout ----- */
.bo-layout { display: flex; min-height: calc(100vh - 58px); }
.bo-sidebar {
    width: 240px; background: var(--primary); color: var(--white);
    padding: 1.5rem 0; flex-shrink: 0;
}
.bo-sidebar .sidebar-user { padding: .5rem 1.5rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.bo-sidebar .sidebar-user strong { display: block; font-size: 1rem; }
.bo-sidebar .sidebar-user small  { color: rgba(255,255,255,.6); font-size: .78rem; }
.bo-sidebar nav { padding: 1rem 0; }
.bo-sidebar nav a {
    display: block; padding: .55rem 1.5rem; color: rgba(255,255,255,.8);
    font-size: .9rem; transition: background var(--transition);
}
.bo-sidebar nav a:hover, .bo-sidebar nav a.active {
    background: rgba(255,255,255,.12); color: var(--white); text-decoration: none;
}
.bo-sidebar nav .nav-section {
    padding: .6rem 1.5rem .2rem; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .1em; color: rgba(255,255,255,.4); font-weight: 700;
}
.bo-main { flex: 1; padding: 2rem; overflow-x: auto; }
.bo-main h1 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.5rem; }

/* ----- Cards stats admin ----- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; text-align: center; }
.stat-card .stat-num  { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: .82rem; color: var(--gray-400); margin-top: .25rem; }

/* ----- Tableaux ----- */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th { background: var(--primary); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: .75rem 1rem; text-align: left; }
td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: .88rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }

/* Badges statut */
.badge { display: inline-block; border-radius: 12px; padding: .15rem .7rem; font-size: .75rem; font-weight: 700; }
.badge-active    { background: #d5f5e3; color: var(--success); }
.badge-suspendue { background: #fef9e7; color: var(--warning); }
.badge-supprimee { background: #fdecea; color: var(--danger); }
.badge-brouillon { background: var(--gray-200); color: var(--gray-700); }
.badge-bailleur  { background: var(--accent-lt); color: var(--accent); }
.badge-admin     { background: #e8d5f5; color: #6c3483; }
.badge-superadmin{ background: #f9e7d5; color: #ca6f1e; }

/* ----- Login / Register ----- */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--gray-100); }
.auth-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; max-width: 440px; overflow: hidden; }
.auth-header { background: var(--primary); padding: 2rem 2rem 1.5rem; text-align: center; color: var(--white); }
.auth-header .logo { justify-content: center; margin-bottom: 0; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.auth-tab { flex: 1; padding: .85rem; text-align: center; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--gray-400); border: none; background: transparent; transition: color var(--transition); }
.auth-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.auth-body { padding: 1.5rem 2rem 2rem; }

/* ----- Upload photos ----- */
.upload-zone {
    border: 2px dashed var(--gray-200); border-radius: var(--radius);
    padding: 2rem; text-align: center; cursor: pointer; background: var(--gray-100);
    transition: border-color var(--transition);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-lt); }
.upload-zone input[type="file"] { display: none; }
.upload-zone .upload-icon { font-size: 2.5rem; }
.upload-zone p { font-size: .88rem; color: var(--gray-700); margin-top: .5rem; }
.upload-previews { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.upload-preview { position: relative; width: 90px; height: 70px; border-radius: 4px; overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .remove-btn { position: absolute; top: 2px; right: 2px; background: var(--danger); color: var(--white); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 20px; text-align: center; }

/* ----- Monitoring ----- */
.log-row-error   td:first-child { border-left: 3px solid var(--danger); }
.log-row-warning td:first-child { border-left: 3px solid var(--warning); }
.log-row-info    td:first-child { border-left: 3px solid var(--accent); }
.log-row-perf    td:first-child { border-left: 3px solid var(--success); }

/* ----- Charts placeholder ----- */
.chart-container { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.5rem; }
.chart-container h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.chart-container canvas { max-height: 260px; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .annonce-detail-grid { grid-template-columns: 1fr; }
    .contact-sidebar { position: static; }
    .bo-layout { flex-direction: column; }
    .bo-sidebar { width: 100%; }
    .bo-sidebar nav { display: flex; flex-wrap: wrap; }
    .bo-sidebar nav a { padding: .45rem 1rem; }
}
@media (max-width: 640px) {
    .annonce-card { flex-direction: column; }
    .annonce-thumb { width: 100%; min-width: unset; height: 180px; }
    .search-form select { min-width: 100%; }
    .info-grid { grid-template-columns: 1fr; }
    .auth-body { padding: 1.25rem; }
}

/* ----- Footer ----- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); padding: .6rem 0; font-size: .8rem; margin-top: auto; }
.footer-line { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0; flex-wrap: wrap; }
.footer-logos { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.footer-logo { height: 28px; width: auto; object-fit: contain; opacity: .92; }


/* ----- Banniere gauche (sidebar marque) ----- */
.page-layout {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 78px - 44px); /* viewport - header - footer */
}
.brand-sidebar {
    width: 210px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 2rem;
    gap: 1.75rem;
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    overflow: hidden;
}
.sidebar-logo {
    width: 190px;
    height: auto;
    object-fit: contain;
    margin-top: calc(1cm - 1.75rem); /* gap + margin-top = ~1 cm total */
}
.sidebar-partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
}
.sidebar-partner-logo {
    flex: 1 1 0;
    width: 0;
    max-width: calc(50% - .25rem);
    height: auto;
    max-height: 90px;
    object-fit: contain;
}
.sidebar-tagline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: .25rem;
    gap: .1rem;
    margin-top: -1.5cm;
}
.tagline-top {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: #1b3d6e;
    letter-spacing: .01em;
    line-height: 1.2;
}
.tagline-study {
    color: #d43030;
}
.tagline-home-first {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: #000000;
}
.tagline-hand {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 3.2rem;
    color: #000000;
    line-height: 1;
    transform: translateX(2.8rem) rotate(-18deg);
    transform-origin: left center;
    display: inline-block;
    margin-top: .55rem;
}
.page-main {
    flex: 1;
    min-width: 0;
}
.sidebar-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    margin-top: 1.5cm;
    padding-left: .25rem;
    width: 100%;
}
.sidebar-contact-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sidebar-contact-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--accent-lt);
    padding: .35rem .65rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    word-break: break-all;
}
.sidebar-contact-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.sidebar-contact-link:hover {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}
@media (max-width: 900px) {
    .brand-sidebar { display: none; }
    .page-layout { display: block; }
}

.faq-liens-utiles {
    background: var(--gray-100);
    padding: 0 0 1rem;
    border-top: none;
}
.faq-liens-utiles .container {
    max-width: 860px;
}
.faq-liens-link {
    display: inline-block;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    padding: .55rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    margin: 0 auto;
    transition: background var(--transition), color var(--transition);
    max-width: 860px;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: left;
}
.faq-liens-link:hover {
    background: var(--accent-lt);
    color: var(--primary);
}

/* ----- Bouton contact sidebar ----- */
.btn-contact-sidebar {
    display: block;
    width: 100%;
    padding: .55rem 1rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition);
}
.btn-contact-sidebar:hover { background: var(--primary-dk); }

/* ----- Modale contact ----- */
.contact-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9100;
    align-items: center;
    justify-content: center;
}
.contact-modal-overlay.is-open {
    display: flex;
}
.contact-modal-box {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    width: min(480px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 2rem 1.5rem;
    position: relative;
}
.contact-modal-close {
    position: absolute;
    top: .75rem;
    right: .9rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    padding: .1rem .4rem;
}
.contact-modal-close:hover { color: var(--gray-900); }
.contact-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
}
.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1rem;
}
.contact-form-group label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-700);
}
.contact-form-group label span { color: var(--danger); }
.contact-form-group input,
.contact-form-group textarea {
    padding: .5rem .75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font: inherit;
    font-size: .95rem;
    transition: border-color var(--transition);
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form-group textarea { resize: vertical; }
.contact-feedback {
    font-size: .9rem;
    margin-bottom: .75rem;
    min-height: 1.2em;
}
.contact-feedback.is-error   { color: var(--danger); }
.contact-feedback.is-success { color: var(--success); }
.contact-form-footer { display: flex; justify-content: flex-end; margin-top: .5rem; }
.contact-submit { }
.contact-success-view { text-align: center; padding: 1rem 0 .5rem; }
.contact-success-message {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 1.25rem;
}

/* ----- Page légale (liens utiles) ----- */
.legal-page {
    padding: 2.5rem 0 4rem;
    flex: 1;
}
.legal-h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.75rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--accent-lt);
}
.legal-h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .5rem;
}
.legal-h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin: 1rem 0 .35rem;
}
.legal-section {
    margin-bottom: 1.5rem;
}
.legal-section p {
    font-size: .97rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: .6rem;
}
.legal-list {
    padding-left: 1.5rem;
    margin-bottom: .6rem;
}
.legal-list li {
    font-size: .97rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: .25rem;
}
.legal-conclusion {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary) !important;
}
.legal-divider {
    border: none;
    border-top: 2px solid var(--gray-200);
    margin: 2.5rem 0;
}
.legal-back {
    margin-top: 2.5rem;
}
.faq-section {
    padding: 1rem 0 1.25rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}
.faq-section .container {
    max-width: 860px;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    margin-bottom: .4rem;
    overflow: hidden;
}
.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    transition: background var(--transition);
}
.faq-trigger:hover,
.faq-trigger[aria-expanded="true"] {
    background: var(--accent-lt);
}
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
    transition: transform var(--transition);
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after  { width: 2px;  height: 10px; transition: transform var(--transition), opacity var(--transition); }
.faq-trigger[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}
.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.faq-body-inner {
    overflow: hidden;
    padding: 0 1.25rem;
}
.faq-item.open .faq-body {
    grid-template-rows: 1fr;
}
.faq-item.open .faq-body-inner {
    padding: .75rem 1.25rem 1.25rem;
}
.faq-body p {
    font-size: .97rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: .6rem;
}
.faq-body p:last-child { margin-bottom: 0; }
