/* ============================================
   DahuTrek — Styles spécifiques aux pages
   Styles inline extraits des fichiers HTML
   ============================================ */

/* ---------- PAGE CONTACT ---------- */
.type-btn {
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}
.type-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-text);
}
.type-btn.active {
    background: var(--color-primary);
    color: var(--color-black);
}
.form-section {
    display: none;
}
.form-section.visible {
    display: block;
}
input.form-input,
select.form-input,
textarea.form-input,
.form-input {
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 0.9rem !important;
    font-family: var(--font-family) !important;
    border: none !important;
    border-bottom: 2px solid #b5a48a !important;
    background: transparent !important;
    color: var(--color-text) !important;
    border-radius: 0 !important;
    transition: border-color 0.3s ease, background 0.3s ease;
    box-shadow: none !important;
}
input.form-input:hover,
select.form-input:hover,
textarea.form-input:hover,
.form-input:hover {
    border-bottom-color: var(--color-text-muted) !important;
}
input.form-input:focus,
select.form-input:focus,
textarea.form-input:focus,
.form-input:focus {
    outline: none !important;
    border-bottom-color: var(--color-primary) !important;
    background: var(--color-gold-10) !important;
}
.form-input::placeholder {
    color: var(--color-text-light);
    font-weight: 300;
}
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.form-label .required {
    color: var(--color-primary-dark);
}
.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.radio-group label:hover,
.checkbox-group label:hover {
    background: var(--color-gold-10);
}
.radio-group input[type="radio"],
.radio-group input[type="checkbox"],
.checkbox-group input[type="checkbox"] {
    accent-color: var(--color-primary-dark);
    width: 18px;
    height: 18px;
}
.btn-submit {
    display: inline-block;
    padding: 16px 56px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-family);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-black);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.btn-submit:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 8px 24px rgba(252, 198, 26, 0.35);
    transform: translateY(-2px);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(252, 198, 26, 0.3);
}
.intro-text {
    font-size: 0.925rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}
.fade-in {
    animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- PAGE HOMEPAGE — Hero Carousel ---------- */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: calc(-1 * var(--nav-height));
    padding: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}
.carousel-dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

/* ---------- PAGE HOMEPAGE — Hero outline button ---------- */
.hero-btn-outline {
    color: #ffffff !important;
    border: 2px solid #ffffff;
}
.hero-btn-outline:hover {
    background: #ffffff;
    color: #000000 !important;
}

/* ---------- PAGE HOMEPAGE — Fix padding titre rando ---------- */
.rando-showcase .font-bold.text-xl,
.rando-showcase .font-bold.text-2xl,
.rando-showcase .font-bold.text-lg {
    padding-bottom: 0;
}

/* ---------- PAGE HOMEPAGE — Rando Showcase ---------- */
.rando-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.rando-showcase img {
    transition: transform 0.5s ease;
}
.rando-showcase:hover img {
    transform: scale(1.05);
}
.rando-showcase .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

/* ---------- PAGE HOMEPAGE — Cairn Colonnes Layout ---------- */
.cairn-img-top {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
    margin: 0 auto 2rem;
    display: block;
}
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.valeur-col h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.valeur-col p {
    font-size: 0.95rem;
    line-height: 1.7;
}
@media (max-width: 700px) {
    .valeurs-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cairn-img-top { width: 180px; }
}

/* ---------- PAGE NOS RANDOS — Cards & Filters ---------- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.filter-tab {
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
}
.filter-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.filter-tab:hover::after,
.filter-tab.active::after {
    width: 100%;
}
.filter-tab.active {
    color: var(--color-text) !important;
    font-weight: 600;
}

/* ---------- PAGE EVENT DETAIL — Modale inscription ---------- */
.dahutrek-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.dahutrek-modal.active {
    display: flex;
}
.dahutrek-modal-content {
    background: var(--color-bg);
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dahutrek-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
.dahutrek-modal-close:hover {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-primary);
}
.dahutrek-date-option {
    transition: all 0.2s ease;
}
.dahutrek-date-option:hover {
    border-color: var(--color-primary) !important;
    background: var(--color-gold-10) !important;
}
.dahutrek-date-option:has(input:checked) {
    border-color: var(--color-primary) !important;
    background: var(--color-gold-10) !important;
    box-shadow: 0 0 0 2px var(--color-primary);
}
.dahutrek-modal-content input:focus,
.dahutrek-modal-content select:focus,
.dahutrek-modal-content textarea:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(252, 198, 26, 0.2);
}

/* ---------- PAGE EVENT DETAIL — Stats, Gallery & Sidebar ---------- */
.stat-box {
    transition: transform 0.3s ease;
}
.stat-box:hover {
    transform: translateY(-3px);
}
.gallery-img {
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ---------- PAGE EVENT DETAIL — Timeline & Gallery ---------- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-primary);
    position: absolute;
    left: 50%;
    top: 1.5rem;
    transform: translateX(-50%);
    z-index: 2;
}
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.25s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }
.timeline-item:nth-child(4) { animation-delay: 0.55s; }
.timeline-item:nth-child(5) { animation-delay: 0.7s; }
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.photo-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}
.photo-strip::-webkit-scrollbar {
    height: 6px;
}
.photo-strip::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 3px;
}
.photo-strip::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}
.photo-strip-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.photo-strip-item:hover {
    transform: scale(1.03);
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ---------- PAGE PRESSE — Timeline ---------- */
.presse-article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.presse-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* ---------- EVENTS MANAGER — Booking Form Styling ---------- */
.dahutrek-booking-form {
    margin-top: 12px;
}
.dahutrek-booking-form table {
    width: 100%;
    border: none;
}
.dahutrek-booking-form table td,
.dahutrek-booking-form table th {
    padding: 6px 4px;
    border: none;
    font-size: 0.875rem;
    font-family: var(--font-family);
    color: var(--color-text);
}
.dahutrek-booking-form input[type="text"],
.dahutrek-booking-form input[type="email"],
.dahutrek-booking-form input[type="tel"],
.dahutrek-booking-form input[type="number"],
.dahutrek-booking-form select,
.dahutrek-booking-form textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-family: var(--font-family);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s ease;
}
.dahutrek-booking-form input:focus,
.dahutrek-booking-form select:focus,
.dahutrek-booking-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.dahutrek-booking-form input[type="submit"],
.dahutrek-booking-form button[type="submit"] {
    display: inline-block;
    padding: 10px 32px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-primary);
    color: var(--color-black);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}
.dahutrek-booking-form input[type="submit"]:hover,
.dahutrek-booking-form button[type="submit"]:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(252, 198, 26, 0.4);
}
.dahutrek-booking-form .em-booking-message-success {
    background: var(--color-primary-light);
    color: var(--color-text);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 8px;
}

.font-bold.text-xl {
    padding-bottom: 0;
}
