/* assets/css/layout.css - Mise en page propre au site (en-têtes de pages, connexion, conteneurs de formulaire, menu) : uniquement les jetons de la charte */

.main-content {
    flex: 1;
    padding-top: var(--r-espace-6);
    padding-bottom: var(--r-espace-7);
}

/* Logo et menu */
.logo-img { height: 40px; width: auto; }
.nav-menu .nav-bouton {
    display: flex;
    align-items: center;
    gap: var(--r-espace-2);
    min-height: var(--r-cible);
    width: 100%;
    padding: 0 var(--r-espace-3);
    border: 0;
    border-radius: var(--r-rayon);
    background: transparent;
    color: var(--r-terra-fonce);
    font: inherit;
    font-weight: var(--r-graisse-moyenne);
    cursor: pointer;
    transition: background var(--r-duree), color var(--r-duree);
}
.nav-menu .nav-bouton:hover { background: var(--r-terra-pale); color: var(--r-terra-survol); }
@media (max-width: 900px) { .nav-menu .nav-bouton { min-height: 48px; } }

/* En-têtes de pages (communauté, tableau de bord) */
.community-header, .dashboard-header { margin-bottom: var(--r-espace-6); }
.community-intro, .dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--r-espace-5);
}
.community-text, .dashboard-intro { flex: 1 1 18rem; }
.community-intro h1, .dashboard-intro h1 {
    display: flex;
    align-items: center;
    gap: var(--r-espace-3);
    margin-bottom: var(--r-espace-2);
}
.community-intro p, .dashboard-intro p { color: var(--r-texte-doux); font-size: var(--r-taille-lg); }
.community-intro .search-form { flex: 1 1 22rem; max-width: 34rem; }
.dashboard-search, .categories-filter { margin-bottom: var(--r-espace-5); }
.dashboard-search {
    padding: var(--r-espace-5);
    background: var(--r-surface);
    border-radius: var(--r-rayon-lg);
    box-shadow: var(--r-ombre-1);
}
.recipes-count { margin-bottom: var(--r-espace-4); }
.dashboard-section { margin-bottom: var(--r-espace-7); }
.dashboard-section > h2, .dashboard-section > .section-header > h2 {
    display: flex;
    align-items: center;
    gap: var(--r-espace-3);
    padding-bottom: var(--r-espace-2);
    margin-bottom: var(--r-espace-5);
    border-bottom: 2px solid var(--r-ocre);
}
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--r-espace-3);
    margin-bottom: var(--r-espace-6);
}

@media (max-width: 480px) {
    .community-intro h1, .dashboard-intro h1 { font-size: var(--r-taille-2xl); }
    .community-intro p, .dashboard-intro p { font-size: var(--r-taille-md); }
    .logo-img { height: 32px; }
}

/* Connexion, inscription et formulaires en carte */
.auth-form-container, .form-container {
    margin: 0 auto;
    padding: var(--r-espace-6);
    background: var(--r-surface);
    border-radius: var(--r-rayon-lg);
    box-shadow: var(--r-ombre-1);
}
.auth-form-container { max-width: 32rem; }
.form-container { max-width: 70rem; }
.auth-form-container h1, .form-container > h1 { margin-bottom: var(--r-espace-5); text-align: center; }
.auth-form { margin-top: var(--r-espace-5); }
.auth-divider {
    position: relative;
    margin: var(--r-espace-5) 0;
    text-align: center;
}
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--r-filet);
}
.auth-divider span {
    position: relative;
    padding: 0 var(--r-espace-4);
    background: var(--r-surface);
    color: var(--r-texte-doux);
}
.auth-link { margin: var(--r-espace-5) auto 0; text-align: center; color: var(--r-texte-doux); }
.auth-link a { font-weight: var(--r-graisse-forte); }

@media (max-width: 480px) {
    .auth-form-container, .form-container { padding: var(--r-espace-5) var(--r-espace-4); }
}

.inline-form { display: inline-flex; margin: 0; }
