
/* ==============================
   DIS-MOI TOUT — IDENTITÉ VISUELLE
   ============================== */

:root {
    --rose: #FCE4EC;
    --rose-hover: #F8BBD0;
    --bleu-fond: #DCEEFF;
    --bleu-fonce: #45647F;
    --blanc: #FFFFFF;
    --ombre: rgba(69, 100, 127, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: var(--bleu-fond);
    color: var(--bleu-fonce);
    min-height: 100vh;
}

/* En-tête */

.site-header {
    background: var(--rose);
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 3px 12px var(--ombre);
}

.logo {
    color: var(--bleu-fonce);
    font-size: 27px;
    font-weight: bold;
}

/* Navigation */

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.navigation a {
    display: inline-block;
    background: var(--rose-hover);
    color: var(--bleu-fonce);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.2s ease;
}

.navigation a:hover {
    background: var(--blanc);
    color: var(--bleu-fonce);
}

/* Contenu */

.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 25px;
}

/* Cartes et blocs */

.card,
.content-card,
.panel {
    background: var(--bleu-fonce);
    color: var(--blanc);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px var(--ombre);
}

/* Titres et textes */

h1, h2, h3, p, label {
    color: var(--bleu-fonce);
}

/* Textes blancs dans les blocs bleu foncé */
.card h1, .card h2, .card h3, .card p, .card label,
.content-card h1, .content-card h2, .content-card h3,
.content-card p, .content-card label,
.panel h1, .panel h2, .panel h3, .panel p, .panel label {
    color: var(--blanc);
}

/* Boutons */

button,
.btn {
    background: var(--rose);
    color: var(--bleu-fonce);
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: bold;
    cursor: pointer;
}

button:hover,
.btn:hover {
    background: var(--rose-hover);
}

/* Champs de formulaire */

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--rose-hover);
    border-radius: 9px;
    margin: 7px 0 15px;
    font-size: 15px;
}

/* Pied de page */

.site-footer {
    text-align: center;
    padding: 25px;
    color: var(--bleu-fonce);
    background: var(--rose);
    margin-top: 40px;
}

/* Téléphones et tablettes */

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .navigation {
        justify-content: center;
        width: 100%;
    }

    .navigation a {
        padding: 10px 14px;
    }

    .page-content {
        margin: 15px auto;
        padding: 15px;
    }
}

/* Calendrier mauve clair */
.calendar,
.calendar-container,
.fc,
.fc-view-harness {
    background: #E8DDF5;
    border-radius: 14px;
}

/* Cases et jours du calendrier */
.fc-daygrid-day,
.fc-timegrid-slot {
    background: #F7F2FC;
}

/* Formulaires blancs */
form,
.form-container,
.form-card {
    background: #FFFFFF;
    color: #45647F;
    padding: 22px;
    border-radius: 14px;
}

/* Textes des formulaires */
form label,
.form-container label,
.form-card label {
    color: #45647F;
}

/* Tableaux rose soutenu */
table {
    width: 100%;
    border-collapse: collapse;
    background: #F4B6CC;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #EFA3BF;
    color: #FFFFFF;
    padding: 13px;
    text-align: left;
}

td {
    color: #45647F;
    padding: 12px;
    border-bottom: 1px solid #FCE4EC;
}

tr:nth-child(even) {
    background: #FCE4EC;
}

/* Images et logos : affichage carré 192 x 192 */
.logo img,
.app-image,
.user-image {
    width: 192px;
    height: 192px;
    object-fit: contain;
    display: block;
}

/* Photos remplissant entièrement le carré */
.user-image.cover {
    object-fit: cover;
}
/* Messages de confirmation des imports Google et Apple */
.calendar-messages {
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #e8f3e8;
    color: #245b2a;
    border-radius: 8px;
}

.calendar-messages p {
    color: #245b2a;
}

/* =================================
   REDUCTION DES TAILLES DES TEXTES
   PC ET MOBILE
   ================================= */

body {
    font-size: 14px;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 18px;
}

p, label, li {
    font-size: 14px;
    line-height: 1.5;
}

button,
.btn,
.navigation a {
    font-size: 13px;
    padding: 9px 15px;
}

input,
select,
textarea {
    font-size: 14px;
    padding: 9px;
}

.site-footer {
    font-size: 13px;
    padding: 16px;
}

/* ADAPTATION MOBILE */

@media (max-width: 768px) {

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 17px;
    }

    p, label, li {
        font-size: 13px;
    }

    button,
    .btn,
    .navigation a {
        font-size: 12px;
        padding: 8px 12px;
    }

    .page-content {
        padding: 12px;
        margin: 10px auto;
    }
}
/* LOGO PLUS PETIT SUR MOBILE UNIQUEMENT */
@media (max-width: 768px) {
    .logo img {
        width: 110px;
        height: 110px;
        object-fit: contain;
    }

    .site-header {
        gap: 8px;
    }
}
/* TITRE DIS-MOI TOUT — ÉCRITURE CALLIGRAPHIQUE */

.site-name {
    font-family: 'Allura', cursive !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
    color: #244967;
}

/* CENTRAGE ET TITRE PLUS GRAND SUR PC */
@media (min-width: 801px) {
    .site-header {
        position: relative;
        display: flex;
        align-items: center;
    }

    .site-name {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 36px !important;
    }
}

/* ADAPTATION MOBILE */
@media (max-width: 800px) {
    .site-name {
        font-size: 26px !important;
        margin-top: 2px;
    }
}
/* =====================================
   PAGE CONNEXION — ABONNEMENTS ET BANDEAU
   ===================================== */

/* Réduire le bandeau rose sur PC */
@media (min-width: 769px) {
    .site-header {
        padding: 6px 24px !important;
    }

    .site-header .logo img {
        width: 85px !important;
        height: 85px !important;
    }
}

/* Abonnements expirés : côte à côte sur PC */
@media (min-width: 769px) {
    html body .login-page .login-card:first-of-type {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    html body .login-page .login-card:first-of-type h2,
    html body .login-page .login-card:first-of-type p:first-of-type {
        width: 100%;
        margin-bottom: 5px;
    }

    html body .login-page .login-card:first-of-type p:not(:first-of-type) {
        margin: 0;
    }
}

/* Mobile : liens l'un sous l'autre, bien espacés */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 12px;
    }

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

    html body .login-page .login-card:first-of-type {
        display: block;
    }

    html body .login-page .login-card:first-of-type p {
        margin: 12px 0;
        width: 100%;
    }

    html body .login-page .login-card:first-of-type a.login-button {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
        padding: 12px 10px;
    }
}



/* ======================================================
   NOUVELLE PALETTE — DIS-MOI TOUT
   Couleurs uniquement : aucune taille de texte modifiée
   ====================================================== */

:root {
    --fuchsia-profond: #A52D68;
    --bleu-bouton: #A9CBEA;
    --bleu-bouton-hover: #8FB8DE;
}

/* Boutons : remplacement des anciens tons bruns/roses */
button,
.btn,
.login-button,
.members-button,
.member-button,
.navigation a {
    background-color: var(--bleu-bouton) !important;
    color: #244967 !important;
    border-color: transparent;
}

button:hover,
.btn:hover,
.login-button:hover,
.members-button:hover,
.member-button:hover,
.navigation a:hover {
    background-color: var(--bleu-bouton-hover) !important;
    color: #1D3D58 !important;
}

/* Cadres de connexion : fuchsia et hauteur réduite
   Les tailles de police restent celles déjà définies. */
html body .login-page .login-card {
    background-color: var(--fuchsia-profond) !important;
    color: #FFFFFF !important;
    padding: 16px 20px !important;
}

html body .login-page .login-card h2,
html body .login-page .login-card p,
html body .login-page .login-card label {
    color: #FFFFFF !important;
}

html body .login-page .login-card label {
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Case afficher le mot de passe : icône œil fuchsia
   Le fonctionnement de la case à cocher est conservé. */
.show-password {
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-password input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px;
    padding: 0 !important;
    margin: 4px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A52D68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    cursor: pointer;
}

.show-password input[type="checkbox"]:checked {
    background-color: rgba(255, 255, 255, 0.22) !important;
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    border-radius: 4px !important;
}

.show-password label {
    display: inline-block !important;
    margin: 4px 0 !important;
    cursor: pointer;
}

/* Sur mobile : cadres plus compacts, sans agrandir les textes. */
@media (max-width: 768px) {
    html body .login-page .login-card {
        padding: 13px 15px !important;
    }
}


/* CORRECTION : cibler les cartes de connexion même si elles sont imbriquées */
html body .login-page .login-card {
    background-color: #A52D68 !important;
    color: #FFFFFF !important;
    padding: 16px 20px !important;
}

html body .login-page .login-card form {
    padding: 12px !important;
}

html body .login-page .login-card input:not([type="checkbox"]) {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    html body .login-page .login-card {
        padding: 13px 15px !important;
    }
    html body .login-page .login-card form {
        padding: 10px !important;
    }
}
/* CORRECTION PC — FORMULAIRE BLANC ADMINISTRATEUR */
@media (min-width: 769px) {
    html body .login-page .login-card:first-of-type form {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}
/* PC — ESPACE ADMINISTRATEUR ET MEMBRE L'UN SOUS L'AUTRE */
@media (min-width: 769px) {
    html body .login-page {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    html body .login-page .login-card {
        width: 100% !important;
        max-width: 900px !important;
    }
}
/* ==========================================
   DIS-MOI TOUT — HARMONISATION DE TOUTES LES PAGES
   Palette identique à la page de connexion
   ========================================== */

/* CARTES ET CADRES FUCHSIA */
html body .calendar-card,
html body .members-card,
html body .dashboard-card,
html body .member-card,
html body .card,
html body .content-card,
html body .panel {
    background: #A52D68 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(69, 100, 127, 0.12);
}

/* TEXTES DANS LES CARTES */
html body .calendar-card h2,
html body .calendar-card h3,
html body .calendar-card p,
html body .calendar-card label,
html body .members-card h2,
html body .members-card h3,
html body .members-card p,
html body .dashboard-card h2,
html body .dashboard-card h3,
html body .dashboard-card p,
html body .dashboard-card label,
html body .member-card h2,
html body .member-card h3,
html body .member-card p {
    color: #FFFFFF !important;
}

/* FORMULAIRES BLANCS DANS LES CARTES */
html body .calendar-card form,
html body .members-card form,
html body .dashboard-card form,
html body .member-card form {
    background: #FFFFFF !important;
    color: #45647F !important;
    border-radius: 12px !important;
}

/* INTITULÉS DES CHAMPS */
html body .calendar-card form label,
html body .members-card form label,
html body .dashboard-card form label,
html body .member-card form label {
    color: #45647F !important;
    font-weight: bold;
}

/* CHAMPS DE SAISIE */
html body .calendar-card input:not([type="checkbox"]),
html body .calendar-card select,
html body .calendar-card textarea,
html body .members-card input:not([type="checkbox"]),
html body .members-card select,
html body .dashboard-card input:not([type="checkbox"]),
html body .dashboard-card select,
html body .member-card input:not([type="checkbox"]),
html body .member-card select {
    background: #FFFFFF !important;
    color: #45647F !important;
    border: 1px solid #A9CBEA !important;
    border-radius: 9px !important;
}

/* TOUS LES BOUTONS DES PAGES */
html body .calendar-button,
html body .members-button,
html body .member-button,
html body .dashboard-button,
html body .calendar-card button,
html body .members-card button,
html body .dashboard-card button,
html body .member-card button {
    background: #A9CBEA !important;
    color: #244967 !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: bold;
}

/* SURVOL DES BOUTONS */
html body .calendar-button:hover,
html body .members-button:hover,
html body .member-button:hover,
html body .dashboard-button:hover,
html body .calendar-card button:hover,
html body .members-card button:hover,
html body .dashboard-card button:hover,
html body .member-card button:hover {
    background: #8FB8DE !important;
    color: #1D3D58 !important;
}

/* LIENS DE NAVIGATION */
html body .member-navigation a,
html body .dashboard-links a {
    background: #A9CBEA !important;
    color: #244967 !important;
}

/* BLOC COMMANDE VOCALE */
html body .voice-command {
    background: #F3E4ED !important;
    border: 1px solid #A52D68 !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

html body .voice-command h3,
html body .voice-command p {
    color: #45647F !important;
}

/* ADAPTATION MOBILE */
@media (max-width: 768px) {
    html body .calendar-card,
    html body .members-card,
    html body .dashboard-card,
    html body .member-card {
        padding: 18px !important;
        border-radius: 14px !important;
    }
}

/* ==========================================
   HARMONISATION — DIMENSIONS ET ESPACEMENTS PC
   ========================================== */

@media (min-width: 769px) {

    /* Largeur générale des pages */
    html body .page-content {
        max-width: 1050px !important;
        padding: 20px !important;
        margin: 24px auto !important;
    }

    /* Cadres : dimensions plus compactes et espacés */
    html body .page-content .card:not(.login-card),
    html body .page-content .content-card,
    html body .page-content .panel,
    html body .page-content [class$="-card"]:not(.login-card) {
        box-sizing: border-box !important;
        padding: 18px !important;
        margin: 0 auto 20px auto !important;
        max-width: 100% !important;
        border-radius: 14px !important;
    }

    /* Formulaires : moins hauts et moins encombrants */
    html body .page-content form {
        box-sizing: border-box !important;
        padding: 14px !important;
        margin: 12px 0 18px !important;
        border-radius: 12px !important;
    }

    /* Champs de saisie */
    html body .page-content input:not([type="checkbox"]),
    html body .page-content select,
    html body .page-content textarea {
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        margin: 5px 0 10px !important;
        min-height: 36px;
        font-size: 14px !important;
    }

    /* Espacement des titres */
    html body .page-content h2 {
        margin-top: 0;
        margin-bottom: 12px;
    }

    /* Espacement des éléments dans les cadres */
    html body .page-content .card > *,
    html body .page-content .content-card > *,
    html body .page-content .panel > * {
        max-width: 100%;
    }

    /* Espacement des boutons */
    html body .page-content button,
    html body .page-content .btn {
        margin: 5px 5px 5px 0;
    }
}
/* CONNEXION — FORMAT COMPACT */
html body .login-page {
    display: block !important;
    width: 100% !important;
    max-width: 780px !important;
    margin: 0 auto !important;
    padding: 12px 15px !important;
}

html body .login-page .login-header {
    margin-bottom: 18px !important;
}

html body .login-page .login-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

html body .login-page .login-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 16px !important;
    margin: 0 !important;
    background: #A52D68 !important;
    border-radius: 14px !important;
}

html body .login-page .login-card form {
    display: block !important;
    width: 100% !important;
    padding: 14px !important;
    margin: 10px 0 0 !important;
    background: #FFFFFF !important;
    border-radius: 11px !important;
}

html body .login-page .login-card form label {
    display: block !important;
    margin: 8px 0 4px !important;
    color: #45647F !important;
}

html body .login-page .login-card form input:not([type="checkbox"]) {
    width: 100% !important;
    margin: 4px 0 10px !important;
    padding: 9px !important;
}

html body .login-page .login-card .login-button {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px !important;
}

@media (max-width: 650px) {
    html body .login-page .login-grid {
        grid-template-columns: 1fr !important;
    }
}
/* CONNEXION — CADRE ESPACE MEMBRE PLUS COMPACT */
@media (min-width: 651px) {
    html body .login-page .login-grid > .login-card:nth-child(2) {
        padding: 12px !important;
    }

    html body .login-page .login-grid > .login-card:nth-child(2) h2 {
        margin: 4px 0 8px !important;
    }

    html body .login-page .login-grid > .login-card:nth-child(2) p {
        margin: 5px 0 !important;
    }

    html body .login-page .login-grid > .login-card:nth-child(2) form {
        padding: 10px !important;
        margin-top: 6px !important;
    }
}
/* PROFIL — MÊME DESIGN QUE LES AUTRES PAGES */
html body .profile-card {
    background: #A52D68 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 14px !important;
}

html body .profile-card h2,
html body .profile-card p {
    color: #FFFFFF !important;
}

html body .profile-card .profile-avatar {
    background: #A9CBEA !important;
    color: #244967 !important;
}

html body .profile-card .profile-information span {
    color: #A9CBEA !important;
}

html body .profile-card .profile-information strong {
    color: #FFFFFF !important;
}

html body .profile-button {
    background: #A9CBEA !important;
    color: #244967 !important;
    border-radius: 10px !important;
}

html body .profile-button:hover {
    background: #8FB8DE !important;
}


/* =====================================
   INSCRIPTION — CADRE RECTANGULAIRE HARMONIEUX
   ===================================== */

html body .register-page {
    width: 100% !important;
    max-width: 1050px !important;
    margin: 0 auto !important;
    padding: 3px 10px !important;
}

html body .register-header {
    margin: 0 0 8px !important;
}

html body .register-header h1 {
    font-size: 21px !important;
    margin: 0 0 3px !important;
}

html body .register-trial {
    color: #A52D68 !important;
    font-weight: bold !important;
    margin: 3px 0 !important;
}

html body .register-card {
    width: 100% !important;
    max-width: 1050px !important;
    box-sizing: border-box !important;
    background: #A52D68 !important;
    padding: 6px !important;
    margin: 0 auto !important;
    border-radius: 3px !important;
}

html body .register-card form {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    border-radius: 2px !important;
}

html body .register-card h2 {
    font-size: 17px !important;
    margin: 0 0 5px !important;
}

html body .register-card label {
    font-size: 13px !important;
    margin-bottom: 3px !important;
}

html body .register-grid {
    gap: 5px 8px !important;
}

html body .register-grid input,
html body .register-field input,
html body .register-field select {
    font-size: 13px !important;
    padding: 6px 8px !important;
    min-height: 31px !important;
    margin: 3px 0 6px !important;
}

html body .register-field {
    margin-bottom: 5px !important;
}

html body .register-card .password-wrapper button {
    background: #A52D68 !important;
    color: #FFFFFF !important;
    padding: 6px 10px !important;
    min-height: 30px !important;
}

html body .register-card hr {
    margin: 7px 0 !important;
}

html body .register-button {
    font-size: 13px !important;
    margin-top: 7px !important;
    padding: 8px !important;
}

html body .register-terms {
    font-size: 12px !important;
    margin: 5px 0 0 !important;
}

/* MOBILE */

@media (max-width: 600px) {
    html body .register-page {
        max-width: 100% !important;
    }

    html body .register-card {
        max-width: 100% !important;
    }
}

/* INSCRIPTION — REMONTER ET RESSERRER L'EN-TÊTE */

html body .register-header {
    margin-top: -12px !important;
    margin-bottom: 5px !important;
}

html body .register-header h1 {
    margin-bottom: 2px !important;
}

html body .register-header p {
    margin: 2px 0 !important;
    line-height: 1.2 !important;
}

html body .register-header .register-trial {
    margin-top: 1px !important;
    margin-bottom: 2px !important;
}

/* =====================================
   PAGE MA FAMILLE — CADRES FUCHSIA
   ===================================== */

html body .family-page .family-card {
    background: #A52D68 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 16px !important;
}

html body .family-page .family-card h2,
html body .family-page .family-card h3,
html body .family-page .family-card p {
    color: #FFFFFF !important;
}

/* Conservation des détails dorés */
html body .family-page .family-label,
html body .family-page .family-role,
html body .family-page .family-counter {
    color: #FFD58A !important;
}

/* Séparation des membres */
html body .family-page .family-member {
    border-bottom-color: rgba(255,255,255,0.25) !important;
}

/* TABLEAU DE BORD — CHIFFRE MEMBRES PLUS COMPACT */

html body .dashboard-card h2 + p,
html body .dashboard-card h2 + .dashboard-number {
    display: inline-block !important;
    width: auto !important;
    min-width: 45px !important;
    padding: 2px 8px !important;
    margin-top: 3px !important;
}

/* CALENDRIER — SUPPRIMER LE CADRE BLANC GOOGLE */

html body .calendar-import-grid > .calendar-import-provider:first-child form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ==========================================
   CALENDRIER — FORMULAIRE AJOUT ÉVÉNEMENT
   VERSION COMPACTE ADMIN ET MEMBRES
   ========================================== */

/* Cadre blanc du formulaire */
html body .calendar-page .calendar-card:has(form[action*="add_event"]) {
    padding: 15px !important;
}

/* Formulaire */
html body .calendar-page form[action*="add_event"] {
    padding: 12px !important;
    margin: 0 !important;
}

/* Titres des champs */
html body .calendar-page form[action*="add_event"] label {
    font-size: 12px !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

/* Espacement entre les champs */
html body .calendar-page .calendar-form-grid {
    gap: 7px 12px !important;
    margin: 5px 0 8px !important;
}

/* Champs de saisie */
html body .calendar-page form[action*="add_event"] input,
html body .calendar-page form[action*="add_event"] select {
    font-size: 12px !important;
    padding: 5px 8px !important;
    min-height: 30px !important;
    margin: 2px 0 !important;
}

/* Description : conserver une belle zone d'écriture */
html body .calendar-page .calendar-description {
    margin: 5px 0 8px !important;
}

html body .calendar-page .calendar-description textarea {
    font-size: 12px !important;
    padding: 7px !important;
    min-height: 65px !important;
    line-height: 1.4 !important;
}

/* Rappel */
html body .calendar-page .calendar-checkbox {
    font-size: 12px !important;
    margin: 5px 0 8px !important;
}

/* Bouton ajouter */
html body .calendar-page form[action*="add_event"] button {
    font-size: 12px !important;
    padding: 7px 13px !important;
    margin-top: 4px !important;
}

/* COMMANDE VOCALE — CADRE PLUS PETIT */
html body .voice-command {
    padding: 8px 12px !important;
    margin: 8px 0 10px !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Titre */
html body .voice-command h3 {
    margin: 2px 0 5px !important;
    font-size: 15px !important;
}

/* Textes */
html body .voice-command p {
    margin: 3px 0 6px !important;
    font-size: 12px !important;
}

/* Masquer les lignes vides */
html body .voice-command p:empty {
    display: none !important;
}

/* Bouton parler */
html body .voice-command button {
    padding: 6px 12px !important;
    margin: 3px 0 !important;
    font-size: 12px !important;
}

/* ==========================================
   GESTION DES MEMBRES — FORMULAIRE COMPACT
   ========================================== */

/* Cadre fuchsia Ajouter un membre */
html body .members-dashboard .members-card:has(> form[action*="add_member"]) {
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
}

/* Titre */
html body .members-dashboard .members-card:has(> form[action*="add_member"]) h2 {
    font-size: 17px !important;
    margin: 0 0 7px !important;
}

/* Formulaire blanc */
html body .members-dashboard .members-card form[action*="add_member"] {
    padding: 9px 12px !important;
    margin: 5px 0 !important;
}

/* Espacement des champs */
html body .members-form-grid {
    gap: 7px 12px !important;
    margin: 5px 0 7px !important;
}

/* Intitulés */
html body .members-form-grid label {
    font-size: 12px !important;
    margin-bottom: 2px !important;
}

/* Champs de saisie */
html body .members-form-grid input,
html body .members-form-grid select {
    font-size: 13px !important;
    min-height: 31px !important;
    padding: 5px 8px !important;
    margin: 2px 0 5px !important;
}

/* Case à cocher */
html body .members-checkbox {
    font-size: 12px !important;
    margin: 5px 0 7px !important;
}

/* Bouton */
html body .members-dashboard form[action*="add_member"] button {
    font-size: 12px !important;
    padding: 7px 12px !important;
    margin-top: 3px !important;
}

/* CALENDRIER — EN-TÊTE ET BOUTONS */

html body .calendar-page .calendar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

html body .calendar-page .calendar-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

@media (max-width: 600px) {
    html body .calendar-page .calendar-header {
        flex-wrap: wrap !important;
    }

    html body .calendar-page .calendar-header-actions {
        width: 100% !important;
    }
}
/* PROFIL — BOUTONS MODIFIER ET DÉCONNEXION CÔTE À CÔTE */
html body .profile-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

html body .profile-header-actions .profile-button {
    display: inline-block !important;
    margin: 0 !important;
}
/* MOBILE — ESPACEMENT DES BOUTONS GESTION DES MEMBRES */
@media (max-width: 600px) {
    html body .members-header .members-button {
        display: inline-block !important;
        margin: 12px 0 12px !important;
    }

    html body .members-header {
        margin-bottom: 25px !important;
    }
}
/* MOBILE — ESPACEMENT DES BOUTONS GOOGLE */
@media (max-width: 600px) {
    html body .calendar-import-provider > a.calendar-button {
        display: block !important;
        width: fit-content !important;
        margin: 12px 0 !important;
    }

    html body .calendar-import-provider form {
        margin-top: 12px !important;
    }

    html body .calendar-import-provider form button.calendar-button {
        display: block !important;
        margin: 0 !important;
    }
}
/* MOBILE — ADMIN : MODIFIER MON PROFIL */
@media (max-width: 600px) {

    html body .profile-edit-page {
        padding: 10px 8px !important;
    }

    html body .profile-edit-header {
        margin-bottom: 10px !important;
    }

    html body .profile-edit-header h1 {
        font-size: 23px !important;
        margin-bottom: 5px !important;
    }

    html body .profile-edit-header p {
        font-size: 13px !important;
        margin: 4px 0 8px !important;
    }

    html body .profile-edit-card {
        padding: 14px 12px !important;
    }

    html body .profile-edit-card h2 {
        font-size: 16px !important;
        margin: 4px 0 10px !important;
    }

    html body .profile-edit-grid {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    html body .profile-edit-card label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    html body .profile-edit-card input,
    html body .profile-edit-card select {
        height: 36px !important;
        padding: 6px 9px !important;
        font-size: 13px !important;
    }

    html body .profile-edit-card hr {
        margin: 12px 0 !important;
    }

    html body .profile-edit-actions {
        gap: 8px !important;
        margin-top: 12px !important;
    }

    html body .profile-edit-button {
        font-size: 12px !important;
        padding: 9px 13px !important;
    }
}
/* PC — PIED DE PAGE PLUS BAS ET PLUS FIN */
@media (min-width: 769px) {
    html body {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
    }

    html body .page-content {
        flex: 1 0 auto !important;
    }

    html body .site-footer {
        margin-top: auto !important;
        padding: 8px 15px !important;
    }

    html body .site-footer p {
        margin: 5px 0 !important;
        line-height: 1.2 !important;
    }
}
/* PC — LOGO À GAUCHE DU TITRE SANS DÉPLACER CELUI-CI */
@media (min-width: 801px) {

    html body .site-header {
        min-height: 105px !important;
        height: 105px !important;
        position: relative !important;
    }

    html body .site-header .logo {
        position: absolute !important;
        left: calc(50% - 185px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
    }

    html body .site-header .logo img {
        width: 75px !important;
        height: 75px !important;
        object-fit: contain !important;
    }

    html body .site-header .site-name {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 36px !important;
    }
}
/* PAGE D'ACCUEIL — ÉCRITURE ÉLÉGANTE SUR PC UNIQUEMENT */
@media (min-width: 769px) {

    html body .home-container {
        font-family: Georgia, serif !important;
        font-size: 14px !important;
    }

    html body .home-container h1 {
        font-family: Georgia, serif !important;
        font-size: 25px !important;
        font-weight: normal !important;
    }

    html body .home-container h2,
    html body .home-container h3 {
        font-family: Georgia, serif !important;
        font-weight: normal !important;
    }

    html body .home-container p {
        font-family: Georgia, serif !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    html body .home-container a {
        font-family: Georgia, serif !important;
    }
}
/* BANDEAU ROSE DU BAS — ÉCRITURE ÉLÉGANTE SUR PC */
@media (min-width: 769px) {

    html body .site-footer {
        font-family: Georgia, serif !important;
        font-size: 14px !important;
        font-weight: normal !important;
        line-height: 1.6 !important;
    }

    html body .site-footer p {
        font-family: Georgia, serif !important;
        font-size: 14px !important;
        font-weight: normal !important;
        line-height: 1.6 !important;
    }
}
/* BANDEAU ROSE — ÉCRITURE ÉLÉGANTE SUR MOBILE */
@media (max-width: 768px) {
    html body .site-footer {
        font-family: Georgia, serif !important;
        font-weight: normal !important;
    }

    html body .site-footer p {
        font-family: Georgia, serif !important;
        font-weight: normal !important;
    }
}
/* POLICE GÉNÉRALE DU SITE — PC ET MOBILE */
html body *:not(.site-name):not(i):not(svg):not(path):not([class*="icon"]):not(.material-icons):not(.fa) {
    font-family: Georgia, serif !important;
}
/* RETIRER LE CADRE BLANC AUTOUR DE SUPPRIMER */
html body .member-item form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* TABLEAU DE BORD ADMINISTRATEUR — PC UNIQUEMENT */
@media (min-width: 769px) {

    html body .admin-dashboard {
        max-width: 1200px !important;
    }

    html body .admin-dashboard .dashboard-card {
        padding: 14px 20px !important;
        margin-bottom: 14px !important;
    }

    html body .admin-dashboard .dashboard-card h2,
    html body .admin-dashboard .dashboard-card h3 {
        font-size: 19px !important;
        margin-top: 3px !important;
        margin-bottom: 6px !important;
    }

    html body .admin-dashboard .dashboard-card p {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    html body .admin-dashboard .dashboard-number {
        font-size: 24px !important;
        margin-top: 3px !important;
    }
}
/* TITRE DU TABLEAU DE BORD — PC UNIQUEMENT */
@media (min-width: 769px) {
    html body .admin-dashboard .dashboard-header {
        margin-top: -15px !important;
        margin-bottom: 15px !important;
    }

    html body .admin-dashboard .dashboard-header h1 {
        font-size: 24px !important;
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }
}
/* TITRES DES CADRES DU TABLEAU DE BORD — PC */
@media (min-width: 769px) {
    html body .admin-dashboard .dashboard-card h2,
    html body .admin-dashboard .dashboard-card h3 {
        font-size: 17px !important;
    }
}
