/* =========================
   AU FIL DES GOURMANDISES
   Bootstrap 5 Theme Override
   ========================= */

/* ===== VARIABLES THEME ===== */
:root {
    --afg-primary: #ffa0a3;   /* rose signature */
    --afg-secondary: #8b5e4d; /* cacao */
    --afg-bg: #fff9f4;        /* crème */
    --afg-text: #2b1e1a;
    --afg-muted: #6b5a54;
    --afg-border: #eadfd7;

    --bs-primary: #ffa0a3;
    --bs-secondary: #8b5e4d;
    --bs-body-bg: #fff9f4;
    --bs-body-color: #2b1e1a;
}

/* ===== GLOBAL ===== */
body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background-color: var(--afg-bg);
    color: var(--afg-text);
    line-height: 1.6;
}

/* Titres type premium pâtisserie */
h1, h2, h3, h4, h5 {
    font-family: "Times New Roman", serif;
    color: var(--afg-text);
    letter-spacing: -0.02em;
}

/* Liens */
a {
    color: var(--afg-secondary);
    text-decoration: none;
}

a:hover {
    color: var(--afg-primary);
}

/* ===== NAVBAR ===== */
.navbar {
    background: #fefdfb!important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--afg-border);
    min-height: 104px;
}

.navbar-nav .nav-link {
    color: var(--afg-text);
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--afg-primary);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--afg-primary);
    border-color: var(--afg-primary);
    color: white;
    border-radius: 10px;
    padding: 0.7rem 1.4rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #ff8e92;
    border-color: #ff8e92;
}

.btn-outline-primary {
    color: var(--afg-primary);
    border-color: var(--afg-primary);
    padding: 0.7rem 1.4rem;
    font-weight: 500;
    border-radius: 10px;
}

.btn-outline-primary:hover {
    background-color: var(--afg-primary);
    border-color: var(--afg-primary);
    color: white;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--afg-bg);
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
}

.hero p {
    color: var(--afg-muted);
    font-size: 1.1rem;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--afg-border);
    border-radius: 18px;
    background: #fefdfb!important;
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(43, 30, 26, 0.08);
}

.card-title {
    font-weight: 600;
}

.card-text {
    color: var(--afg-muted);
}

/* ===== BADGES / INFO ===== */
.badge {
    background-color: rgba(255, 160, 163, 0.15);
    color: var(--afg-secondary);
    border-radius: 999px;
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== CTA BLOC ===== */
.cta-section {
    background: linear-gradient(
        135deg,
        rgba(255, 160, 163, 0.15),
        rgba(139, 94, 77, 0.08)
    );
    padding: 4rem 2rem;
    border-radius: 24px;
}

/* ===== FORMS ===== */
.form-control {
    border-radius: 12px;
    border: 1px solid var(--afg-border);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--afg-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 160, 163, 0.25);
}

/* ===== CALENDAR / SESSIONS ===== */
.session-card {
    border-left: 4px solid var(--afg-primary);
    padding: 1rem;
    background: white;
    border-radius: 12px;
}

/* Places restantes */
.places {
    font-size: 0.85rem;
    color: var(--afg-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--afg-bg);
    border-top: 1px solid var(--afg-border);
    padding: 3rem 0;
    color: var(--afg-muted);
    margin-top: 3rem;
}

.footer a {
    color: var(--afg-secondary);
}

.footer a:hover {
    color: var(--afg-primary);
}

/* ===== UTILITAIRES ===== */
.text-accent {
    color: var(--afg-primary) !important;
}

.bg-soft {
    background-color: rgba(255, 160, 163, 0.08);
    border-radius: 16px;
}

.puce {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--afg-primary);
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.puce i {
    color: var(--afg-primary);
}

.text-pink {
    color: var(--afg-primary);
}

.presentation {
    border-bottom: 3px solid #fff;
}

.trouveratelier, .prochainsateliers {
    text-align: center;
}

.trouveratelier h2 {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--afg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.trouveratelier h2::before,
.trouveratelier h2::after {
    content: "";
    width: 45px;
    height: 2px;
    background-color: var(--afg-primary);
}

.card-container {
    position: relative;
    margin-top: 40px;
}

.puce-workshop {
    position: absolute;

    top: 0;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 3rem;
    height: 3rem;

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

    border: 2px solid var(--afg-primary);
    border-radius: 50%;
    background: var(--afg-primary);
    overflow: visible!important;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.puce-workshop i {
    color: white;
}

.workshop-card .card-img-top {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: bottom;
}

.workshop-detailed-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: bottom;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sessionDate {
    background: var(--afg-primary);
    border-radius: 10px 0 0 10px;
    color: white;
    margin: 0;
    text-align: center;
    max-width: 100px;
    padding: 5px 0;
}
.sessionDetails {
    margin: 0;
}
.sessionButton {
    margin: auto 0;
}

.sessionDetails .title {
    margin-top: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}

.sessionDetails .hours {
    font-weight: normal;
    display: inline-block;
}

.sessionDetails .price {
    font-weight: bold;
    display: inline-block;
}

.presentation {
    background-image: url('/img/background-home.png');
    background-repeat: no-repeat;
    background-position: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        min-height: 70px;
    }
}
