/* =====================================================
   Royal Permis — Brand & UI overrides
   Gold / bronze palette matching the logo
   ===================================================== */
:root {
    --primary: #D4A017;
    --primary-light: #F0C14A;
    --primary-dark: #B45309;
    --bronze: #C2410C;
    --gold: #E8B923;
    --amber: #F59E0B;
    --copper: #EA580C;
    --secondary: #6B5344;
    --light: #FFF9F0;
    --dark: #2C1810;
    --cream: #FFF7ED;
    --footer-bg: #3D2314;
    --footer-bg-2: #5C3317;
    --bs-primary: #D4A017;
    --bs-dark: #2C1810;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}

/* Override Bootstrap industrial blue */
.bg-dark,
.navbar-dark {
    background-color: var(--dark) !important;
}
.text-bg-dark {
    background-color: var(--dark) !important;
}

body {
    font-family: var(--font-body);
    color: #2c2418;
    background: var(--cream);
}

h1, h2, h3, h4, .display-1, .display-3, .display-5,
.royal-brand-text, .section-title {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

/* Bootstrap primary remap */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
    background: linear-gradient(135deg, #F0C14A, #EA580C);
    border-color: #B45309;
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #E8B923, #C2410C);
    border-color: #9A3412;
    color: #fff;
}
.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary-dark) !important;
}

.royal-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}
.royal-brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-left: 0.65rem;
    line-height: 1.1;
}
.royal-nav {
    box-shadow: 0 4px 24px rgba(26, 20, 12, 0.08);
}
.navbar-brand {
    background: transparent !important;
    min-height: auto !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.navbar-brand::before,
.navbar-brand::after {
    display: none !important;
}

.topbar-right {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
}
.topbar-right::before {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
    border-left-color: transparent !important;
}

/* Hero */
.royal-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background: #1a140c;
    overflow: hidden;
}
.royal-hero__media {
    position: absolute;
    inset: 0;
}
.royal-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transform: scale(1.04);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
.royal-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(44, 24, 16, 0.88) 0%, rgba(92, 51, 23, 0.55) 55%, rgba(234, 88, 12, 0.28) 100%);
}
.royal-hero__content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 5rem;
}
.royal-hero__brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    color: #F0C14A;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
    animation: fadeUp 0.9s ease both;
}
.royal-hero h1 {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    max-width: 18ch;
    animation: fadeUp 1s ease 0.15s both;
}
.royal-hero p {
    color: rgba(255,255,255,.88);
    max-width: 38ch;
    font-size: 1.1rem;
    animation: fadeUp 1s ease 0.3s both;
}
.royal-hero .btn {
    animation: fadeUp 1s ease 0.45s both;
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

.page-header {
    --page-header-image: url('../img/royal/header-bg.jpg');
    background:
        linear-gradient(120deg, rgba(44,24,16,.72), rgba(180,83,9,.42)),
        var(--page-header-image) center/cover no-repeat !important;
    min-height: 240px;
}
@media (max-width: 991.98px) {
    .page-header {
        min-height: 200px;
    }
}
@media (max-width: 767.98px) {
    .page-header {
        min-height: 170px;
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }
    .page-header .display-3 {
        font-size: 2rem;
    }
    .page-header .breadcrumb {
        font-size: 0.9rem;
    }
}

/* Page Qui sommes-nous — texte long + photos */
.about-page {
    background: var(--cream);
}
.about-layout {
    display: grid;
    gap: 2.25rem;
    align-items: start;
}
.about-gallery {
    position: relative;
    padding-bottom: 3.25rem;
}
.about-gallery::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 22px;
    width: 62%;
    height: 58%;
    border: 2px solid rgba(232, 185, 35, 0.42);
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
}
.about-gallery__main {
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 620px;
    border: 1px solid rgba(201, 146, 42, 0.18);
    box-shadow: 0 22px 48px rgba(44, 24, 16, 0.14);
}
.about-gallery__main img,
.about-gallery__second img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-gallery__main::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #F0C14A, #EA580C, #C2410C);
}
.about-gallery__second {
    margin: 0;
    position: absolute;
    z-index: 2;
    width: min(58%, 280px);
    aspect-ratio: 5 / 4;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 6px solid var(--cream);
    box-shadow: 0 16px 36px rgba(44, 24, 16, 0.18);
}
.about-copy .display-5 {
    max-width: 16ch;
    line-height: 1.15;
}
.about-copy__prose {
    font-size: 1.06rem;
    line-height: 1.85;
    overflow-wrap: break-word;
}
.about-copy__prose p {
    margin-bottom: 1.15rem;
}
.about-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 2.75rem;
}
.about-point {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid rgba(201, 146, 42, 0.18);
    border-radius: 8px;
    padding: 1.05rem 1.15rem;
    height: 100%;
}
.about-point__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #fff7e6, #f0e0b8);
    color: var(--primary-dark);
    font-size: 0.9rem;
}
.about-point p {
    margin: 0;
    font-weight: 500;
    line-height: 1.45;
    color: var(--dark);
}
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}
@media (min-width: 768px) {
    .about-points {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 992px) {
    .about-layout {
        grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.2fr);
        gap: 3.25rem 4rem;
    }
    .about-gallery {
        position: sticky;
        top: 6.25rem;
    }
    .about-copy__prose {
        max-width: 62ch;
    }
}
@media (min-width: 1200px) {
    .about-points {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
    .about-gallery__main {
        max-height: 680px;
    }
}
@media (max-width: 991.98px) {
    .about-gallery {
        max-width: 540px;
        margin-inline: auto;
    }
    .about-gallery__main {
        aspect-ratio: 4 / 3;
        max-height: 420px;
    }
    .about-gallery::before {
        left: -8px;
        top: 14px;
    }
}
@media (max-width: 575.98px) {
    .about-gallery {
        padding-bottom: 2.4rem;
    }
    .about-gallery__main {
        aspect-ratio: 3 / 4;
        max-height: 380px;
    }
    .about-gallery__second {
        width: 54%;
        border-width: 4px;
    }
    .about-copy .display-5 {
        max-width: none;
    }
    .about-actions .btn {
        width: 100%;
        margin: 0;
    }
}

/* Formations grid */
.formation-card {
    background: #fff;
    border: 1px solid rgba(201,146,42,.18);
    border-radius: 4px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
}
.formation-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--bronze));
    opacity: 0;
    transition: opacity .3s;
}
.formation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(26,20,12,.12);
    border-color: rgba(201,146,42,.45);
}
.formation-card:hover::before { opacity: 1; }
.formation-card .icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff7e6, #f0e0b8);
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.formation-card h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}
.formation-card p {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Packages table */
.packages-wrap {
    overflow-x: auto;
}
.packages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    min-width: 640px;
}
.packages-table th,
.packages-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eee4d4;
    text-align: center;
    vertical-align: middle;
}
.packages-table th:first-child,
.packages-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.packages-table thead th {
    background: var(--dark);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    position: sticky;
    top: 0;
}
.packages-table thead th.featured {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
}
.packages-table .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.packages-table .check { color: #2d6a4f; }
.packages-table .cross { color: #b0a89a; }
.package-note {
    font-size: 0.9rem;
    color: var(--secondary);
}
.packages-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 860px;
    margin: 1.15rem auto 0.25rem;
    text-align: left;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 55%, #FCD34D 100%);
    border: 2px solid #F59E0B;
    border-left: 8px solid #DC2626;
    color: #7C2D12;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.12), 0 2px 0 rgba(255, 255, 255, 0.55) inset;
}
.packages-alert i {
    color: #DC2626;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.packages-alert span {
    display: block;
}

/* Reviews */
.review-card {
    background: #fff;
    border-radius: 4px;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid rgba(201,146,42,.15);
}
.review-card .stars { color: var(--gold); }
.review-card .author { font-weight: 600; }
.review-card .meta { font-size: 0.8rem; color: #8a8074; }

/* FAQ */
.faq-item {
    background: #fff;
    border: 1px solid rgba(201,146,42,.15);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-item button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item button i { color: var(--primary); transition: transform .25s; }
.faq-item.open button i { transform: rotate(45deg); }
.faq-item .faq-body {
    display: none;
    padding: 0 1.25rem 1.15rem;
    color: var(--secondary);
}
.faq-item.open .faq-body { display: block; }
.faq-item .faq-body a,
.faq-item .faq-body a.rp-text-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-word;
}
.faq-item .faq-body a:hover,
.faq-item .faq-body a.rp-text-link:hover {
    color: #1d4ed8;
}

.info-flash-modal .info-flash-body {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #3D2314;
}
.info-flash-modal .info-flash-body a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* Contact */
.contact-tile {
    background: #fff;
    border: 1px solid rgba(201,146,42,.15);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
}
.contact-tile .icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff7e6, #f0e0b8);
    color: var(--primary-dark);
    font-size: 1.5rem;
}
.map-frame {
    border: 0;
    width: 100%;
    min-height: 380px;
    border-radius: 4px;
}

.formation-card .formation-card-img {
    margin: -1.75rem -1.5rem 1rem;
    height: 150px;
    overflow: hidden;
}
.formation-card .formation-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.formation-card:hover .formation-card-img img {
    transform: scale(1.06);
}

/* ========== Floating buttons (aligned stack + demi-rose) ========== */
.royal-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 56px;
}
.float-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: 0;
    box-shadow: 0 10px 22px rgba(44, 24, 16, .28);
    font-size: 1.35rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    line-height: 1;
    padding: 0;
    position: relative;
    z-index: 2;
}
.float-btn i {
    line-height: 1;
    display: block;
}
.float-btn:hover {
    transform: translateY(-2px) scale(1.05);
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(44, 24, 16, .35);
}

.float-social-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    z-index: 3;
}
.float-social-wrap .float-social {
    position: relative;
    z-index: 4;
}

.float-whatsapp {
    background: linear-gradient(145deg, #25D366, #128C7E) !important;
}
.float-social {
    background: linear-gradient(145deg, #F0C14A, #EA580C) !important;
}
.float-top {
    background: linear-gradient(145deg, #5C3317, #2C1810) !important;
    border: 1px solid rgba(232, 185, 35, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-width: 0;
    box-shadow: none;
}
.royal-float .float-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    border-width: 1px;
    box-shadow: 0 10px 22px rgba(44, 24, 16, .28);
}

/* Demi-rose ancrée sur le bouton partage uniquement */
.social-fan {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}
.social-fan .fan-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: #fff;
    color: #B45309;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(44, 24, 16, .2);
    text-decoration: none;
    opacity: 0;
    transform: translate(0, 0) scale(0.25);
    transition:
        transform .4s cubic-bezier(.2, .85, .25, 1),
        opacity .3s ease;
    transition-delay: 0s;
    pointer-events: none;
    font-size: 1.15rem;
    border: 1px solid rgba(234, 88, 12, .25);
}
.royal-float.fan-open .social-fan .fan-item {
    opacity: 1;
    transform: translate(var(--fx), var(--fy)) scale(1);
    pointer-events: auto;
    transition-delay: var(--fd, 0s);
}
.royal-float.fan-open .float-social {
    box-shadow: 0 0 0 4px rgba(240, 193, 74, .35), 0 10px 22px rgba(44, 24, 16, .28);
}
.social-fan .fan-item:hover {
    background: linear-gradient(145deg, #F0C14A, #EA580C);
    color: #fff;
    border-color: transparent;
}
.social-fan .fan-item .social-icon-img,
.social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

@media (max-width: 575.98px) {
    .royal-float { right: 14px; bottom: 14px; gap: 12px; width: 52px; }
    .float-btn,
    .royal-float .float-top.show {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        min-height: 52px !important;
        font-size: 1.2rem;
    }
    .float-social-wrap { width: 52px; height: 52px; }
}

.success-mail-modal .modal-header { display: none; }
.success-mail-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #F0C14A, #EA580C);
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 10px 24px rgba(234, 88, 12, .35);
}
.success-mail-modal h4 {
    font-family: var(--font-display);
    color: #3D2314;
}
.royal-modal .modal-header {
    background: linear-gradient(135deg, #5C3317, #B45309);
    color: #fff;
}
.royal-modal .modal-title { font-family: var(--font-display); }
.royal-modal .btn-close { filter: invert(1); }

/* ========== FOOTER (gold / copper brand) ========== */
.royal-footer {
    background:
        radial-gradient(ellipse at top right, rgba(234, 88, 12, 0.35), transparent 55%),
        linear-gradient(160deg, #3D2314 0%, #5C3317 45%, #2C1810 100%);
    color: #FDEBD0;
    position: relative;
    overflow: hidden;
}
.royal-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(232, 185, 35, 0.12), transparent);
    pointer-events: none;
}
.footer-brand {
    display: inline-block;
    background: linear-gradient(145deg, #FFF8E7, #F5E0B8);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(232, 185, 35, 0.45);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    line-height: 0;
}
.footer-logo {
    max-height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    background: transparent;
    mix-blend-mode: normal;
    border-radius: 0;
    padding: 0;
}
.footer-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    font-weight: 700;
}
.footer-text,
.royal-footer p {
    color: rgba(253, 235, 208, 0.85);
}
.royal-footer a {
    color: rgba(253, 235, 208, 0.9);
    text-decoration: none;
}
.royal-footer a:hover {
    color: var(--gold);
}
.royal-footer .btn.btn-link {
    display: block;
    text-align: left;
    color: rgba(253, 235, 208, 0.78);
    text-decoration: none;
    padding: 0.2rem 0;
    font-weight: 500;
    text-transform: none;
    box-shadow: none;
}
.royal-footer .btn.btn-link::before {
    color: var(--amber);
}
.royal-footer .btn.btn-link:hover {
    color: var(--gold);
    letter-spacing: 0;
}
.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 185, 35, 0.15);
    border: 1px solid rgba(232, 185, 35, 0.35);
    color: var(--gold) !important;
    text-decoration: none;
    transition: .25s;
}
.footer-social:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--copper));
    border-color: transparent;
    color: #fff !important;
}
.footer-social .social-icon-img {
    width: 18px;
    height: 18px;
}
.royal-copyright {
    border-top: 1px solid rgba(232, 185, 35, 0.25);
    padding: 1rem 0;
    margin-top: 1rem;
    color: rgba(253, 235, 208, 0.7);
    font-size: 0.9rem;
    position: relative;
}
.royal-copyright a {
    color: var(--gold);
}
.royal-copyright a:hover {
    color: #fff;
}

/* Topbar */
.topbar-royal {
    background: linear-gradient(90deg, #2C1810, #5C3317) !important;
}
.topbar-right {
    background: linear-gradient(135deg, var(--primary-light), var(--copper)) !important;
}
.topbar-right::before {
    background: linear-gradient(135deg, var(--primary-light), var(--copper)) !important;
}

/* Floating buttons — palette */
.float-whatsapp {
    background: linear-gradient(145deg, #25D366, #128C7E) !important;
}
.float-social {
    background: linear-gradient(145deg, #F0C14A, #EA580C) !important;
}
.float-top.show {
    background: linear-gradient(145deg, #5C3317, #2C1810) !important;
}

/* CTA band */
.royal-cta-band {
    background: linear-gradient(120deg, #2C1810, #9A3412, #B45309) !important;
}

.packages-table thead th {
    background: linear-gradient(180deg, #5C3317, #2C1810);
}
.packages-table thead th.featured {
    background: linear-gradient(180deg, var(--primary-light), var(--copper));
}

.about-stat {
    background: linear-gradient(145deg, var(--primary-light), var(--copper));
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}
.about-stat .num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 700;
}

.formation-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 991.98px) {
    .royal-logo { height: 52px; }
    .royal-hero { min-height: 70vh; }
    .navbar-brand .royal-brand-text { font-size: 1.05rem; }
    .formation-card { padding: 1.25rem 1.1rem; }
    .contact-tile { padding: 1.5rem 1rem; }
    .topbar-royal .container-fluid { padding-left: 0.75rem; padding-right: 0.75rem; }
    .about-stat .num { font-size: 2.75rem; }
}

@media (max-width: 575.98px) {
    .royal-hero__content { padding: 4.5rem 0 3.5rem; }
    .packages-table th, .packages-table td { padding: 0.65rem 0.5rem; font-size: 0.88rem; }
    .footer-logo { max-height: 90px; }
    .royal-hero__brand { font-size: 2.4rem; }
    .display-5 { font-size: 1.75rem; }
    .btn.btn-primary.py-3,
    .btn.btn-outline-light.py-3,
    .btn.btn-outline-primary.py-3 {
        padding: .75rem 1.1rem !important;
        width: 100%;
        margin-bottom: .5rem;
    }
    .royal-hero .d-flex.flex-wrap .btn { width: 100%; }
    .map-frame { min-height: 260px; }
    .footer-brand { max-width: 100%; }
    .contact-tile h4 { font-size: 1.15rem; }
    .formation-hero-img { max-height: 240px; }
    .section-title { font-size: 1.85rem; }
    img, video, iframe { max-width: 100%; height: auto; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 1rem;
    background: rgba(44, 24, 16, 0.96);
    color: #FDEBD0;
    box-shadow: 0 -8px 28px rgba(0,0,0,.25);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.cookie-banner__text {
    flex: 1 1 280px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.cookie-banner__text a { color: var(--gold); text-decoration: underline; }
.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .cookie-banner { padding: 0.9rem; padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0)); }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; }
}

/* Texte riche cohérent (iPhone + Android) */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.royal-prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text, #2C1810);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.royal-prose p { margin: 0 0 1rem; }
.royal-prose p:last-child { margin-bottom: 0; }
.royal-prose ul,
.royal-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.royal-prose li { margin-bottom: 0.35rem; }
.royal-prose strong,
.royal-prose b { font-weight: 700; color: #3D2314; }
.royal-prose--home { font-size: 1rem; line-height: 1.7; }
.formation-content {
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
}
.formation-content p { margin-bottom: 0.85rem; }
.formation-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }

/* Statistiques accueil */
.royal-stats {
    background: linear-gradient(145deg, #2C1810 0%, #3D2314 40%, #5C3317 100%);
    padding: 3.5rem 0 3.75rem;
    position: relative;
    overflow: hidden;
}
.royal-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(232,185,35,.22), transparent 42%),
        radial-gradient(ellipse at 90% 100%, rgba(234,88,12,.16), transparent 45%);
    pointer-events: none;
}
.royal-stats::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #F0C14A, #EA580C, #C2410C);
}
.royal-stats__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8B923;
    margin: 0;
}
.royal-stats__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFF7ED;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.royal-stats__text {
    color: rgba(253, 235, 208, 0.82);
    font-size: 0.98rem;
    line-height: 1.55;
}
.royal-stat {
    text-align: center;
    color: #FFF7ED;
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1.35rem 0.85rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 247, 237, 0.06);
    border: 1px solid rgba(232, 185, 35, 0.22);
    backdrop-filter: blur(2px);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.royal-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 185, 35, 0.5);
    background: rgba(255, 247, 237, 0.1);
}
.royal-stat__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(240,193,74,.2), rgba(234,88,12,.12));
    border: 1px solid rgba(232,185,35,.4);
    color: #E8B923;
    font-size: 1.45rem;
    overflow: hidden;
    flex-shrink: 0;
}
.royal-stat__icon i {
    line-height: 1;
    width: 1.45rem;
    height: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.royal-stat__icon .stat-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    object-position: center;
    display: block;
}
.royal-stat__value {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 4.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    color: #F0C14A;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
.js-count-up.is-done {
    animation: royalStatPop 0.45s ease;
}
@keyframes royalStatPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.royal-stat__value .js-count-up {
    display: inline-block;
}
.royal-stat__suffix {
    margin-left: 0.08em;
    font-size: 0.72em;
    color: #E8B923;
}
.royal-stat__label {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    opacity: 0.92;
    letter-spacing: 0.02em;
    line-height: 1.35;
}
@media (max-width: 575.98px) {
    .royal-stats { padding: 2.5rem 0 2.75rem; }
    .royal-stat { padding: 1.1rem 0.6rem 1rem; }
    .royal-stat__icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    .royal-stat__icon .stat-icon-img {
        width: 28px;
        height: 28px;
    }
}

/* Lecture stable sur mobile, tablette et grands écrans */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
}
img, video, iframe, svg {
    max-width: 100%;
}
.display-1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.display-3 { font-size: clamp(1.75rem, 4.5vw, 3.5rem); }
.display-5 { font-size: clamp(1.45rem, 3vw, 2.5rem); }
.display-6 { font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
.lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }
@media (max-width: 1199.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 1rem;
        font-size: 1rem;
    }
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        font-size: 1.05rem;
    }
    .page-header .breadcrumb-item,
    .page-header .breadcrumb-item a {
        font-size: 0.95rem;
    }
}
@media (max-width: 575.98px) {
    .container, .container-xxl, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .page-header .container {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .royal-brand-text { font-size: 1rem; }
    .btn.btn-primary.py-3.px-5,
    .formation-card .btn {
        white-space: normal;
    }
}

