/* Styles spécifiques pour la section Alsace de Seminary */

:root {
    --alsace-primary: #7E22CE;
    --alsace-secondary: #A94BE0;
    --alsace-accent: #F3E8FF;
    --alsace-text: #1F2937;
    --alsace-light: #F8FAFC;
    --alsace-neutral: #f1f5f9;
    --alsace-dark: #1e293b;
    --alsace-dark-secondary: #334155;
}

/* Structure du header responsive */
.navbar-brand-section {
    flex: 1;
    max-width: calc(100% - 60px); /* Laisser de la place pour le hamburger */
}

.navbar-brand {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Indicateur de localisation Strasbourg dans le header */
.strasbourg-location {
    display: inline-flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    margin-left: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0; /* Empêche la compression */
}

.strasbourg-location:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.strasbourg-location .location-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    opacity: 0.9;
    animation: locationPulse 2s infinite;
}

.strasbourg-location .location-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.strasbourg-location .location-badge {
    margin-left: 4px;
    opacity: 0.7;
    animation: badgePulse 3s infinite;
}

/* Animation pour le badge */
@keyframes badgePulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Animation pulse pour l'icône de localisation */
@keyframes locationPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Animations et transitions globales */
* {
    transition: all 0.3s ease;
}

/* Carrousel Hero - Styles de base compatibles Bootstrap */
.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Contrôles du carrousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100%;
}

/* Indicateurs du carrousel */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Responsive pour les indicateurs */
@media (max-width: 768px) {
    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
}

.carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.8), rgba(169, 75, 224, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.carousel-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.carousel-cta {
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    color: var(--alsace-primary);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.carousel-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    color: var(--alsace-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Section générale */
.section {
    padding: 80px 0;
    position: relative;
}

/* Transitions visuelles entre sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 34, 206, 0.1), transparent);
}

.hero-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--alsace-primary), var(--alsace-secondary));
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--alsace-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--alsace-text);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Recherche avancée */
.search-section {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.search-card {
    background: linear-gradient(135deg, var(--alsace-accent), #ffffff);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(126, 34, 206, 0.1);
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--alsace-primary);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--alsace-text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--alsace-primary);
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

.search-btn {
    background: linear-gradient(45deg, var(--alsace-primary), var(--alsace-secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    height: fit-content;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.3);
}

/* Responsive pour la recherche */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Salles disponibles */
.rooms-section {
    background: var(--alsace-light);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.room-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(126, 34, 206, 0.2);
}

.room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-content {
    padding: 25px;
}

.room-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--alsace-primary);
    margin-bottom: 10px;
}

.room-details {
    color: var(--alsace-text);
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.room-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.room-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--alsace-secondary);
    margin-bottom: 15px;
}

.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--alsace-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-btn {
    background: linear-gradient(45deg, var(--alsace-primary), var(--alsace-secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.room-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.3);
}

/* Avantages */
.advantages-section {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--alsace-primary), var(--alsace-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--alsace-primary);
    margin-bottom: 15px;
}

.advantage-description {
    color: var(--alsace-text);
    line-height: 1.6;
}

/* Témoignages */
.testimonials-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--alsace-accent), #ffffff);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(126, 34, 206, 0.1);
    text-align: center;
    position: relative;
    border: 2px solid rgba(126, 34, 206, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(126, 34, 206, 0.2);
    border-color: var(--alsace-primary);
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--alsace-text);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--alsace-primary);
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--alsace-text);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Comment ça marche */
.how-it-works-section {
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--alsace-primary), var(--alsace-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--alsace-primary);
    margin-bottom: 15px;
}

.step-description {
    color: var(--alsace-text);
    line-height: 1.6;
}

/* CTA Final */
.cta-section {
    background: #ffffff;
    color: var(--alsace-text);
    text-align: center;
    border-top: 1px solid #e5e7eb;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--alsace-primary), var(--alsace-secondary));
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--alsace-primary);
    margin-top: 2rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: var(--alsace-text);
}

.cta-button {
    background: linear-gradient(45deg, var(--alsace-primary), var(--alsace-secondary));
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(126, 34, 206, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(126, 34, 206, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .carousel-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    /* Indicateur Strasbourg sur tablet */
    .strasbourg-location {
        margin-left: 12px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .strasbourg-location .location-icon {
        width: 15px;
        height: 15px;
        margin-right: 5px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }

    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    .carousel-content {
        padding: 0 20px;
    }

    .search-card {
        padding: 25px;
        margin: 0 15px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantages-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Structure header mobile */
    .navbar-brand-section {
        max-width: calc(100% - 50px); /* Plus de place pour le hamburger sur mobile */
        overflow: hidden;
    }

    .navbar-toggler {
        flex-shrink: 0;
        margin-left: auto;
    }

    /* Indicateur Strasbourg sur mobile */
    .strasbourg-location {
        margin-left: 8px;
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 12px;
        min-width: 0; /* Permet la compression si nécessaire */
    }

    .strasbourg-location .location-icon {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }

    .strasbourg-location .location-text {
        font-weight: 500;
        white-space: nowrap;
    }

    .strasbourg-location .location-badge {
        display: none; /* Masquer le badge sur très petit écran */
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .carousel-cta,
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Header très petit écran */
    .navbar-brand-section {
        max-width: calc(100% - 45px);
    }

    .header-logo-text {
        font-size: 1.1rem; /* Réduire légèrement la taille du texte Seminary */
    }

    .strasbourg-location {
        margin-left: 6px;
        padding: 2px 5px;
        font-size: 0.65rem;
        border-radius: 10px;
    }

    .strasbourg-location .location-icon {
        width: 10px;
        height: 10px;
        margin-right: 2px;
    }

    .strasbourg-location .location-text {
        font-size: 0.65rem;
    }

    /* Carrousel sur très petit écran */
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
    }

    .carousel-item {
        height: 50vh;
        min-height: 350px;
    }

    .carousel-content {
        padding: 0 15px;
    }

    .carousel-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .carousel-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }

    .carousel-cta {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    }
}
