/* ==========================================================
   AERID — LAYOUT
   Responsabilité : dimensions, centrage, responsive.
   ========================================================== */

main {
    width: 100%;
    min-width: 0;
}

.w,
.section-page {
    width:
        min(
            1200px,
            calc(100% - 40px)
        );

    margin-inline: auto;
}

.section-page {
    padding:
        42px 0 64px;
}

.hero {
    width: 100%;

    margin-inline: auto;

    text-align: center;
}

.hero h1,
.section-page > h1,
.section-page > h2 {
    text-align: center;
}

/* Formulaires */

.fm {
    width:
        min(
            720px,
            calc(100% - 40px)
        );

    margin:
        40px auto 64px;

    padding: 0;
}

.fm > h1,
.fm > h2,
.fm > p {
    text-align: center;
}

.fm form,
.content-form {
    width: 100%;

    margin-inline: auto;
}

.fm label,
.content-form label {
    display: block;

    margin:
        15px 0 6px;

    text-align: left;

    font-weight:
        400 !important;
}

.fm input:not([type="checkbox"]):not([type="radio"]),
.fm textarea,
.fm select,
.content-form input:not([type="checkbox"]):not([type="radio"]),
.content-form textarea,
.content-form select {
    width: 100%;
    max-width: 100%;

    min-height: 44px;

    margin:
        0 0 8px;

    padding:
        10px 12px;

    border:
        1px solid
        var(--border);

    border-radius: 8px;

    font: inherit;
    font-weight:
        400 !important;
}

.fm textarea,
.content-form textarea {
    min-height: 140px;

    resize: vertical;
}

.fm .btn,
.content-form .btn {
    width: auto;

    margin:
        20px auto 0;

    display: flex;
}

/* Grilles */

.grid,
.content-grid,
.team-grid,
.gallery-grid {
    width: 100%;

    margin-inline: auto;
}

.content-grid {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                min(260px, 100%),
                1fr
            )
        );
}

/* Navigation secondaire */

.tabs,
.content-tabs {
    justify-content: center;
}

/* Tables */

table {
    width: 100%;

    margin-inline: auto;
}

/* Images */

img {
    max-width: 100%;
}

@media (max-width: 760px) {
    .w,
    .section-page,
    .fm {
        width:
            min(
                100% - 28px,
                1200px
            );
    }

    .section-page {
        padding:
            30px 0 48px;
    }

    .grid,
    .content-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.auth-oauth {
    display: grid;
    gap: 14px;

    margin-bottom: 18px;
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    gap: 10px;
    margin: 0;

    background: #fff;
    color: #202124;

    border: 1px solid #cfd3d7;
}

.auth-google:hover {
    background: #f5f6f7;
}

.auth-google .fa-google {
    font-size: 1.05rem;
}

.auth-separator {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--muted, #68717a);

    font-size: .85rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';

    flex: 1;

    height: 1px;

    background:
        var(--border, #d9dde1);
}

/* ---------------------------------------------------------
   Profile actions
   --------------------------------------------------------- */

.profile-action-links {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin: 22px 0 30px;
}

.profile-action {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 11px 18px;

    border: 1px solid #087f87;
    border-radius: 9px;

    background: #087f87;
    color: #fff;

    text-decoration: none;
    font-weight: 650;

    transition:
        transform .15s ease,
        filter .15s ease;
}

.profile-action:hover {
    transform: translateY(-1px);
    filter: brightness(.94);
}

.profile-action i {
    width: 18px;

    text-align: center;
    font-size: 1rem;
}

.profile-save-action,
.logout-box .btn {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 11px 18px;
}

.profile-save-action i,
.logout-box .btn i {
    width: 18px;
    text-align: center;
}

@media (max-width: 620px) {
    .profile-action-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-action {
        width: 100%;
    }
}
/* UI polish: profile form actions + services */

.profile-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 18px;
}

.profile-form-actions .btn {
    width: auto;
    min-width: 156px;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;
    padding: 11px 18px;
    margin-top: 0;
}

.profile-form-actions .btn i {
    width: 18px;
    text-align: center;
}

.services-page {
    width: min(1100px, 100%);
    margin-right: auto;
    margin-left: auto;

    text-align: center;
}

.services-page h1 {
    margin-bottom: 12px;
}

.services-page > p {
    margin:
        0
        auto
        32px;
}

.services-page .carousel-layout {
    width: 100%;
    max-width: 1100px;

    margin:
        36px
        auto
        0;
}

.services-page .service-carousel {
    justify-content: center;
    justify-items: center;

    gap: 28px;
}

.services-page .service-carousel .content-card {
    margin: 0;

    text-align: center;
}

@media (max-width: 620px) {
    .profile-form-actions {
        gap: 10px;
    }
}

/* AERID_CATALOG_IMAGES_START */

/* Epicerie, goodies et autres contenus */
.section-page > .content-grid > .content-card > img,
.services-page .service-carousel > .content-card > img {
    display: block;
    width: 100%;
    height: 260px;
    box-sizing: border-box;
    padding: 12px;
    margin: 0;

    object-fit: contain;
    object-position: center;

    background: #fff;
}

/* Photos de l'equipe */
.team-grid .member-photo {
    width: 190px;
    height: 190px;
    max-width: 100%;
    object-fit: cover;
}

/* Petits ecrans */
@media (max-width: 640px) {
    .section-page > .content-grid > .content-card > img,
    .services-page .service-carousel > .content-card > img {
        height: 230px;
        padding: 10px;
    }

    .team-grid .member-photo {
        width: 160px;
        height: 160px;
    }
}

/* AERID_CATALOG_IMAGES_END */
