@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --background: #f4f5f7;
    --surface: #ffffff;
    --surface-secondary: #f8f8fa;

    --text: #171719;
    --text-muted: #66666d;

    --border: #dedee3;
    --border-hover: #b7b7bd;

    --primary: #171719;
    --primary-hover: #303034;

    --accent-yellow: #f7b731;
    --accent-yellow-hover: #ffc94f;
    --accent-yellow-soft: #fff7df;
    --accent-yellow-dark: #9a6500;

    --accent-green: #00a896;
    --accent-green-hover: #008f80;
    --accent-green-soft: #e6f7f4;

    --danger: #b42318;
    --danger-background: #fef3f2;

    --success: #027a48;
    --success-background: #ecfdf3;

    --radius: 10px;
    --radius-small: 8px;

    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --focus-shadow: 0 0 0 3px rgba(23, 23, 25, 0.1);
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    color: var(--text);
    background: var(--background);
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   ÉLÉMENTS COMMUNS
   ========================================================= */

.eyebrow {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    color: #ffffff;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-hover);
}

.button-secondary {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--surface-secondary);
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: var(--radius-small);
    line-height: 1.5;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-background);
}

.alert-success {
    color: var(--success);
    background: var(--success-background);
}

.error-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.error-list li + li {
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   CHAMPS DE FORMULAIRE
   ========================================================= */

.form-group {
    display: grid;
    align-content: start;
    align-self: start;
    gap: 8px;
    min-width: 0;
}

.form-group label,
.availability-details label {
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.admin-form input,
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="date"],
.profile-form textarea {
    width: 100%;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
}

.form-group input,
.admin-form input,
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="date"] {
    height: 44px;
    min-height: 44px;
    padding: 10px 12px;
}

.profile-form textarea {
    min-height: 100px;
    padding: 11px 12px;
    line-height: 1.5;
    resize: vertical;
}

.form-group input:focus,
.admin-form input:focus,
.profile-form input:focus,
.profile-form textarea:focus {
    border-color: var(--text);
    box-shadow: var(--focus-shadow);
}

.form-help {
    min-height: 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.form-actions,
.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-actions {
    margin-top: 8px;
}

.profile-form-actions {
    padding-bottom: 30px;
}

/* =========================================================
   PAGE DE CONNEXION
   ========================================================= */

.page-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    margin-bottom: 8px;
    font-size: 30px;
}

.auth-header p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-form,
.admin-form {
    display: grid;
    gap: 20px;
}

.auth-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* =========================================================
   EN-TÊTE ET CONTENEUR ADMIN
   ========================================================= */

.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.admin-header-content {
    display: flex;
    width: min(1200px, calc(100% - 48px));
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    padding: 18px 0;
}

.admin-header h1 {
    margin-bottom: 0;
    font-size: 24px;
}

.admin-account {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.admin-account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-account-actions form {
    margin: 0;
}

.admin-container {
    width: min(1200px, calc(100% - 48px));
    margin: 40px auto;
}

/* =========================================================
   TABLEAU DE BORD
   ========================================================= */

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-heading h2 {
    margin-bottom: 6px;
    font-size: 28px;
}

.dashboard-heading p {
    margin-bottom: 0;
    color: var(--text-muted);
}

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

.statistic-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.statistic-label {
    color: var(--text-muted);
    font-size: 14px;
}

.statistic-value {
    font-size: 34px;
}

.empty-state {
    margin-top: 28px;
    padding: 50px 24px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* =========================================================
   CARTES ET PAGES ADMIN
   ========================================================= */

.form-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card-small {
    max-width: 650px;
    margin: 0 auto;
}

.form-page-heading {
    margin-bottom: 26px;
}

.form-page-heading h2 {
    margin-bottom: 8px;
}

.form-page-heading p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.admin-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-list-item {
    padding: 18px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.admin-list-item > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-account-details {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.admin-account-details div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-account-details dt,
.admin-account-details dd {
    font-size: 13px;
}

.admin-account-details dt {
    color: var(--text-muted);
}

.admin-account-details dd {
    margin: 0;
    text-align: right;
}

/* =========================================================
   FORMULAIRE DE PROFIL
   ========================================================= */

.profile-form {
    display: grid;
    gap: 24px;
}

.form-section {
    box-shadow: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.checkbox-card {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    cursor: pointer;
}

.checkbox-card:hover {
    border-color: var(--border-hover);
}

.checkbox-card input,
.switch-line input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
}

.form-fieldset {
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.form-fieldset legend {
    margin-bottom: 14px;
    font-weight: 700;
}

.availability-list {
    display: grid;
    gap: 16px;
}

.availability-item {
    padding: 18px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}

.availability-details {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.availability-details[hidden] {
    display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
    .admin-account-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-account-actions .button {
        width: 100%;
    }

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

@media (max-width: 800px) {
    .form-grid,
    .checkbox-grid,
    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .profile-form-actions .button {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .admin-header-content,
    .admin-account,
    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header-content,
    .admin-container {
        width: min(100% - 32px, 1200px);
    }

    .admin-container {
        margin-top: 24px;
    }

    .admin-account {
        gap: 12px;
    }

    .admin-account .button {
        width: 100%;
    }

    .form-card {
        padding: 22px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }
}

/* =========================================================
   LISTE DES PROFILS
   ========================================================= */

.profiles-section {
    margin-top: 32px;
}

.profiles-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.profiles-toolbar h2 {
    margin-bottom: 6px;
}

.profiles-toolbar p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.profiles-search {
    display: grid;
    width: min(100%, 360px);
    gap: 8px;
}

.profiles-search label {
    font-size: 14px;
    font-weight: 700;
}

.profiles-search input {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
}

.profiles-search input:focus {
    border-color: var(--text);
    box-shadow: var(--focus-shadow);
}

.profiles-list {
    display: grid;
    gap: 16px;
}

.profile-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.profile-card[hidden] {
    display: none;
}

.profile-card-summary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    color: var(--text);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.profile-card-summary:hover {
    background: var(--surface-secondary);
}

.profile-card-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.profile-card-identity {
    min-width: 220px;
}

.profile-card-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.profile-identifier {
    font-size: 14px;
    letter-spacing: 0.04em;
}

.profile-card-identity h3 {
    margin-bottom: 0;
    font-size: 19px;
}

.profile-card-contact {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: right;
}

.profile-card-arrow {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 12px;
    transition: transform 160ms ease;
}

.profile-card-summary[aria-expanded="true"]
.profile-card-arrow {
    transform: rotate(180deg);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-public {
    color: var(--success);
    background: var(--success-background);
}

.status-private {
    color: var(--text-muted);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
}

.profile-card-details {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.profile-card-details[hidden] {
    display: none;
}

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

.profile-detail-section {
    padding: 18px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.profile-detail-section h4 {
    margin: 0 0 14px;
    font-size: 15px;
}

.profile-detail-section p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.profile-detail-full {
    grid-column: 1 / -1;
}

.profile-data-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-data-list > div {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
    gap: 14px;
}

.profile-data-list dt {
    color: var(--text-muted);
    font-size: 13px;
}

.profile-data-list dd {
    margin: 0;
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
}

.profile-long-text {
    white-space: normal;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.button-danger {
    color: #ffffff;
    background: var(--danger);
}

.button-danger:hover {
    filter: brightness(0.92);
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 800px) {
    .profiles-toolbar,
    .profile-card-main {
        align-items: stretch;
        flex-direction: column;
    }

    .profiles-search {
        width: 100%;
    }

    .profile-card-contact {
        text-align: left;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .profile-detail-full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .profile-card-summary {
        align-items: flex-start;
        padding: 18px;
    }

    .profile-card-details {
        padding: 16px;
    }

    .profile-data-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .profile-data-list dd {
        text-align: left;
    }

    .profile-actions {
        display: grid;
    }

    .profile-actions .button {
        width: 100%;
    }
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.profile-actions form {
    margin: 0;
}

.status-archived {
    color: #6941c6;
    background: #f4f3ff;
}

@media (max-width: 800px) {
    .dashboard-actions {
        width: 100%;
        justify-content: stretch;
    }

    .dashboard-actions .button {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .dashboard-actions {
        display: grid;
    }

    .dashboard-actions .button,
    .profile-actions form,
    .profile-actions form .button {
        width: 100%;
    }
}

/* =========================================================
   PARTIE PUBLIQUE
   ========================================================= */

.public-page {
    min-height: 100vh;
    background: var(--surface-secondary);
}

.public-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   EN-TÊTE PUBLIC
   ========================================================= */

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(255 255 255 / 94%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.public-header-content {
    display: flex;
    width: min(1120px, calc(100% - 40px));
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.public-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.public-brand-logo {
    display: block;
    height: 48px;
    width: auto;
}

.public-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-navigation-link {
    padding: 9px 12px;
    color: var(--text-muted);
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.public-navigation-link:hover,
.public-navigation-link.is-active {
    color: var(--text);
    background: var(--surface-secondary);
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.public-hero {
    margin-top: 120px;
    padding: 80px 0 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.public-hero h1 {
    max-width: 760px;
    margin: 10px 0 20px;
    font-size: clamp(36px, 7vw, 62px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.public-hero-description {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
}

/* =========================================================
   LISTE DES PROFILS
   ========================================================= */

.public-profiles-section {
    padding: 64px 0;
}

.public-profiles-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.public-profiles-heading h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.public-profiles-heading p {
    margin: 0;
    color: var(--text-muted);
}

.public-profiles-search {
    width: min(100%, 360px);
}

.public-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

/* =========================================================
   CARTE DE PROFIL
   ========================================================= */

.public-profile-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgb(16 24 40 / 5%);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.public-profile-card:hover {
    border-color: rgb(16 24 40 / 20%);
    box-shadow: 0 16px 40px rgb(16 24 40 / 9%);
    transform: translateY(-2px);
}

.public-profile-card[hidden] {
    display: none;
}

.public-profile-card-main {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.public-profile-header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

/* =========================================================
   AVATAR
   ========================================================= */

.public-profile-avatar {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--surface);
    background: var(--text);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

/* =========================================================
   IDENTITÉ DU PROFIL
   ========================================================= */

.public-profile-identity {
    min-width: 0;
}

.public-profile-identifier {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-profile-name {
    overflow: hidden;
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-profile-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================================
   BOUTON VOIR LE PROFIL
   ========================================================= */

.public-profile-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 14px;
    color: var(--text);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.public-profile-view-button:hover {
    color: var(--surface);
    background: var(--text);
    border-color: var(--text);
}

.public-profile-view-button:active {
    transform: translateY(1px);
}

.public-profile-view-button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

/* =========================================================
   MODALE
   ========================================================= */

.public-profile-modal {
    width: min(720px, calc(100% - 32px));
    max-width: 720px;
    max-height: min(820px, calc(100vh - 40px));
    padding: 0;
    overflow: hidden;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 32px 100px rgb(16 24 40 / 28%);
}

.public-profile-modal[open] {
    animation: public-modal-appear 180ms ease-out;
}

.public-profile-modal::backdrop {
    background: rgb(16 24 40 / 58%);
    backdrop-filter: blur(4px);
    animation: public-backdrop-appear 180ms ease-out;
}

.public-profile-modal-panel {
    display: flex;
    max-height: min(820px, calc(100vh - 40px));
    flex-direction: column;
    overflow: hidden;
}

/* =========================================================
   EN-TÊTE DE LA MODALE
   ========================================================= */

.public-profile-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.public-profile-modal-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.public-profile-modal-avatar {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.public-profile-modal-header h2 {
    margin: 0 0 5px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.public-profile-modal-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.public-profile-modal-close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    color: var(--text-muted);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font: inherit;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.public-profile-modal-close:hover {
    color: var(--surface);
    background: var(--text);
    border-color: var(--text);
}

.public-profile-modal-close:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

/* =========================================================
   CONTENU DE LA MODALE
   ========================================================= */

.public-profile-modal-content {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.public-profile-section {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.public-profile-section:last-child {
    border-bottom: 0;
}

.public-profile-section h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
}

.public-profile-section p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.public-profile-long-text {
    overflow-wrap: anywhere;
    white-space: normal;
}

/* =========================================================
   ÉTIQUETTES
   ========================================================= */

.public-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-profile-tag {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--text);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.public-profile-muted {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* =========================================================
   DISPONIBILITÉS
   ========================================================= */

.public-availability-list {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 12px;
}

.public-availability-item {
    padding: 15px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.public-availability-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.public-availability-item p {
    font-size: 14px;
    line-height: 1.55;
}

/* =========================================================
   PIED DE LA MODALE
   ========================================================= */

.public-profile-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    background: var(--surface-secondary);
    border-top: 1px solid var(--border);
}

.public-profile-modal-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes public-modal-appear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes public-backdrop-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   ÉTAT VIDE
   ========================================================= */

.public-empty-state {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.public-empty-state[hidden] {
    display: none;
}

.public-empty-state h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.public-empty-state p {
    margin: 0;
    color: var(--text-muted);
}

/* =========================================================
   CONFIDENTIALITÉ
   ========================================================= */

.public-privacy-section {
    padding: 0 0 64px;
}

.public-privacy-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.public-privacy-card h2 {
    margin: 7px 0 0;
    font-size: 24px;
}

.public-privacy-card > p {
    align-self: center;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */

.public-footer {
    padding: 48px 0 24px;
    background: var(--text);
    color: var(--surface);
}

.public-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 48px;
    padding-bottom: 36px;
}

.public-footer-label {
    margin: 0 0 8px;
    color: rgb(255 255 255 / 65%);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-footer-intro h2 {
    margin: 0 0 14px;
    color: var(--surface);
    font-size: 28px;
    line-height: 1.2;
}

.public-footer-intro > p:last-child {
    max-width: 460px;
    margin: 0;
    color: rgb(255 255 255 / 72%);
    line-height: 1.7;
}

.public-footer h3 {
    margin: 0 0 14px;
    color: var(--surface);
    font-size: 14px;
    font-weight: 800;
}

.public-footer address {
    font-style: normal;
}

.public-footer-contact p {
    margin: 0 0 12px;
    color: rgb(255 255 255 / 72%);
    line-height: 1.6;
}

.public-footer a {
    color: var(--surface);
    text-decoration: none;
}

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

.public-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.public-footer-links a {
    margin-bottom: 10px;
    color: rgb(255 255 255 / 78%);
    font-size: 14px;
}

.public-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid rgb(255 255 255 / 14%);
}

.public-footer-bottom p {
    margin: 0;
    color: rgb(255 255 255 / 55%);
    font-size: 13px;
}

/* =========================================================
   TABLETTES
   ========================================================= */

@media (max-width: 900px) {
    .public-profiles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .public-profiles-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .public-profiles-search {
        width: 100%;
    }

    .public-privacy-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .public-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .public-footer-intro {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   MOBILES
   ========================================================= */

@media (max-width: 600px) {
    .public-container,
    .public-header-content {
        width: min(100% - 28px, 1120px);
    }

    .public-header-content {
        min-height: 64px;
    }

    .public-brand-logo {
        height: 38px;
    }

    .public-navigation-link {
        padding: 8px;
        font-size: 13px;
    }

    .public-hero {
        padding: 56px 0 46px;
    }

    .public-hero-description {
        font-size: 16px;
    }

    .public-profiles-section {
        padding: 44px 0;
    }

    .public-profile-card-main {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .public-profile-header {
        gap: 13px;
    }

    .public-profile-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .public-profile-name {
        font-size: 20px;
    }

    .public-profile-view-button {
        width: 100%;
    }

    .public-profile-modal {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .public-profile-modal-panel {
        max-height: calc(100vh - 20px);
    }

    .public-profile-modal-header {
        gap: 14px;
        padding: 20px;
    }

    .public-profile-modal-identity {
        align-items: flex-start;
        gap: 13px;
    }

    .public-profile-modal-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .public-profile-modal-header h2 {
        font-size: 22px;
    }

    .public-profile-modal-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .public-profile-section {
        padding: 21px 20px;
    }

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

    .public-profile-modal-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .public-profile-modal-footer .button {
        width: 100%;
    }

    .public-privacy-section {
        padding-bottom: 44px;
    }

    .public-privacy-card {
        padding: 24px;
    }

    .public-footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .public-footer {
        padding-top: 38px;
    }

    .public-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 28px;
    }

    .public-footer-intro {
        grid-column: auto;
    }

    .public-footer-intro h2 {
        font-size: 24px;
    }

    .public-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 420px) {
    .public-navigation-link:first-child {
        display: none;
    }

    .public-profile-card-main {
        padding: 18px;
    }

    .public-profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .public-profile-name {
        font-size: 19px;
    }

    .public-profile-meta {
        font-size: 13px;
    }

    .public-profile-modal {
        width: calc(100% - 12px);
        max-height: calc(100vh - 12px);
    }

    .public-profile-modal-panel {
        max-height: calc(100vh - 12px);
    }

    .public-profile-modal-header {
        padding: 17px;
    }

    .public-profile-modal-avatar {
        display: none;
    }

    .public-profile-section {
        padding: 19px 17px;
    }

    .public-profile-modal-footer {
        padding: 15px 17px;
    }
}

/* =========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .public-profile-card,
    .public-profile-view-button,
    .public-profile-modal[open],
    .public-profile-modal::backdrop {
        animation: none;
        transition: none;
    }

    .public-profile-card:hover {
        transform: none;
    }
}

/* =========================================================
   ACCUEIL PUBLIC
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.home-section {
    padding: 80px 0;
}

.home-section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.home-section-heading h2 {
    margin: 8px 0 16px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-section-heading > p:last-child {
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.home-card-label {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.home-button:hover {
    transform: translateY(-1px);
}

.home-button-primary {
    color: var(--surface);
    background: var(--text);
    border-color: var(--text);
}

.home-button-primary:hover {
    color: var(--text);
    background: transparent;
}

.home-button-secondary {
    color: var(--text);
    background: transparent;
    border-color: var(--border);
}

.home-button-secondary:hover {
    background: var(--surface-secondary);
    border-color: rgb(16 24 40 / 24%);
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.home-hero {
    padding: 88px 0 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    align-items: center;
    gap: 72px;
}

.home-hero-content h1 {
    max-width: 800px;
    margin: 10px 0 22px;
    font-size: clamp(42px, 7vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.home-hero-description {
    max-width: 690px;
    margin: 0;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-hero-card {
    padding: 30px;
    background: var(--text);
    color: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgb(16 24 40 / 20%);
}

.home-hero-card-label {
    display: block;
    margin-bottom: 16px;
    color: rgb(255 255 255 / 58%);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-card > p {
    margin: 0;
    font-size: 19px;
    line-height: 1.55;
}

.home-hero-card-links {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgb(255 255 255 / 16%);
}

.home-hero-card-links a {
    color: rgb(255 255 255 / 76%);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-hero-card-links a:hover {
    color: var(--surface);
}

/* =========================================================
   PRÉSENTATION DU SERVICE
   ========================================================= */

.home-service-section {
    background: var(--surface-secondary);
}

.home-service-introduction {
    max-width: 880px;
    margin-bottom: 34px;
}

.home-service-introduction p {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.65;
}

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

.home-audience-card {
    position: relative;
    min-width: 0;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-card-number {
    position: absolute;
    top: 28px;
    right: 30px;
    color: rgb(16 24 40 / 16%);
    font-size: 32px;
    font-weight: 850;
}

.home-audience-card h3 {
    max-width: 440px;
    margin: 0 0 14px;
    padding-right: 45px;
    font-size: 24px;
    line-height: 1.25;
}

.home-audience-card > p:not(.home-card-label) {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.home-text-link span {
    transition: transform 160ms ease;
}

.home-text-link:hover span {
    transform: translateX(4px);
}

/* =========================================================
   INFORMATIONS CLÉS
   ========================================================= */

.home-information-section {
    background: var(--surface);
}

.home-information-list {
    border-top: 1px solid var(--border);
}

.home-information-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: 60px;
    padding: 38px 0;
    border-bottom: 1px solid var(--border);
}

.home-information-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.home-information-title > span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.home-information-title h3 {
    margin: 5px 0 0;
    font-size: 21px;
    line-height: 1.35;
}

.home-information-content > p {
    margin: 0 0 16px;
    color: var(--text-muted);
    line-height: 1.75;
}

.home-information-content > p:last-child {
    margin-bottom: 0;
}

.home-subinformation {
    margin-top: 24px;
    padding: 22px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
}

.home-subinformation h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.home-subinformation p {
    margin: 0 0 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.home-external-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-external-link:hover {
    text-decoration: underline;
}

/* =========================================================
   INSCRIPTION
   ========================================================= */

.home-registration-section {
    background: var(--surface-secondary);
}

.home-training-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: 54px;
    margin-bottom: 24px;
    padding: 34px;
    color: var(--surface);
    background: var(--text);
    border-radius: var(--radius);
}

.home-training-card .home-card-label {
    color: rgb(255 255 255 / 58%);
}

.home-training-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
}

.home-training-content p {
    margin: 0 0 16px;
    color: rgb(255 255 255 / 72%);
    line-height: 1.7;
}

.home-training-content .home-button {
    margin-top: 8px;
}

.home-training-content .home-button-primary {
    color: var(--text);
    background: var(--surface);
    border-color: var(--surface);
}

.home-training-content .home-button-primary:hover {
    color: var(--surface);
    background: transparent;
}

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

.home-registration-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-registration-card h3 {
    margin: 0 0 22px;
    font-size: 23px;
}

.home-check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-muted);
    line-height: 1.6;
}

.home-check-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    content: "✓";
    color: var(--text);
    font-weight: 900;
}

.home-step-list,
.home-parent-steps {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-step-list li,
.home-parent-steps li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.home-step-list li > span,
.home-parent-steps li > span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.home-step-list p,
.home-parent-steps p {
    margin: 3px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.home-registration-note {
    margin: 24px 0 0;
    padding-top: 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.65;
}

/* =========================================================
   DOCUMENTS
   ========================================================= */

.home-documents-block {
    margin-top: 24px;
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-documents-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.7fr);
    gap: 40px;
    margin-bottom: 26px;
}

.home-documents-heading h3 {
    margin: 0;
    font-size: 24px;
}

.home-documents-heading > p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-document-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    color: var(--text);
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    text-decoration: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.home-document-card:hover {
    border-color: rgb(16 24 40 / 25%);
    box-shadow: 0 12px 28px rgb(16 24 40 / 8%);
    transform: translateY(-2px);
}

.home-document-type {
    margin-bottom: auto;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.home-document-card strong {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.4;
}

.home-document-card > span:last-child {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.home-documents-note {
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   PARENTS
   ========================================================= */

.home-parents-section {
    background: var(--surface);
}

.home-parents-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 70px;
    align-items: flex-start;
}

.home-parents-introduction h2 {
    margin: 8px 0 16px;
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-parents-introduction > p:not(.eyebrow) {
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.home-parent-process {
    padding: 30px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-parent-process h3 {
    margin: 0 0 22px;
    font-size: 22px;
}

.home-parent-steps li > span {
    background: var(--surface);
}

.home-warning-card {
    margin-top: 32px;
    padding: 28px 30px;
    background: var(--surface-secondary);
    border-left: 4px solid var(--text);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.home-warning-card > p:not(.home-card-label) {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.7;
}

.home-warning-card > p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */

.home-contact-section {
    padding: 0 0 80px;
    background: var(--surface);
}

.home-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
    padding: 34px;
    color: var(--surface);
    background: var(--text);
    border-radius: var(--radius);
}

.home-contact-card h2 {
    margin: 7px 0 12px;
    font-size: 30px;
}

.home-contact-card .eyebrow {
    color: rgb(255 255 255 / 56%);
}

.home-contact-card p:last-child {
    margin: 0;
    color: rgb(255 255 255 / 70%);
    line-height: 1.65;
}

.home-contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.home-contact-actions a {
    color: var(--surface);
    font-size: 17px;
    font-weight: 750;
    text-decoration: none;
}

.home-contact-actions a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-hero-card {
        max-width: 620px;
    }

    .home-information-card,
    .home-training-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .home-parents-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 700px) {
    .home-section {
        padding: 58px 0;
    }

    .home-audience-grid,
    .home-registration-grid {
        grid-template-columns: 1fr;
    }

    .home-documents-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-contact-card {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 600px) {
    html {
        scroll-behavior: auto;
    }

    .home-hero {
        padding: 58px 0 50px;
    }

    .home-hero-content h1 {
        font-size: clamp(40px, 13vw, 54px);
    }

    .home-hero-description {
        font-size: 17px;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-button {
        width: 100%;
    }

    .home-hero-card,
    .home-audience-card,
    .home-registration-card,
    .home-documents-block,
    .home-parent-process {
        padding: 24px;
    }

    .home-information-card {
        padding: 30px 0;
    }

    .home-training-card {
        padding: 26px;
    }

    .home-documents-grid {
        grid-template-columns: 1fr;
    }

    .home-document-card {
        min-height: 130px;
    }

    .home-contact-section {
        padding-bottom: 58px;
    }

    .home-contact-card {
        padding: 26px;
    }

    .home-contact-card h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-button,
    .home-document-card,
    .home-text-link span {
        transition: none;
    }

    .home-button:hover,
    .home-document-card:hover {
        transform: none;
    }
}

/* =========================================================
   PERSONNALISATION COULEURS PUBLIQUES
   Jaune : #f7b731
   Vert  : #00a896
   ========================================================= */

/* Libellés et navigation */

.public-page .eyebrow,
.public-profiles-section .eyebrow,
.home-section .eyebrow {
    color: var(--accent-green);
}

.public-brand-label::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    background: var(--accent-yellow);
    border-radius: 50%;
    content: "";
}

.public-navigation-link.is-active {
    color: var(--accent-green);
    background: var(--accent-green-soft);
}

.public-navigation-link:hover {
    color: var(--accent-green);
}

/* Page publique des profils */

.public-hero {
    position: relative;
    overflow: hidden;
}

.public-hero::after {
    position: absolute;
    top: -110px;
    right: max(30px, calc((100vw - 1120px) / 2));
    width: 250px;
    height: 250px;
    background: #f7b731;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.public-hero .public-container {
    position: relative;
    z-index: 1;
}

.public-profile-avatar {
    color: #ffffff;
    background: var(--accent-green);
}

.public-profile-card:nth-child(even) .public-profile-avatar {
    color: var(--text);
    background: var(--accent-yellow);
}

.public-profile-card:hover {
    border-color: rgb(0 168 150 / 34%);
    box-shadow: 0 16px 40px rgb(0 168 150 / 12%);
}

.public-profile-identifier {
    color: var(--accent-green);
}

.public-profile-card:nth-child(even) .public-profile-identifier {
    color: var(--accent-yellow-dark);
}

.public-profile-view-button {
    color: var(--accent-green);
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 24%);
}

.public-profile-view-button:hover {
    color: #ffffff;
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.public-profile-view-button:focus-visible,
.public-profile-modal-close:focus-visible {
    outline-color: var(--accent-green);
}

.public-profile-modal-avatar {
    background: var(--accent-green);
}

.public-profile-modal-header {
    border-top: 5px solid var(--accent-yellow);
}

.public-profile-modal-close:hover {
    color: #ffffff;
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.public-profile-tag:nth-child(odd) {
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 20%);
}

.public-profile-tag:nth-child(even) {
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 25%);
}

.public-availability-item:nth-child(odd) {
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 18%);
}

.public-availability-item:nth-child(even) {
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 22%);
}

.public-privacy-card {
    border-top: 4px solid var(--accent-green);
}

/* Accueil : boutons */

.home-button-primary {
    color: var(--text);
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.home-button-primary:hover {
    color: var(--text);
    background: var(--accent-yellow-hover);
    border-color: var(--accent-yellow-hover);
}

.home-button-secondary {
    color: var(--accent-green);
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 25%);
}

.home-button-secondary:hover {
    color: #ffffff;
    background: var(--accent-green);
    border-color: var(--accent-green);
}

/* Accueil : hero */

.home-hero-card {
    color: #ffffff;
    background: var(--accent-green);
    box-shadow: 0 24px 70px rgb(0 168 150 / 24%);
}

.home-hero-card-label {
    color: rgb(255 255 255 / 72%);
}

.home-hero-card-links {
    border-top-color: rgb(255 255 255 / 24%);
}

.home-hero-card-links a {
    color: rgb(255 255 255 / 84%);
}

/* Accueil : cartes parents / jeunes */

.home-audience-card:first-child {
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 35%);
    border-top: 4px solid var(--accent-yellow);
}

.home-audience-card:last-child {
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 28%);
    border-top: 4px solid var(--accent-green);
}

.home-audience-card:first-child .home-card-number {
    color: rgb(247 183 49 / 42%);
}

.home-audience-card:last-child .home-card-number {
    color: rgb(0 168 150 / 30%);
}

.home-audience-card:first-child .home-text-link:hover {
    color: var(--accent-yellow-dark);
}

.home-audience-card:last-child .home-text-link:hover {
    color: var(--accent-green);
}

/* Accueil : informations */

.home-information-card:nth-child(odd) .home-information-title > span {
    color: var(--text);
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 35%);
}

.home-information-card:nth-child(even) .home-information-title > span {
    color: var(--accent-green);
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 28%);
}

.home-subinformation {
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 20%);
}

.home-subinformation:nth-of-type(even) {
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 25%);
}

.home-external-link {
    color: var(--accent-green);
}

/* Accueil : inscription */

.home-training-card {
    position: relative;
    overflow: hidden;
}

.home-training-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: var(--accent-yellow);
    content: "";
}

.home-training-content .home-button-primary {
    color: var(--text);
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.home-training-content .home-button-primary:hover {
    color: var(--text);
    background: var(--accent-yellow-hover);
    border-color: var(--accent-yellow-hover);
}

.home-check-list li::before {
    color: var(--accent-green);
}

.home-step-list li:nth-child(odd) > span,
.home-parent-steps li:nth-child(odd) > span {
    color: var(--text);
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 30%);
}

.home-step-list li:nth-child(even) > span,
.home-parent-steps li:nth-child(even) > span {
    color: var(--accent-green);
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 25%);
}

/* Accueil : documents */

.home-document-card:nth-child(odd) {
    background: var(--accent-yellow-soft);
    border-color: rgb(247 183 49 / 25%);
}

.home-document-card:nth-child(even) {
    background: var(--accent-green-soft);
    border-color: rgb(0 168 150 / 22%);
}

.home-document-card:nth-child(odd) .home-document-type {
    color: var(--accent-yellow-dark);
}

.home-document-card:nth-child(even) .home-document-type {
    color: var(--accent-green);
}

.home-document-card:hover {
    border-color: rgb(0 168 150 / 28%);
    box-shadow: 0 12px 28px rgb(0 168 150 / 10%);
}

/* Accueil : parents, contact et footer */

.home-warning-card {
    background: var(--accent-yellow-soft);
    border-left-color: var(--accent-yellow);
}

.home-contact-card {
    color: #ffffff;
    background: var(--accent-green);
    box-shadow: 0 18px 45px rgb(0 168 150 / 18%);
}

.home-contact-card .eyebrow {
    color: rgb(255 255 255 / 72%);
}

.public-footer-label {
    color: var(--accent-yellow);
}

.public-footer a:hover {
    color: var(--accent-yellow);
}

/* Ajustements mobiles */

@media (max-width: 600px) {
    .public-hero::after {
        top: -90px;
        right: -90px;
        width: 210px;
        height: 210px;
    }
}


hero-content h2 {
  font-size: 2rem;
  margin-bottom: 37px;
  line-height: 1.1;
  color: var(--light-text-color);
  text-align: left;
}

