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

:root {
    --plum-dark: #3f3442;
    --plum-soft: #5a4a5d;
    --mauve-deep: #6e5c70;
    --rose-muted: #a98696;
    --rose-dusty: #c7aab5;
    --rose-light: #e8d9df;
    --taupe-dark: #4e4748;
    --taupe-soft: #6a6264;
    --sage-dark: #5f6f69;
    --sage-soft: #84958e;
    --cream-soft: #f2ecec;
    --cream-light: #faf6f6;
    --white: #ffffff;
    --text-main: #f0e9ea;
    --text-dark: #d4c8cc;
    --text-body: #ede6e7;
    --panel-text: #4b4345;
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 16px 38px rgba(22, 16, 20, 0.28);
    --shadow-light: 0 10px 24px rgba(22, 16, 20, 0.18);
    --radius: 18px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(169, 134, 150, 0.16) 0%, rgba(169, 134, 150, 0) 34%),
        radial-gradient(circle at top right, rgba(132, 149, 142, 0.14) 0%, rgba(132, 149, 142, 0) 30%),
        linear-gradient(180deg, #2b232d 0%, #352c37 42%, #40383a 100%);
    color: var(--text-body);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, rgba(63, 52, 66, 0.97) 0%, rgba(95, 111, 105, 0.92) 50%, rgba(90, 74, 93, 0.97) 100%);
    padding: 28px 0 22px;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--plum-soft), var(--sage-dark));
    color: var(--white);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 2001;
}

.main-nav {
    background: linear-gradient(90deg, #4e414f 0%, #645365 45%, #6d6260 100%);
    box-shadow: var(--shadow-light);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-root {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-root > li {
    margin: 0 8px;
    position: relative;
}

.main-nav a {
    display: block;
    padding: 16px 18px;
    color: #f6eff1;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    border-radius: 12px;
}

.main-nav a:hover,
.main-nav a.is-current {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: translateY(-1px);
}

.menu-title,
.submenu-title {
    display: block;
    padding: 16px 18px;
    color: #f6eff1;
    font-weight: 600;
    cursor: default;
    border-radius: 12px;
    transition: background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.has-submenu:hover > .menu-title,
.has-submenu:hover > .submenu-title {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.submenu {
    display: none;
    list-style: none;
    background: rgba(248, 242, 244, 0.98);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid rgba(90, 74, 93, 0.12);
}

.has-submenu:hover > .submenu {
    display: block;
}

.submenu-rubriques {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
}

.submenu-rubriques > li {
    position: relative;
    margin: 0;
    width: 100%;
}

.submenu-rubriques .submenu-title {
    color: var(--taupe-dark);
    border-radius: 0;
    padding: 10px 14px;
}

.submenu-rubriques > li:hover > .submenu-title {
    background: linear-gradient(90deg, rgba(232, 217, 223, 0.9) 0%, rgba(199, 170, 181, 0.38) 100%);
    color: var(--taupe-dark);
}

.submenu-articles {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 280px;
}

.submenu-articles li {
    margin: 0;
    width: 100%;
}

.submenu-articles a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    color: var(--taupe-dark);
    text-decoration: none;
    border-radius: 0;
    background: transparent;
}

.submenu-articles a:hover {
    background: linear-gradient(90deg, rgba(232, 217, 223, 0.9) 0%, rgba(132, 149, 142, 0.22) 100%);
    color: var(--taupe-dark);
}

main {
    padding: 42px 0;
}

.welcome,
.articles-preview,
.article-detail {
    background: rgba(250, 246, 246, 0.95);
    padding: 30px;
    margin-bottom: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--plum-dark);
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.18;
}

h2 {
    font-size: 1.55rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.24rem;
    line-height: 1.3;
}

p {
    font-weight: 400;
    color: var(--panel-text);
}

.article-meta {
    color: #8d6778;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-image-wrap {
    margin: 20px 0;
}

.article-image {
    max-width: 100%;
    max-height: 720px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    object-fit: contain;
}

.article-content {
    color: var(--panel-text);
    white-space: normal;
}

footer {
    background: linear-gradient(90deg, #433845 0%, #5a4a5d 45%, #6b5d63 100%);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 24px;
}

footer p {
    color: #f7eff2;
    font-size: 0.95rem;
}

.admin-link {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.88;
}

.admin-link a {
    color: #f4dde5;
    text-decoration: none;
}

.admin-link a:hover {
    text-decoration: underline;
}

.error {
    color: #b85c6d;
    font-weight: 700;
}

.success {
    color: #5f8d75;
    font-weight: 700;
}

textarea,
select,
input[type="text"],
input[type="password"],
input[type="file"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid rgba(110, 92, 112, 0.18);
    border-radius: 12px;
    background: #fffafb;
    font-family: inherit;
    font-size: 1rem;
    color: var(--panel-text);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #b895a4;
    box-shadow: 0 0 0 3px rgba(199, 170, 181, 0.25);
}

textarea {
    resize: vertical;
    min-height: 220px;
}

button,
input[type="submit"] {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6e5c70, #a98696);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    opacity: 0.96;
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(250, 246, 246, 0.98);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(110, 92, 112, 0.12);
    vertical-align: top;
    color: var(--panel-text);
}

th {
    background: linear-gradient(90deg, rgba(232, 217, 223, 0.95) 0%, rgba(199, 170, 181, 0.32) 100%);
    color: var(--plum-dark);
    font-weight: 700;
}

.admin-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.admin-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-light);
}

.admin-btn.create {
    background: linear-gradient(135deg, #7d9188, #5f6f69);
}

.admin-btn.edit {
    background: linear-gradient(135deg, #7d6d84, #5a4a5d);
}

.admin-btn.delete {
    background: linear-gradient(135deg, #b07b8b, #8a5f6b);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    opacity: 0.95;
}

/* ===== DASHBOARD ADMIN ===== */

.admin-top-nav {
    background: rgba(250, 246, 246, 0.96);
    border-bottom: 1px solid rgba(110, 92, 112, 0.12);
    box-shadow: var(--shadow-light);
}

.admin-top-nav-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.admin-top-nav a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--plum-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.93rem;
    border: 1px solid rgba(110, 92, 112, 0.12);
    background: rgba(255, 250, 251, 0.82);
}

.admin-top-nav a:hover,
.admin-top-nav a.is-current {
    background: linear-gradient(135deg, rgba(95, 111, 105, 0.95), rgba(132, 149, 142, 0.95));
    color: var(--white);
}

.admin-dashboard-header {
    margin-bottom: 24px;
}

.admin-intro {
    color: #c7bcc0;
    font-size: 1.02rem;
}

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

.admin-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(250, 246, 246, 1) 0%, rgba(237, 229, 232, 0.95) 100%);
    border: 1px solid rgba(110, 92, 112, 0.12);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(169, 134, 150, 0.35);
}

.admin-card-title {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--plum-dark);
    margin-bottom: 8px;
}

.admin-card-text {
    display: block;
    color: var(--taupe-soft);
    font-size: 0.96rem;
    line-height: 1.6;
}

.admin-logout-wrap {
    margin-top: 28px;
}

.admin-logout-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5f6f69, #7f6875);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    opacity: 0.96;
}

/* ===== FORMULAIRES ADMIN ===== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.form-field {
    margin: 0;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--plum-dark);
    font-weight: 700;
}

.field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--plum-dark);
    font-weight: 700;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--taupe-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.publication-form {
    margin-top: 18px;
}

.admin-current-image {
    display: block;
    max-width: min(260px, 100%);
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-light);
}

.editor-preview {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(110, 92, 112, 0.14);
    border-radius: 18px;
    background: rgba(255, 250, 251, 0.82);
    box-shadow: 0 8px 20px rgba(22, 16, 20, 0.08);
}

.editor-preview h4 {
    margin-bottom: 12px;
    color: var(--plum-dark);
    font-size: 1rem;
}

.editor-preview-image-wrap {
    min-height: 72px;
    margin-bottom: 12px;
}

.editor-preview-image {
    display: block;
    max-width: min(320px, 100%);
    max-height: 220px;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-light);
}

.editor-preview-placeholder {
    display: inline-block;
    color: var(--taupe-soft);
    font-weight: 700;
}

.editor-preview-title {
    margin-bottom: 8px;
    color: var(--plum-dark);
    font-weight: 800;
    font-size: 1.08rem;
}

.editor-preview-content {
    color: var(--panel-text);
    white-space: pre-wrap;
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--panel-text);
    font-weight: 700;
}

.inline-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.admin-note {
    background: rgba(232, 217, 223, 0.45);
    border-left: 4px solid rgba(169, 134, 150, 0.8);
    padding: 12px 14px;
    border-radius: 12px;
    margin: 14px 0;
    color: var(--panel-text);
}

.status-pill {
    display: inline-block;
    min-width: 72px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
}

.status-pill.active {
    background: rgba(95, 141, 117, 0.18);
    color: #4f7b64;
    border: 1px solid rgba(95, 141, 117, 0.28);
}

.status-pill.inactive {
    background: rgba(184, 92, 109, 0.14);
    color: #9a4f60;
    border: 1px solid rgba(184, 92, 109, 0.24);
}

.price-cell,
.duration-cell,
.date-cell,
.time-cell {
    font-weight: 700;
    white-space: nowrap;
}

/* ===== CALENDRIER ADMIN DES RENDEZ-VOUS ===== */

.admin-week-toolbar {
    margin-bottom: 18px;
}

.admin-week-calendar-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-light);
    background: rgba(255, 250, 251, 0.78);
    border: 1px solid rgba(110, 92, 112, 0.12);
}

.admin-week-calendar {
    min-width: 980px;
    display: grid;
    grid-template-columns: 82px repeat(7, minmax(125px, 1fr));
}

.admin-calendar-cell {
    min-height: 62px;
    border-right: 1px solid rgba(110, 92, 112, 0.12);
    border-bottom: 1px solid rgba(110, 92, 112, 0.12);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 7px;
    color: var(--panel-text);
    background: rgba(255, 250, 251, 0.74);
}

.admin-calendar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    background: linear-gradient(180deg, rgba(232, 217, 223, 0.96), rgba(250, 246, 246, 0.96));
    color: var(--plum-dark);
    font-weight: 800;
}

.admin-calendar-head.today {
    background: linear-gradient(180deg, rgba(132, 149, 142, 0.42), rgba(232, 217, 223, 0.84));
}

.admin-calendar-time-head {
    z-index: 3;
}

.admin-calendar-day-name {
    font-size: 0.92rem;
    line-height: 1.2;
}

.admin-calendar-day-date {
    font-size: 0.85rem;
    color: var(--taupe-soft);
    line-height: 1.2;
}

.admin-calendar-time {
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-weight: 800;
    color: var(--plum-dark);
    background: rgba(232, 217, 223, 0.38);
}

.admin-calendar-slot {
    min-height: 66px;
    flex-direction: column;
    gap: 7px;
}

.admin-calendar-slot.empty {
    align-items: center;
    justify-content: center;
    background: rgba(238, 231, 233, 0.58);
}

.admin-calendar-slot.has-rdv {
    background: rgba(132, 149, 142, 0.12);
}

.admin-calendar-empty {
    color: rgba(78, 71, 72, 0.28);
    font-weight: 700;
}

.admin-rdv-item {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 14px;
    padding: 8px;
    color: var(--white);
    box-shadow: 0 6px 14px rgba(22, 16, 20, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.admin-rdv-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    opacity: 0.96;
}

.admin-rdv-item.status-nouveau {
    background: linear-gradient(135deg, #7d6d84, #5a4a5d);
}

.admin-rdv-item.status-confirme {
    background: linear-gradient(135deg, #5f6f69, #84958e);
}

.admin-rdv-item.status-annule {
    background: linear-gradient(135deg, #b07b8b, #8a5f6b);
    opacity: 0.82;
}

.admin-rdv-item.status-termine {
    background: linear-gradient(135deg, #6a6264, #4e4748);
    opacity: 0.82;
}

.admin-rdv-time,
.admin-rdv-client,
.admin-rdv-care,
.admin-rdv-status {
    display: block;
    line-height: 1.25;
}

.admin-rdv-time {
    font-size: 0.78rem;
    font-weight: 900;
    opacity: 0.95;
}

.admin-rdv-client {
    font-size: 0.88rem;
    font-weight: 900;
    margin-top: 3px;
}

.admin-rdv-care {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-top: 3px;
}

.admin-rdv-status {
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.9;
    margin-top: 5px;
    text-transform: uppercase;
}

/* ===== PRISE DE RENDEZ-VOUS ===== */

.appointment-page h2 {
    text-align: center;
}

.appointment-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 24px;
}

.appointment-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(110, 92, 112, 0.14);
    background: rgba(255, 250, 251, 0.72);
    color: var(--taupe-soft);
    font-weight: 800;
}

.appointment-steps li.is-current {
    border-color: rgba(95, 111, 105, 0.38);
    background: linear-gradient(135deg, rgba(232, 217, 223, 0.9), rgba(255, 250, 251, 0.96));
    color: var(--plum-dark);
}

.appointment-steps li.is-complete {
    border-color: rgba(95, 141, 117, 0.28);
    background: rgba(132, 149, 142, 0.16);
    color: #4f7b64;
}

.appointment-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(110, 92, 112, 0.14);
    color: inherit;
}

.appointment-step-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.appointment-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 20px;
}

.appointment-panel {
    background: rgba(255, 250, 251, 0.74);
    border: 1px solid rgba(110, 92, 112, 0.12);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(22, 16, 20, 0.08);
}

.appointment-panel h3 {
    margin-bottom: 16px;
}

.care-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
}

.care-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(250, 246, 246, 1) 0%, rgba(237, 229, 232, 0.95) 100%);
    border: 1px solid rgba(110, 92, 112, 0.14);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.care-card:hover,
.care-card.selected {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(169, 134, 150, 0.45);
}

.care-card.selected {
    background: linear-gradient(135deg, rgba(232, 217, 223, 1), rgba(250, 246, 246, 0.98));
}

.care-card-title {
    display: block;
    color: var(--plum-dark);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.care-card-meta {
    display: block;
    color: var(--taupe-soft);
    font-weight: 700;
    margin-bottom: 4px;
}

.care-card-price {
    display: block;
    color: #8d6778;
    font-weight: 800;
}

.formation-list {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.formation-card {
    background: rgba(250, 246, 246, 0.98);
    border: 1px solid rgba(110, 92, 112, 0.12);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    color: var(--panel-text);
}

.formation-card h2 {
    margin-top: 0;
    color: var(--plum-dark);
    font-size: 1.45rem;
}

.formation-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.formation-meta div {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 250, 251, 0.72);
    border: 1px solid rgba(110, 92, 112, 0.1);
}

.formation-meta dt {
    color: var(--taupe-soft);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.formation-meta dd {
    margin: 4px 0 0;
    color: var(--panel-text);
}

.formation-registration-panel {
    margin-top: 28px;
}

.appointment-summary {
    background: rgba(232, 217, 223, 0.34);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    color: var(--panel-text);
}

.week-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.week-title {
    color: var(--plum-dark);
    font-weight: 800;
    text-align: center;
    background: rgba(232, 217, 223, 0.5);
    border-radius: 999px;
    padding: 10px 18px;
}

.week-nav-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    text-align: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6e5c70, #84958e);
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.week-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    opacity: 0.96;
}

.desktop-calendar-only {
    display: block;
}

.weekly-calendar-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
    border-radius: 18px;
    box-shadow: var(--shadow-light);
    background: rgba(255, 250, 251, 0.78);
    border: 1px solid rgba(110, 92, 112, 0.12);
}

.weekly-calendar {
    min-width: 860px;
    display: grid;
    grid-template-columns: 82px repeat(7, minmax(105px, 1fr));
}

.calendar-cell {
    min-height: 48px;
    border-right: 1px solid rgba(110, 92, 112, 0.12);
    border-bottom: 1px solid rgba(110, 92, 112, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    color: var(--panel-text);
    background: rgba(255, 250, 251, 0.74);
}

.calendar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-direction: column;
    gap: 2px;
    min-height: 64px;
    background: linear-gradient(180deg, rgba(232, 217, 223, 0.96), rgba(250, 246, 246, 0.96));
    color: var(--plum-dark);
    font-weight: 800;
}

.calendar-head.today {
    background: linear-gradient(180deg, rgba(132, 149, 142, 0.42), rgba(232, 217, 223, 0.84));
}

.calendar-time-head {
    z-index: 3;
}

.calendar-day-name {
    font-size: 0.92rem;
    line-height: 1.2;
}

.calendar-day-date {
    font-size: 0.85rem;
    color: var(--taupe-soft);
    line-height: 1.2;
}

.calendar-time {
    justify-content: flex-end;
    padding-right: 12px;
    font-weight: 800;
    color: var(--plum-dark);
    background: rgba(232, 217, 223, 0.38);
}

.calendar-slot {
    min-height: 44px;
}

.calendar-slot.unavailable {
    background: rgba(238, 231, 233, 0.58);
}

.calendar-slot.free {
    background: rgba(132, 149, 142, 0.16);
}

.calendar-slot-link {
    width: 100%;
    height: 100%;
    min-height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(95, 111, 105, 0.95), rgba(132, 149, 142, 0.95));
    color: var(--white);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(22, 16, 20, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.calendar-slot-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    opacity: 0.96;
}

.calendar-slot-empty {
    color: rgba(78, 71, 72, 0.3);
    font-weight: 700;
}

.mobile-slot-calendar {
    display: none;
}

.mobile-day-card {
    background: rgba(255, 250, 251, 0.9);
    border: 1px solid rgba(110, 92, 112, 0.12);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(22, 16, 20, 0.08);
}

.mobile-day-card.today {
    border-color: rgba(95, 111, 105, 0.36);
    background: linear-gradient(180deg, rgba(255, 250, 251, 0.96), rgba(232, 217, 223, 0.38));
}

.mobile-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-day-name {
    color: var(--plum-dark);
    font-weight: 800;
    font-size: 1rem;
}

.mobile-no-slot {
    color: var(--taupe-soft);
    font-size: 0.94rem;
    margin: 0;
}

.mobile-slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
}

.mobile-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(95, 111, 105, 0.96), rgba(132, 149, 142, 0.96));
    color: var(--white);
    box-shadow: 0 8px 18px rgba(22, 16, 20, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mobile-slot-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    opacity: 0.96;
}

.mobile-slot-btn span {
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.1;
}

.mobile-slot-btn small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.calendar-help {
    margin-top: 14px;
    font-size: 0.94rem;
    color: var(--taupe-soft);
}

.no-slot-actions {
    margin: 14px 0;
}

.privacy-note {
    margin: 12px 0 18px;
    color: var(--taupe-soft);
    font-size: 0.94rem;
}

.appointment-form-panel {
    scroll-margin-top: 24px;
}

.appointment-form textarea {
    min-height: 140px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Centrage accueil */

.welcome h2 {
    text-align: center;
}

.welcome h1 {
    text-align: center;
}

.welcome .article-image-wrap {
    text-align: center;
}

.welcome .article-image {
    display: inline-block;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .logo {
        max-width: 240px;
    }

    .container {
        width: 92%;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 84px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 104px);
        max-height: calc(100dvh - 104px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        border-radius: 18px;
        z-index: 2000;
        background: linear-gradient(180deg, rgba(78, 65, 79, 0.98) 0%, rgba(90, 74, 93, 0.98) 55%, rgba(95, 111, 105, 0.98) 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav .container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .menu-root {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 8px;
        gap: 6px;
    }

    .menu-root > li {
        margin: 0;
        width: 100%;
        border-radius: 14px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(255, 255, 255, 0.065);
    }

    .main-nav a,
    .menu-title,
    .submenu-title {
        padding: 13px 14px;
        border-radius: 0;
        white-space: normal;
        line-height: 1.35;
    }

    .menu-root > li > a,
    .menu-root > li > .menu-title {
        font-size: 1rem;
        font-weight: 800;
        color: var(--white);
        background: rgba(255, 255, 255, 0.06);
    }

    .menu-root > li > a::before {
        content: "• ";
        opacity: 0.7;
    }

    .menu-root > li.has-submenu > .menu-title::before {
        content: "▾ ";
        opacity: 0.8;
    }

    .main-nav a:hover,
    .main-nav a.is-current,
    .has-submenu:hover > .menu-title,
    .has-submenu:hover > .submenu-title {
        transform: none;
        background-color: rgba(255, 255, 255, 0.12);
    }

    .submenu {
        display: block;
        position: static;
        min-width: 100%;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        border: none;
        background: rgba(255, 255, 255, 0.045);
    }

    .submenu-rubriques {
        position: static;
        top: auto;
        left: auto;
        min-width: 100%;
    }

    .submenu-rubriques > li {
        position: static;
        margin: 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .submenu-rubriques .submenu-title {
        color: rgba(255, 255, 255, 0.94);
        padding: 12px 14px 12px 28px;
        font-size: 0.95rem;
        font-weight: 800;
        background: rgba(255, 255, 255, 0.035);
    }

    .submenu-rubriques .submenu-title::before {
        content: "— ";
        opacity: 0.65;
    }

    .submenu-rubriques > li:hover > .submenu-title {
        background: rgba(255, 255, 255, 0.09);
        color: var(--white);
    }

    .submenu-articles {
        position: static;
        top: auto;
        left: auto;
        min-width: 100%;
        background: rgba(0, 0, 0, 0.08);
    }

    .submenu-articles li {
        margin: 0;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.045);
    }

    .submenu-articles a {
        color: rgba(255, 255, 255, 0.9);
        padding: 11px 14px 11px 46px;
        font-size: 0.92rem;
        line-height: 1.35;
        background: transparent;
    }

    .submenu-articles a::before {
        content: "› ";
        opacity: 0.7;
    }

    .submenu-articles a:hover {
        background: rgba(255, 255, 255, 0.10);
        color: var(--white);
    }

    .admin-menu {
        flex-direction: column;
    }

    .admin-btn {
        text-align: center;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-top-nav-inner {
        width: 92%;
        padding: 9px 0;
    }

    .admin-top-nav a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .welcome,
    .articles-preview,
    .article-detail {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .editor-preview {
        padding: 14px;
    }

    .editor-preview-image {
        max-height: 180px;
    }

    .care-list {
        grid-template-columns: 1fr;
    }

    .appointment-panel {
        padding: 16px;
    }

    .appointment-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .week-toolbar {
        grid-template-columns: 1fr;
    }

    .week-title {
        order: -1;
        border-radius: 16px;
    }

    .desktop-calendar-only {
        display: none;
    }

    .mobile-slot-calendar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 18px;
    }

    .calendar-help {
        font-size: 0.9rem;
    }

    .admin-week-calendar {
        min-width: 880px;
        grid-template-columns: 70px repeat(7, minmax(115px, 1fr));
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .responsive-table {
        display: block;
        overflow: visible;
        white-space: normal;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin: 14px 0;
        padding: 14px;
        border: 1px solid rgba(110, 92, 112, 0.12);
        border-radius: 16px;
        background: rgba(255, 250, 251, 0.92);
        box-shadow: 0 8px 18px rgba(22, 16, 20, 0.08);
    }

    .responsive-table td {
        display: grid;
        grid-template-columns: minmax(105px, 38%) 1fr;
        gap: 10px;
        align-items: start;
        padding: 8px 0;
        border-bottom: 1px solid rgba(110, 92, 112, 0.09);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    .responsive-table td::before {
        content: attr(data-label);
        color: var(--plum-dark);
        font-weight: 900;
    }

    .formation-card {
        padding: 16px;
    }

    .formation-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .main-nav {
        top: 80px;
        right: 10px;
        left: 10px;
        max-height: calc(100vh - 96px);
        max-height: calc(100dvh - 96px);
        border-radius: 16px;
    }

    .menu-root {
        padding: 7px;
    }

    .main-nav a,
    .menu-title,
    .submenu-title {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .submenu-rubriques .submenu-title {
        padding-left: 24px;
    }

    .submenu-articles a {
        padding-left: 38px;
    }

    .mobile-slot-list {
        grid-template-columns: 1fr;
    }

    .appointment-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .appointment-steps li {
        min-height: 42px;
    }

    .responsive-table td {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .mobile-slot-btn {
        min-height: 52px;
    }

    .week-nav-btn,
    .admin-btn {
        width: 100%;
    }
}
