/* =========================================================
   01 - RESET GLOBAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #f7f1e8;
    color: #2f2a25;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   02 - STRUCTURE GÉNÉRALE
   ========================================================= */

main {
    flex: 1;
}

.page-content {
    padding: 60px 6%;
    background: #f7f1e8;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    background: #fffaf2;
    padding: 44px;
    border-radius: 24px;
    border: 1px solid #e2d3c0;
    box-shadow: 0 10px 30px rgba(70, 45, 30, 0.08);
}

.content-box h1 {
    font-size: 2.35rem;
    color: #3a2c24;
    margin-bottom: 20px;
}

.content-box h2 {
    font-size: 1.5rem;
    color: #6b3f2a;
    margin-top: 28px;
    margin-bottom: 10px;
}

.content-box p {
    font-size: 1.08rem;
    color: #5a4c42;
    margin-bottom: 16px;
}

/* =========================================================
   03 - HEADER / NAVIGATION
   ========================================================= */

.site-header {
    width: 100%;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffaf2;
    border-bottom: 1px solid #e2d3c0;
}

.logo {
    font-size: 1.7rem;
    font-weight: bold;
    color: #6b3f2a;
}

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #3b332d;
    font-size: 1rem;
}

nav a:hover {
    color: #9b5b3a;
}

.site-header nav a.active {
    color: #7b4a32;
    font-weight: bold;
    border-bottom: 2px solid #7b4a32;
    padding-bottom: 4px;
}

/* =========================================================
   04 - BOUTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border-radius: 30px;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.btn.primary {
    background: #7b4a32;
    color: white;
}

.btn.secondary {
    background: transparent;
    color: #7b4a32;
    border: 2px solid #7b4a32;
}

button.btn {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    cursor: pointer;
}

.btn.primary:hover,
.btn.secondary:hover {
    opacity: 0.88;
}

/* =========================================================
   05 - ACCUEIL
   ========================================================= */

.hero {
    padding: 58px 8% 48px;
    background: linear-gradient(120deg, #f7f1e8, #e7dccb);
}

.hero-content {
    max-width: 760px;
}

.intro-label {
    font-size: 0.95rem;
    color: #8a5a3c;
    font-weight: bold;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.12;
    color: #3a2c24;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.12rem;
    color: #5a4c42;
    margin-bottom: 26px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.home-section {
    padding: 36px 8%;
    background: #f7f1e8;
}

.home-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-card {
    background: #fffaf2;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid #e2d3c0;
    box-shadow: 0 8px 20px rgba(70, 45, 30, 0.06);
}

.home-card h2 {
    color: #6b3f2a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.home-card p {
    color: #5a4c42;
    font-size: 1rem;
}

.home-call {
    padding: 10px 8% 42px;
    background: #f7f1e8;
}

.home-call-box {
    max-width: 900px;
    margin: 0 auto;
    background: #e7dccb;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #d7c4ad;
}

.home-call-box h2 {
    color: #3a2c24;
    font-size: 1.85rem;
    margin-bottom: 12px;
}

.home-call-box p {
    color: #5a4c42;
    font-size: 1.05rem;
    margin-bottom: 22px;
}

/* =========================================================
   06 - FORMULAIRES
   ========================================================= */

.formulaire {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
}

.formulaire label {
    font-weight: bold;
    color: #3a2c24;
    margin-top: 6px;
}

.formulaire input,
.formulaire select,
.formulaire textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d6c4ae;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    color: #2f2a25;
}

.formulaire textarea {
    min-height: 110px;
    resize: vertical;
}

.formulaire select {
    height: 46px;
}

.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus {
    outline: none;
    border-color: #7b4a32;
}

.formulaire button {
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: fit-content;
    min-width: 240px;
}

/* =========================================================
   07 - MESSAGES / CONFIRMATIONS
   ========================================================= */

.message-success {
    background: #e4f3df;
    color: #315b2c;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #b8d8ae;
}

.message-erreur {
    background: #f8e1dc;
    color: #7b2d22;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0aaa0;
}

.confirmation-box {
    text-align: center;
    background: #e4f3df;
    color: #315b2c;
    padding: 40px;
    border-radius: 22px;
    border: 1px solid #b8d8ae;
    margin-top: 30px;
}

.confirmation-box h2 {
    color: #315b2c;
    font-size: 2rem;
    margin-bottom: 16px;
}

.confirmation-box p {
    color: #315b2c;
    font-size: 1.1rem;
    margin-bottom: 26px;
}

/* =========================================================
   08 - CADRES PHOTO COMMUNS
   ========================================================= */

.fiche-photo,
.membre-photo,
.profil-detail-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e7dccb, #d1bda4);
    border: 1px solid #c4aa8c;
    color: #7b4a32;
    font-weight: bold;
    text-align: center;
}

.fiche-photo img,
.membre-photo img,
.profil-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* =========================================================
   09 - PAGE PROFILS PUBLIQUE
   ========================================================= */

.profils-public-page {
    max-width: 1380px;
}

.profils-public-intro {
    max-width: 760px;
    margin-bottom: 22px;
}

.profils-public-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.profils-public-filtres a {
    display: inline-block;
    padding: 9px 17px;
    border-radius: 24px;
    border: 1px solid #7b4a32;
    color: #7b4a32;
    background: #fffaf2;
    text-decoration: none;
    font-weight: bold;
}

.profils-public-filtres a.actif,
.profils-public-filtres a:hover {
    background: #7b4a32;
    color: #fff;
}

.profils-public-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fiche-membre {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    background: #fffaf2;
    border: 1px solid #d7c4ad;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 7px 16px rgba(70, 45, 30, 0.055);
}

.fiche-photo {
    width: 82px;
    height: 98px;
    border-radius: 14px;
}

.fiche-photo img {
    border-radius: 14px;
}

.fiche-contenu {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fiche-contenu h2 {
    color: #6b3f2a;
    font-size: 1.05rem;
    line-height: 1.08;
    margin-bottom: 4px;
}

.fiche-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.fiche-infos span {
    background: #f7f1e8;
    border: 1px solid #e2d3c0;
    border-radius: 14px;
    padding: 2px 6px;
    color: #5a4c42;
    font-weight: bold;
    font-size: 0.8rem;
    line-height: 1.15;
}

.fiche-intention {
    display: inline-block;
    width: fit-content;
    background: #e7dccb;
    color: #6b3f2a;
    padding: 4px 8px;
    border-radius: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.fiche-projet {
    background: #f7f1e8;
    border-left: 4px solid #7b4a32;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.fiche-projet strong {
    display: block;
    color: #6b3f2a;
    margin-bottom: 3px;
}

.fiche-projet p {
    color: #5a4c42;
    margin-bottom: 0;
}

.fiche-membre .btn {
    width: fit-content;
}

.fiche-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
}

/* Carte publique compacte / carte de visite */

.fiche-carte-visite {
    grid-template-columns: 76px 1fr;
    gap: 9px;
    padding: 9px;
    align-items: start;
    min-height: 0;
}

.fiche-carte-visite .fiche-photo {
    width: 76px;
    height: 92px;
    border-radius: 13px;
}

.fiche-carte-visite .fiche-photo img {
    border-radius: 13px;
}

.fiche-carte-contenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fiche-carte-header h2 {
    font-size: 1.02rem;
    line-height: 1.05;
    margin: 0 0 4px 0;
}

.fiche-infos-compactes {
    gap: 4px;
    margin-bottom: 3px;
}

.fiche-infos-compactes span {
    padding: 2px 6px;
    font-size: 0.78rem;
    line-height: 1.1;
}

.fiche-mini-infos-compactes {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.fiche-mini-infos-compactes p {
    font-size: 0.84rem;
    line-height: 1.13;
    margin: 0;
    color: #4f4036;
}

.fiche-mini-infos-compactes strong {
    color: #6b3f2a;
}

.fiche-actions-compactes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.fiche-actions-compactes .btn {
    padding: 7px 13px;
    font-size: 0.84rem;
    line-height: 1;
    border-width: 1px;
}

.signalement-details {
    font-size: 0.82rem;
    color: #6b3f2a;
    cursor: pointer;
}

.signalement-details summary {
    cursor: pointer;
    font-weight: bold;
    list-style-position: inside;
}

.signalement-details .signalement-form {
    margin-top: 7px;
}

.fiche-carte-visite .signalement-form {
    padding: 8px;
    gap: 5px;
}

.fiche-carte-visite .signalement-form select,
.fiche-carte-visite .signalement-form textarea {
    padding: 7px;
    font-size: 0.82rem;
}

.fiche-carte-visite .signalement-form textarea {
    min-height: 52px;
}

.fiche-carte-visite .signalement-form button {
    padding: 7px 12px;
    font-size: 0.82rem;
}

/* =========================================================
   10 - PAGE PROFIL DÉTAILLÉE
   ========================================================= */

.profil-detail-page {
    max-width: 1200px;
}

.profil-detail-header {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 30px;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2d3c0;
}

.profil-detail-photo {
    width: 190px;
    height: 240px;
    border-radius: 24px;
}

.profil-detail-photo img {
    border-radius: 24px;
}

.profil-detail-identite h1 {
    margin-bottom: 16px;
}

.profil-vie-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: start;
}

.profil-detail-section {
    background: #fffaf2;
    border: 1px solid #d7c4ad;
    border-radius: 22px;
    padding: 26px;
    margin-bottom: 26px;
    box-shadow: 0 8px 20px rgba(70, 45, 30, 0.06);
}

.profil-detail-section h2 {
    color: #6b3f2a;
    margin-top: 0;
    margin-bottom: 14px;
}

.profil-posts-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profil-post-card {
    background: #f7f1e8;
    border-left: 4px solid #7b4a32;
    border-radius: 16px;
    padding: 18px 20px;
}

.profil-post-card h3 {
    color: #6b3f2a;
    margin-bottom: 8px;
}

.profil-post-card small {
    color: #7a6a5c;
}

.profil-post-image {
    margin-bottom: 16px;
}

.profil-post-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center center;
    border-radius: 18px;
    border: 1px solid #d7c4ad;
    display: block;
}

.form-note {
    font-size: 0.95rem;
    color: #7a6a5c;
    margin-top: 4px;
}

/* =========================================================
   11 - SIGNALEMENT PUBLIC
   ========================================================= */

.signalement-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f7f1e8;
    border: 1px solid #e2d3c0;
    border-radius: 16px;
    padding: 12px;
}

.signalement-form select,
.signalement-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d6c4ae;
    border-radius: 10px;
    background: #fffaf2;
    color: #2f2a25;
    font-size: 0.95rem;
}

.signalement-form textarea {
    resize: vertical;
    min-height: 70px;
}

.signalement-form button {
    width: fit-content;
    cursor: pointer;
    margin-top: 4px;
}

/* =========================================================
   12 - ADMINISTRATION
   ========================================================= */

.admin-links,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.profils-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
}

.profil-card {
    background: #fffaf2;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e2d3c0;
    box-shadow: 0 8px 20px rgba(70, 45, 30, 0.06);
}

.profil-card h2 {
    color: #6b3f2a;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.profil-card p {
    color: #5a4c42;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

/* =========================================================
   13 - BADGES / STATUTS
   ========================================================= */

.statut-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: bold;
    font-size: 0.9rem;
}

.statut-actif,
.statut-traite {
    background: #e4f3df;
    color: #315b2c;
    border: 1px solid #b8d8ae;
}

.statut-suspendu,
.statut-nouveau {
    background: #fff0d8;
    color: #8a5a00;
    border: 1px solid #e5c27a;
}

.statut-supprime {
    background: #f8e1dc;
    color: #7b2d22;
    border: 1px solid #e0aaa0;
}

/* =========================================================
   14 - ESPACE MEMBRE
   ========================================================= */

.espace-membre-page {
    max-width: 1200px;
}

.membre-header {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 38px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2d3c0;
}

.membre-photo {
    width: 170px;
    height: 210px;
    border-radius: 24px;
}

.membre-photo img {
    border-radius: 24px;
}

.membre-identite h1 {
    margin-bottom: 12px;
}

.membre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.membre-badges span {
    background: #f7f1e8;
    border: 1px solid #e2d3c0;
    color: #5a4c42;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: bold;
}

.membre-badges .statut-badge {
    background: #e4f3df;
    color: #315b2c;
    border: 1px solid #b8d8ae;
}

.membre-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.membre-card {
    background: #fffaf2;
    border: 1px solid #d7c4ad;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(70, 45, 30, 0.07);
}

.membre-card.grande {
    grid-column: span 2;
}

.membre-card h2 {
    color: #6b3f2a;
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.membre-card p {
    color: #5a4c42;
    margin-bottom: 20px;
}

.membre-card.securite {
    background: #f7f1e8;
    border-left: 4px solid #7b4a32;
}

.membre-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.membre-footer-actions {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e2d3c0;
}

/* =========================================================
   15 - PHOTO DE PROFIL / UPLOAD
   ========================================================= */

.photo-consignes {
    background: #f7f1e8;
    border-left: 4px solid #7b4a32;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 26px 0;
}

.photo-consignes h2 {
    margin-top: 0;
    color: #6b3f2a;
}

.photo-consignes ul {
    margin-left: 22px;
    color: #5a4c42;
}

.photo-consignes li {
    margin-bottom: 8px;
}

.photo-preview {
    margin: 28px 0;
}

.photo-preview img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    border-radius: 24px;
    border: 1px solid #d7c4ad;
    box-shadow: 0 8px 22px rgba(70, 45, 30, 0.08);
}

.custom-file-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.file-button {
    cursor: pointer;
}

.file-name {
    color: #5a4c42;
    font-size: 0.95rem;
    font-style: italic;
}

/* =========================================================
   16 - FOOTER
   ========================================================= */

footer {
    text-align: center;
    padding: 14px;
    background: #fffaf2;
    color: #7a6a5c;
    font-size: 0.85rem;
    border-top: 1px solid #e2d3c0;
}

.footer-links {
    margin-top: 4px;
}

.footer-links a {
    color: #7b4a32;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   17 - RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .profils-public-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .site-header {
        flex-direction: column;
        gap: 14px;
    }

    nav a {
        margin: 0 8px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .content-box {
        padding: 30px;
    }

    .membre-header,
    .profil-detail-header,
    .profil-vie-grid {
        grid-template-columns: 1fr;
    }

    .membre-photo,
    .profil-detail-photo {
        width: 100%;
        height: 220px;
    }

    .membre-grid,
    .profils-public-grille {
        grid-template-columns: 1fr;
    }

    .membre-card.grande {
        grid-column: span 1;
    }
}

@media (max-width: 650px) {
    .fiche-membre {
        grid-template-columns: 1fr;
    }

    .fiche-photo {
        width: 100%;
        height: 220px;
    }

    .fiche-carte-visite {
        grid-template-columns: 82px 1fr;
        gap: 10px;
    }

    .fiche-carte-visite .fiche-photo {
        width: 82px;
        height: 98px;
    }

    .custom-file-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   18 - FENÊTRE MODALE
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(47, 42, 37, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    background: #fffaf2;
    border: 1px solid #d7c4ad;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(47, 42, 37, 0.28);
}

.modal-box h2 {
    color: #6b3f2a;
    margin-bottom: 12px;
}

.modal-box p {
    color: #5a4c42;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* =========================================================
   19 - LOGO / EMBLÈME
   ========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #6b3f2a;
}

.site-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.site-logo span {
    font-size: 1.7rem;
    font-weight: bold;
    color: #6b3f2a;
}

.logo {
    display: none;
}

.hero-accueil {
    display: grid;
    grid-template-columns: 230px minmax(0, 760px);
    gap: 38px;
    align-items: center;
    justify-content: center;
}

.hero-embleme {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-embleme img {
    width: 210px;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-content h1 span {
    display: block;
    white-space: nowrap;
}

.home-call-box h2 span {
    display: block;
}

.hero-buttons.centre {
    justify-content: center;
}

@media (max-width: 800px) {
    .hero-accueil {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-embleme img {
        width: 110px;
    }

    .hero-content h1 span {
        white-space: normal;
    }

    .hero-buttons {
        justify-content: center;
    }

    .site-logo img {
        width: 40px;
        height: 40px;
    }

    .site-logo span {
        font-size: 1.45rem;
    }
}

/* =========================================================
   20 - AMBIANCE NATURE / TEXTURE VÉGÉTALE
   ========================================================= */

body {
    background:
        linear-gradient(90deg, rgba(122, 91, 59, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(122, 91, 59, 0.018) 1px, transparent 1px),
        linear-gradient(135deg, #f7f1e8, #efe5d6);
    background-size: 18px 18px, 18px 18px, 100% 100%;
}

.page-content {
    background:
        linear-gradient(90deg, rgba(122, 91, 59, 0.022) 1px, transparent 1px),
        linear-gradient(0deg, rgba(122, 91, 59, 0.016) 1px, transparent 1px),
        #f7f1e8;
    background-size: 20px 20px;
}

.hero {
    background:
        radial-gradient(circle at 20% 50%, rgba(125, 143, 106, 0.12), transparent 34%),
        radial-gradient(circle at 80% 40%, rgba(107, 63, 42, 0.08), transparent 32%),
        linear-gradient(90deg, rgba(107, 63, 42, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(107, 63, 42, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #efe5d6, #e7dccb);
    background-size:
        100% 100%,
        100% 100%,
        22px 22px,
        22px 22px,
        100% 100%;
}

.home-call-box {
    background:
        linear-gradient(90deg, rgba(107, 63, 42, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(107, 63, 42, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #e7dccb, #ded0bd);
    background-size: 18px 18px, 18px 18px, 100% 100%;
}

.home-card,
.content-box,
.fiche-membre,
.membre-card,
.profil-detail-section {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 250, 242, 0.92)),
        #fffaf2;
}

/* =========================================================
   21 - MOTS DE PASSE / AFFICHAGE + CHAMPS EN ERREUR
   ========================================================= */

.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
}

.password-wrapper input {
    width: 100%;
    padding-right: 54px;
}

.formulaire .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

.formulaire .password-toggle:hover {
    opacity: 0.75;
}

.champ-erreur {
    border-color: #b83224 !important;
    background: #fff4f2 !important;
    box-shadow: 0 0 0 2px rgba(184, 50, 36, 0.12);
}

/* =========================================================
   22 - TABLE DE COMMANDE ADMINISTRATIVE
   ========================================================= */

.admin-dashboard {
    max-width: 1200px;
}

.admin-dashboard > p {
    max-width: 850px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.admin-dashboard-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 250, 242, 0.96)),
        #fffaf2;
    border: 1px solid #d7c4ad;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 8px 22px rgba(70, 45, 30, 0.07);
}

.admin-dashboard-card h2 {
    color: #6b3f2a;
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.admin-dashboard-card p {
    color: #5a4c42;
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 800px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   23 - STYLE ADMIN COMPACT / OUTIL DE GESTION
   ========================================================= */

.admin-actions {
    gap: 8px;
    margin-top: 18px;
}

.admin-actions .btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: bold;
    line-height: 1.1;
    min-width: auto;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.admin-actions .btn.primary {
    background: #4f4f4f;
    color: #fff;
    border: 1px solid #3e3e3e;
}

.admin-actions .btn.secondary {
    background: #eeeeee;
    color: #2f2f2f;
    border: 1px solid #b8b8b8;
}

.admin-actions .btn:hover {
    opacity: 1;
    transform: translateY(1px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.admin-actions .btn[href*="supprimer"],
.admin-actions .btn[href*="suspendre"] {
    background: #f3e7e4;
    color: #7b2d22;
    border-color: #d8aaa2;
}

.admin-actions .btn[href*="reactiver"],
.admin-actions .btn[href*="valider"] {
    background: #e4f0df;
    color: #315b2c;
    border-color: #b8d8ae;
}

.profil-card .admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================================
   24 - BADGE NOUVEAUTÉ / MODÉRATION NON LUE
   ========================================================= */

.statut-badge.statut-nouveau {
    background: #fff1cc;
    color: #7a4b00;
    border: 1px solid #d9a441;
    font-weight: 700;
}

.profil-card h2 .statut-nouveau {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    font-size: 0.78rem;
}

/* =========================================================
   25 - ACCEPTATION LÉGALE INSCRIPTION
   ========================================================= */

.consent-block {
    margin-top: 22px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 2px solid #d8c7b6;
    border-radius: 14px;
    background: #fffaf6;
    transition: 0.2s ease;
}

.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.consent-line input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 3px;
    flex: 0 0 auto;
    accent-color: #8b5a3c;
    cursor: pointer;
}

.consent-text {
    font-weight: 700;
    line-height: 1.55;
}

.consent-text a {
    font-weight: 800;
}

.consent-block.has-error {
    border-color: #c0392b;
    background: #fff1ef;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
    animation: consentShake 0.28s ease-in-out 2;
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #efb3b3;
    border-left: 6px solid #c0392b;
    border-radius: 10px;
    background: #fdecec;
    color: #a12622;
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.5;
}

.field-error::before {
    content: "⚠";
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 1px;
    flex: 0 0 auto;
}

@keyframes consentShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* =========================================================
   26 - FENÊTRE PREMIÈRE CONNEXION / LANCEMENT
   ========================================================= */

.lancement-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(45, 30, 20, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lancement-modal {
    width: 100%;
    max-width: 560px;
    background: #fffaf2;
    border: 1px solid #d8c7b6;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 18px 45px rgba(45, 30, 20, 0.28);
    text-align: left;
}

.lancement-modal h2 {
    margin-top: 0;
    color: #6b3f2a;
}

.lancement-modal p {
    line-height: 1.55;
}

.lancement-modal form {
    margin-top: 22px;
    text-align: center;
}