/**
 * Components CSS - Buttons, Cards, Forms
 * @package SportBreak
 */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 194, 31, 0.4);
    color: var(--dark);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-purple {
    background-color: var(--purple);
    color: var(--white);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 49, 85, 0.4);
    color: var(--white);
}

.btn-outline-yellow {
    background-color: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

.btn-outline-yellow:hover {
    background-color: var(--yellow);
    color: var(--dark);
}

.btn-xl {
    padding: 18px 40px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Shortcut Card (for grid cards) */
.shortcut-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.shortcut-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Card Style 1 - Classic */
.card--style1 h3 {
    font-size: 22px;
    font-weight: 700;
}

.card--style1 .card-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 10px;
}

.card--style1 .card-subtitle .subtitle-suffix {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

/* Card Features List */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.card-features li i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Card Description */
.card-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Card Style 2 - Uppercase */
.card--style2 h3 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card--style2 .card-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Cards on light background */
.card--on-light {
    background: var(--white);
}

.card--on-light h3 {
    color: var(--dark);
}

.card--on-light p {
    color: var(--text-muted);
}

/* Cards on dark background */
.card--on-dark {
    background: rgba(255, 255, 255, 0.08);
    border: none;
}

.card--on-dark h3 {
    color: var(--white);
}

.card--on-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.card--on-dark .card-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

/* Card subtitle - style2 specific colors based on background */
.card--style2.card--on-light .card-subtitle {
    color: var(--purple);
}

.card--style1.card--on-dark .card-subtitle,
.card--style2.card--on-dark .card-subtitle {
    color: var(--yellow);
}

.shortcut-card .card-media {
    height: 240px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.shortcut-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shortcut-card:hover .card-media img {
    transform: scale(1.05);
}

.shortcut-card .card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shortcut-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.shortcut-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.shortcut-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Badge */
.badge-pop {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--dark);
    color: var(--white);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-pop--yellow {
    background: var(--yellow);
    color: var(--dark);
}

.badge-pop--purple {
    background: var(--purple);
    color: var(--white);
}

/* Review Card */
.review-card {
    min-width: 350px;
    padding: 30px;
    background: var(--dark);
    color: var(--white);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.review-card .stars {
    color: var(--yellow);
    margin-bottom: 10px;
}

.review-card .review-text {
    margin-bottom: 20px;
    font-style: italic;
}

.review-card .review-author {
    font-weight: 700;
}

.review-card .review-tag {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-main, var(--dark));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(243, 194, 31, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-checkbox label {
    display: inline;
    margin-bottom: 0;
    padding-left: 32px;
    position: relative;
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

.form-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: var(--white);
    transition: all 0.2s ease;
}

.form-checkbox label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid var(--white);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.form-checkbox input[type="checkbox"]:checked + label::before {
    background: var(--yellow);
    border-color: var(--yellow);
}

.form-checkbox input[type="checkbox"]:checked + label::after {
    transform: rotate(45deg) scale(1);
}

.form-checkbox input[type="checkbox"]:focus-visible + label::before {
    box-shadow: 0 0 0 3px rgba(243, 194, 31, 0.3);
}

/* Purple section checkbox */
.bg-purple-section .form-checkbox label::before {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.bg-purple-section .form-checkbox input[type="checkbox"]:checked + label::before {
    background: var(--yellow);
    border-color: var(--yellow);
}

.bg-purple-section .form-checkbox input[type="checkbox"]:checked + label::after {
    border-color: var(--dark);
}

/* Form Messages */
.form-message {
    display: none;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-message.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.form-message .form-message-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.success .form-message-icon {
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.form-message.error .form-message-icon {
    color: #f44336;
}

/* Dark backgrounds */
.bg-purple-section .form-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border-color: rgba(76, 175, 80, 0.3);
}

.bg-purple-section .form-message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #ef9a9a;
    border-color: rgba(244, 67, 54, 0.3);
}

/* Contact Form Container */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

/* Purple Section Forms */
.bg-purple-section .contact-form {
    background: rgba(30, 30, 50, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.bg-purple-section label {
    color: var(--white);
}

.bg-purple-section input,
.bg-purple-section select,
.bg-purple-section textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.bg-purple-section input::placeholder,
.bg-purple-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   FEATURES LIST
   ======================================== */

.features-list {
    list-style: none;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.features-list li i {
    color: var(--yellow);
    font-size: 20px;
    width: 24px;
}

/* ========================================
   SLIDER NAVIGATION
   ======================================== */

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 -1px 9px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: var(--yellow);
}

.bg-light-gray .slider-btn,
.bg-light .slider-btn {
    background: var(--yellow);
    color: var(--dark);
}

.bg-light-gray .slider-btn:hover,
.bg-light .slider-btn:hover {
    background: var(--dark);
    color: var(--white);
}

.slider-btn--sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

/* ========================================
   TAGS
   ======================================== */

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #eee;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.tag-badge {
    background: var(--light-bg);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.tag-badge--link {
    text-decoration: none;
}

.tag-badge--link:hover {
    background: var(--yellow);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ========================================
   LABEL (Small text above titles)
   ======================================== */

.label {
    display: inline-block;
    color: var(--yellow);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ========================================
   HOURS LIST
   ======================================== */

.hours-list {
    list-style: none;
    margin: 20px 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

/* ========================================
   ALERT BOX
   ======================================== */

.alert-box {
    margin: 25px 0;
    padding: 15px;
    background: rgba(243, 194, 31, 0.1);
    border-left: 4px solid var(--yellow);
    border-radius: 4px;
}

.alert-box .alert-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.alert-box .alert-highlight {
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 10px;
}

.alert-box .alert-content {
    font-size: 14px;
}

/* ========================================
   CONTENT STYLE SYSTEM
   ======================================== */

/* --- Backgrounds --- */
.content-style--blanc-1,
.content-style--blanc-2,
.content-style--blanc-3,
.content-style--blanc-4,
.content-style--blanc-5,
.content-style--blanc-6 {
    border-color: var(--border-light);
    color: var(--dark);
}

.content-style--gris-1,
.content-style--gris-2,
.content-style--gris-3,
.content-style--gris-4,
.content-style--gris-5,
.content-style--gris-6 {
    background: var(--light-bg);
    border-color: var(--border-light);
    color: var(--dark);
}

.content-style--sombre-1,
.content-style--sombre-2,
.content-style--sombre-3,
.content-style--sombre-4,
.content-style--sombre-5,
.content-style--sombre-6 {
    background: var(--purple);
    border-color: rgba(255, 255, 255, 0.1);
}

.content-style--noir-1,
.content-style--noir-2,
.content-style--noir-3,
.content-style--noir-4,
.content-style--noir-5,
.content-style--noir-6 {
    background: var(--dark);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Cards avec image : fond uniquement sur card-body, pas derrière l'image */
.shortcut-card.content-style--blanc-1 .card-body,
.shortcut-card.content-style--blanc-2 .card-body,
.shortcut-card.content-style--blanc-3 .card-body,
.shortcut-card.content-style--blanc-4 .card-body,
.shortcut-card.content-style--blanc-5 .card-body,
.shortcut-card.content-style--blanc-6 .card-body {
    background: var(--white);
}

.shortcut-card.content-style--gris-1 .card-body,
.shortcut-card.content-style--gris-2 .card-body,
.shortcut-card.content-style--gris-3 .card-body,
.shortcut-card.content-style--gris-4 .card-body,
.shortcut-card.content-style--gris-5 .card-body,
.shortcut-card.content-style--gris-6 .card-body {
    background: var(--light-bg);
}

.shortcut-card.content-style--sombre-1 .card-body,
.shortcut-card.content-style--sombre-2 .card-body,
.shortcut-card.content-style--sombre-3 .card-body,
.shortcut-card.content-style--sombre-4 .card-body,
.shortcut-card.content-style--sombre-5 .card-body,
.shortcut-card.content-style--sombre-6 .card-body {
    background: var(--purple);
}

.shortcut-card.content-style--noir-1 .card-body,
.shortcut-card.content-style--noir-2 .card-body,
.shortcut-card.content-style--noir-3 .card-body,
.shortcut-card.content-style--noir-4 .card-body,
.shortcut-card.content-style--noir-5 .card-body,
.shortcut-card.content-style--noir-6 .card-body {
    background: var(--dark);
}

/* --- Titres noirs (blanc-1/3/6, gris-1/3/6) --- */
.content-style--blanc-1 h2,
.content-style--blanc-1 h3,
.content-style--blanc-3 h2,
.content-style--blanc-3 h3,
.content-style--blanc-6 h2,
.content-style--blanc-6 h3,
.content-style--gris-1 h2,
.content-style--gris-1 h3,
.content-style--gris-3 h2,
.content-style--gris-3 h3,
.content-style--gris-6 h2,
.content-style--gris-6 h3 {
    color: var(--dark);
}

/* --- Titres violets (blanc-2/4/5, gris-2/4/5) --- */
.content-style--blanc-2 h2,
.content-style--blanc-2 h3,
.content-style--blanc-4 h2,
.content-style--blanc-4 h3,
.content-style--blanc-5 h2,
.content-style--blanc-5 h3,
.content-style--gris-2 h2,
.content-style--gris-2 h3,
.content-style--gris-4 h2,
.content-style--gris-4 h3,
.content-style--gris-5 h2,
.content-style--gris-5 h3 {
    color: var(--purple);
}

/* --- Titres blancs (sombre-1/3/6, noir-1/3/6) --- */
.content-style--sombre-1 h2,
.content-style--sombre-1 h3,
.content-style--sombre-3 h2,
.content-style--sombre-3 h3,
.content-style--sombre-6 h2,
.content-style--sombre-6 h3,
.content-style--noir-1 h2,
.content-style--noir-1 h3,
.content-style--noir-3 h2,
.content-style--noir-3 h3,
.content-style--noir-6 h2,
.content-style--noir-6 h3 {
    color: var(--white);
}

/* --- Titres jaunes (sombre-2/4/5, noir-2/4/5) --- */
.content-style--sombre-2 h2,
.content-style--sombre-2 h3,
.content-style--sombre-4 h2,
.content-style--sombre-4 h3,
.content-style--sombre-5 h2,
.content-style--sombre-5 h3,
.content-style--noir-2 h2,
.content-style--noir-2 h3,
.content-style--noir-4 h2,
.content-style--noir-4 h3,
.content-style--noir-5 h2,
.content-style--noir-5 h3 {
    color: var(--yellow);
}

/* --- Texte light (blanc/gris) --- */
.content-style--blanc-1 p,
.content-style--blanc-2 p,
.content-style--blanc-3 p,
.content-style--blanc-4 p,
.content-style--blanc-5 p,
.content-style--blanc-6 p,
.content-style--gris-1 p,
.content-style--gris-2 p,
.content-style--gris-3 p,
.content-style--gris-4 p,
.content-style--gris-5 p,
.content-style--gris-6 p {
    color: var(--text-muted);
}

/* --- Texte dark (sombre/noir) --- */
.content-style--sombre-1 p,
.content-style--sombre-2 p,
.content-style--sombre-3 p,
.content-style--sombre-4 p,
.content-style--sombre-5 p,
.content-style--sombre-6 p,
.content-style--noir-1 p,
.content-style--noir-2 p,
.content-style--noir-3 p,
.content-style--noir-4 p,
.content-style--noir-5 p,
.content-style--noir-6 p {
    color: rgba(255, 255, 255, 0.8);
}

/* Card description + features on dark content styles */
.content-style--sombre-1 .card-description,
.content-style--sombre-2 .card-description,
.content-style--sombre-3 .card-description,
.content-style--sombre-4 .card-description,
.content-style--sombre-5 .card-description,
.content-style--sombre-6 .card-description,
.content-style--noir-1 .card-description,
.content-style--noir-2 .card-description,
.content-style--noir-3 .card-description,
.content-style--noir-4 .card-description,
.content-style--noir-5 .card-description,
.content-style--noir-6 .card-description {
    color: rgba(255, 255, 255, 0.7);
}

.content-style--sombre-1 .card-features li,
.content-style--sombre-2 .card-features li,
.content-style--sombre-3 .card-features li,
.content-style--sombre-4 .card-features li,
.content-style--sombre-5 .card-features li,
.content-style--sombre-6 .card-features li,
.content-style--noir-1 .card-features li,
.content-style--noir-2 .card-features li,
.content-style--noir-3 .card-features li,
.content-style--noir-4 .card-features li,
.content-style--noir-5 .card-features li,
.content-style--noir-6 .card-features li {
    color: rgba(255, 255, 255, 0.9);
}

/* Subtitle suffix on dark */
.content-style--sombre-1 .subtitle-suffix,
.content-style--sombre-2 .subtitle-suffix,
.content-style--sombre-3 .subtitle-suffix,
.content-style--sombre-4 .subtitle-suffix,
.content-style--sombre-5 .subtitle-suffix,
.content-style--sombre-6 .subtitle-suffix,
.content-style--noir-1 .subtitle-suffix,
.content-style--noir-2 .subtitle-suffix,
.content-style--noir-3 .subtitle-suffix,
.content-style--noir-4 .subtitle-suffix,
.content-style--noir-5 .subtitle-suffix,
.content-style--noir-6 .subtitle-suffix {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Accent : label + icônes features (jaune par défaut) --- */
.content-style--sombre-1 .label,
.content-style--sombre-3 .label,
.content-style--sombre-5 .label,
.content-style--sombre-6 .label,
.content-style--noir-1 .label,
.content-style--noir-3 .label,
.content-style--noir-5 .label,
.content-style--noir-6 .label {
    color: var(--yellow);
}

.content-style--sombre-2 .label,
.content-style--sombre-4 .label,
.content-style--noir-2 .label,
.content-style--noir-4 .label {
    color: var(--white);
}

/* --- Tags sur fond sombre/noir --- */
.content-style--sombre-1 .tag-badge,
.content-style--sombre-2 .tag-badge,
.content-style--sombre-3 .tag-badge,
.content-style--sombre-4 .tag-badge,
.content-style--sombre-5 .tag-badge,
.content-style--sombre-6 .tag-badge,
.content-style--noir-1 .tag-badge,
.content-style--noir-2 .tag-badge,
.content-style--noir-3 .tag-badge,
.content-style--noir-4 .tag-badge,
.content-style--noir-5 .tag-badge,
.content-style--noir-6 .tag-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* --- Card subtitle on content styles --- */
.content-style--sombre-1 .card-subtitle,
.content-style--sombre-2 .card-subtitle,
.content-style--sombre-3 .card-subtitle,
.content-style--sombre-4 .card-subtitle,
.content-style--sombre-5 .card-subtitle,
.content-style--sombre-6 .card-subtitle,
.content-style--noir-1 .card-subtitle,
.content-style--noir-2 .card-subtitle,
.content-style--noir-3 .card-subtitle,
.content-style--noir-4 .card-subtitle,
.content-style--noir-5 .card-subtitle,
.content-style--noir-6 .card-subtitle {
}

/* ========================================
   BUTTON: BLACK
   ======================================== */

.btn-black {
    background: #000;
    color: var(--white);
}

.btn-black:hover {
    background: #222;
    transform: translateY(-2px);
    color: var(--white);
}

/* ========================================
   BADGE ICON SPACING
   ======================================== */

.badge-pop i {
    margin-right: 5px;
}

/* ========================================
   MARQUEE (continuous infinite scroll)
   ======================================== */

.marquee {
    overflow: hidden;
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ========================================
   GALLERY BLOCK
   ======================================== */

.gallery-block {
    margin: 2rem 0;
}

.gallery-block__grid {
    display: grid;
    gap: 1rem;
}

/* Grid columns */
.gallery-block--cols-2 .gallery-block__grid {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-block--cols-3 .gallery-block__grid {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-block--cols-4 .gallery-block__grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Gap sizes */
.gallery-block--gap-small .gallery-block__grid {
    gap: 0.5rem;
}

.gallery-block--gap-medium .gallery-block__grid {
    gap: 1rem;
}

.gallery-block--gap-large .gallery-block__grid {
    gap: 1.5rem;
}

/* Grid uniform */
.gallery-block--grid .gallery-block__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Masonry layout */
.gallery-block--masonry .gallery-block__grid {
    display: columns;
    column-count: 3;
    column-gap: 1rem;
}

.gallery-block--masonry.gallery-block--cols-2 .gallery-block__grid {
    column-count: 2;
}

.gallery-block--masonry.gallery-block--cols-4 .gallery-block__grid {
    column-count: 4;
}

.gallery-block--masonry .gallery-block__item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery-block--masonry .gallery-block__item img {
    width: 100%;
    height: auto;
}

/* Gallery item */
.gallery-block__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
}

.gallery-block__item img {
    display: block;
    transition: transform 0.4s ease;
}

.gallery-block__item:hover img {
    transform: scale(1.05);
}

.gallery-block__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-block__item:hover .gallery-block__overlay {
    opacity: 1;
}

.gallery-block__overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-block__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-block__item:hover .gallery-block__caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-block--cols-3 .gallery-block__grid,
    .gallery-block--cols-4 .gallery-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-block--masonry.gallery-block--cols-3 .gallery-block__grid,
    .gallery-block--masonry.gallery-block--cols-4 .gallery-block__grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-block--cols-2 .gallery-block__grid,
    .gallery-block--cols-3 .gallery-block__grid,
    .gallery-block--cols-4 .gallery-block__grid {
        grid-template-columns: 1fr;
    }

    .gallery-block--masonry .gallery-block__grid {
        column-count: 1;
    }
}


/* ========================================
   VIDEO BLOCK
   ======================================== */

.video-block {
    margin: 0 auto;
}

.video-block--large .video-block__wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-block--medium .video-block__wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.video-block__wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

/* Video player (fichier) */
.video-player {
    position: relative;
    background: #000;
}

.video-player__video {
    display: block;
    width: 100%;
    height: auto;
}

.video-player__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary, #FFD100);
    color: var(--color-dark, #1a1a2e);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-player__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary-hover, #e6bc00);
}

.video-player__play i {
    margin-left: 4px;
}

.video-player.is-playing .video-player__play {
    opacity: 0;
    pointer-events: none;
}

/* Video embed (YouTube/Vimeo) */
.video-embed {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-embed__poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-embed__play {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-embed__play:hover {
    transform: scale(1.1);
}

.video-embed__play svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed.is-loaded .video-embed__poster {
    display: none;
}

/* Video Background Embed (autoplay, muted, loop, no controls) */
.video-background-embed {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    pointer-events: none;
}

.video-background-embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    border: 0;
}

/* Inside media-image (text/media block) */
.media-image--video .video-background-embed {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.media-image--video .video-background-embed iframe {
    width: 200%;
    height: 200%;
}

/* Inside activity-video */
.activity-video .video-background-embed {
    border-radius: 12px;
}

/* Inside video-block__wrapper */
.video-block__wrapper .video-background-embed {
    border-radius: 0;
}


/* ========================================
   TEXT BLOCK
   ======================================== */

.text-block {
    margin: 2rem 0;
}

.text-block--narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-block--align-center {
    text-align: center;
}

.text-block--align-right {
    text-align: right;
}

.text-block__content {
    line-height: 1.7;
}

.text-block__content h1,
.text-block__content h2,
.text-block__content h3,
.text-block__content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.text-block__content h1:first-child,
.text-block__content h2:first-child,
.text-block__content h3:first-child,
.text-block__content h4:first-child {
    margin-top: 0;
}

.text-block__content p {
    margin-bottom: 1em;
}

.text-block__content ul {
    margin-bottom: 1em;
    padding-left: 1.5em;
    list-style: disc;
}

.text-block__content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
    list-style: decimal;
}

.text-block__content li {
    margin-bottom: 0.5em;
}

.text-block__content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--color-primary, #FFD100);
    background: rgba(0, 0, 0, 0.03);
    font-style: italic;
}

.text-block--on-dark .text-block__content {
    color: rgba(255, 255, 255, 0.9);
}

.text-block--on-dark .text-block__content blockquote {
    background: rgba(255, 255, 255, 0.05);
}


/* ========================================
   GLIGHTBOX OVERRIDES
   ======================================== */

/* Backdrop */
.goverlay {
    background: rgba(0, 0, 0, 0.92) !important;
}

/* Slide image */
.glightbox-clean .gslide-image img {
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Title / description */
.glightbox-clean .gslide-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.glightbox-clean .gslide-description {
    background: transparent;
}

.glightbox-clean .gdesc-inner {
    padding: 12px 0 0;
    text-align: center;
}

/* Nav arrows */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    width: 44px;
    height: 44px;
    background: var(--yellow, #F3C21F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    top: calc(50% - 22px);
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    opacity: 1;
    transform: scale(1.1);
}

.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg {
    fill: var(--dark, #212121);
    width: 18px;
    height: 18px;
}

.glightbox-clean .gprev {
    left: 20px;
}

.glightbox-clean .gnext {
    right: 20px;
}

/* Close button */
.glightbox-clean .gclose {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 16px;
    right: 16px;
    opacity: 0.8;
    transition: opacity 0.3s, background 0.3s;
}

.glightbox-clean .gclose:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.glightbox-clean .gclose svg {
    fill: white;
    width: 18px;
    height: 18px;
}

/* Counter (1 / 5) */
.glightbox-clean .gcontainer .gslide-title::before {
    display: none;
}

.glightbox-clean .gcounter {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .glightbox-clean .gnext,
    .glightbox-clean .gprev {
        width: 36px;
        height: 36px;
    }

    .glightbox-clean .gnext svg,
    .glightbox-clean .gprev svg {
        width: 14px;
        height: 14px;
    }

    .glightbox-clean .gprev {
        left: 10px;
    }

    .glightbox-clean .gnext {
        right: 10px;
    }

    .glightbox-clean .gclose {
        top: 10px;
        right: 10px;
    }

    .glightbox-clean .gcounter {
        top: 14px;
        left: 14px;
    }
}
/* ========================================
   SCROLL TO TOP
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--yellow);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ========================================
   FORM MODAL
   ======================================== */

.form-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.form-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(33, 33, 33, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.form-modal__container {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.form-modal.is-open .form-modal__container {
    transform: scale(1) translateY(0);
}

.form-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--light-bg);
    color: var(--dark);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.form-modal__close:hover {
    background: var(--dark);
    color: var(--white);
}

.form-modal__header {
    text-align: center;
    margin-bottom: 20px;
}

.form-modal__header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-modal__header p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-modal__form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-modal__form .form-group {
    margin-bottom: 12px;
}

.form-modal__form .form-checkbox {
    margin-top: 16px;
    margin-bottom: 20px;
}

.form-modal__form .form-checkbox label {
    font-size: 13px;
}

.form-modal__form .form-checkbox a {
    color: var(--purple);
    text-decoration: underline;
}

.form-modal__form .required {
    color: #d32f2f;
    margin-left: 2px;
}

.form-modal__submit {
    margin-top: 4px;
    padding: 14px;
    font-size: 15px;
}

.form-modal .form-message {
    margin-top: 16px;
}

/* Form Modal - Fixed CTA Button */
.form-modal-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(243, 194, 31, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
}

.form-modal-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.form-modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(243, 194, 31, 0.3);
}

.form-modal-cta i {
    font-size: 18px;
}

.form-modal-cta.is-dismissed {
    display: none !important;
}

@media (max-width: 768px) {
    .form-modal__container {
        padding: 24px 18px;
        width: 95%;
    }

    .form-modal__header h3 {
        font-size: 20px;
    }

    .form-modal__form .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-modal-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }

    .form-modal-cta__label {
        display: none;
    }

    .form-modal-cta i {
        margin: 0;
    }
}
