/* ═══════════════════════════════════════
   Homepage — index.css
═══════════════════════════════════════ */

/* ── Reset box-sizing ── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 60%, #1a3a2a 100%);
    color: #fff;
    overflow: hidden;
}

.home-hero--has-bg {
    background-size: cover;
    background-position: center;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 2rem 1.5rem;
}

.home-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    line-height: 1.2;
}

.home-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.home-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Hero buttons ── */
.btn-hero {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 2px solid transparent;
}

.btn-hero--primary {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}
.btn-hero--primary:hover {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: #fff;
}

.btn-hero--outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-hero--outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ════════════════════════════════
   SECTIONS COMMUNES
════════════════════════════════ */
.home-section {
    padding: 5rem 2rem;
}

.home-section--alt {
    background-color: hsl(var(--card));
}

.home-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.home-section__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 2.5rem;
    text-align: center;
}

.home-empty {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 1.05rem;
    padding: 1.5rem 0;
}

/* ════════════════════════════════
   SECTION ASSOCIATION
════════════════════════════════ */
.assoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.assoc-card {
    background: hsl(var(--background));
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.assoc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.11);
}

.assoc-card__img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.assoc-card__icon {
    font-size: 2.8rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    display: block;
}

.assoc-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.assoc-card__text {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ════════════════════════════════
   SECTION GÎTES
════════════════════════════════ */
.gites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.gite-card {
    background: hsl(var(--background));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.11);
}

.gite-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gite-card__body {
    padding: 1.25rem;
}

.gite-card__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.gite-card__desc {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.gite-card__capacity {
    font-size: 0.88rem;
    color: hsl(var(--primary));
    font-weight: 600;
}

/* ════════════════════════════════
   SECTION STAGES
════════════════════════════════ */
.stages-inner {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.stages-text {
    flex: 1;
    min-width: 0;
}

.stages-intro {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.stages-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.stages-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.97rem;
    color: hsl(var(--foreground));
    line-height: 1.5;
}

.stages-features .material-symbols-outlined {
    color: hsl(var(--primary));
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.stages-image {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.stages-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* ════════════════════════════════
   SECTION CONTACT
════════════════════════════════ */
.contact-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info__subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.97rem;
    color: hsl(var(--foreground));
    line-height: 1.5;
}

.contact-info__row .material-symbols-outlined {
    color: hsl(var(--primary));
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.contact-info__row a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.15s ease;
}
.contact-info__row a:hover {
    color: hsl(var(--primary));
}

.contact-map {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.contact-map img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.contact-map--placeholder {
    height: 340px;
    background: hsl(var(--muted));
    border-radius: 12px;
}

/* ════════════════════════════════
   FOOTER HOMEPAGE (non-fixe)
════════════════════════════════ */
.site-footer--home {
    position: static !important;
    height: auto !important;
    padding: 1.25rem 2rem;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 768px) {
    .stages-inner,
    .contact-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .stages-image img,
    .contact-map img {
        height: 220px;
    }

    .home-section {
        padding: 3rem 1.25rem;
    }
}

/* ════════════════════════════════
   ACTUALITÉS
════════════════════════════════ */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.actu-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--primary)) transparent;
}

.actu-grid::-webkit-scrollbar {
    height: 8px;
}

.actu-grid::-webkit-scrollbar-track {
    background: transparent;
}

.actu-grid::-webkit-scrollbar-thumb {
    background: hsl(var(--primary));
    border-radius: 4px;
}

.actu-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 280px;
    scroll-snap-align: start;
    background: hsl(var(--background));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 1024px) {
    .actu-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        min-width: 250px;
    }
}

@media (max-width: 640px) {
    .actu-card {
        flex: 0 0 90%;
        min-width: 250px;
    }
}

.actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.11);
}

.actu-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.actu-card__body {
    padding: 1.25rem;
}

.actu-card__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: hsl(var(--foreground));
}

.actu-card__date {
    font-size: 0.88rem;
    color: hsl(var(--muted-foreground));
    margin: 0 0 0.75rem;
    font-style: italic;
}

.actu-card__desc {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
    margin: 0;
}

.carousel-button {
    flex-shrink: 0;
    background: var(--brand-green);
    border: 2px solid var(--brand-green);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-button:hover:not(:disabled) {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-button .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .carousel-wrapper {
        gap: 0.75rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button .material-symbols-outlined {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .carousel-button {
        width: 36px;
        height: 36px;
    }
    
    .carousel-button .material-symbols-outlined {
        font-size: 1.1rem;
    }
}

