:root {
    --color-primary: #f3a409;
    --color-secondary: #41225d;
    --color-dark: #282828;
    --color-light: #e3d8f1;
}

/* ---------- HERO ---------- */

.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding-top: 15vh;
    background: rgba(0,0,0,0.25);
}

.carousel-item,
.hero-slide {
    height: 80vh;
}

.hero-slide {
    background-size: cover;
    background-position: center;
}

/* ---------- TYPO ---------- */

h1, h2, h3, h4, h5, h6 {
    color: var(--color-secondary);
    font-weight: 300;
}

p {
    color: var(--color-secondary);
}

.color-primary {
    color: var(--color-primary);
}

.color-secondary {
    color: var(--color-secondary);
}

/* ---------- CARDS ---------- */

.date-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;

    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform .25s ease, box-shadow .25s ease;
}

.date-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.date-card .card-body {
    padding: 20px;
}

.date-card:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 20px rgba(0,0,0,1);
}

/* ---------- ABOUT HERO ---------- */

.about-hero {
    width: 100%;
    height: 70vh;

    background-image: url("https://wallpaperbat.com/img/156037-download-wallpaper-2560x1080-hermes-sculpture-mercury-monument.jpg");
    background-size: cover;
    background-position: center;

    position: relative;
    display: flex;
    align-items: center;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.about-hero-text {
    position: relative;
    z-index: 2;

    color: white;
    max-width: 600px;
    margin-left: 8vw;
}

.about-hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.about-hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ---------- ABOUT BODY ---------- */


.timeline-slide{
    position:relative;
}

.timeline-slide img{
    width:100%;
    height:80vh;
    object-fit:cover;
}

/* navigation années sur l'image */

.timeline-years{
    position:absolute;
    top:40px;
    left:50%;
    transform:translateX(-50%);
    margin-top: 25px;
    display:flex;
    flex-wrap:wrap; /* 👈 important */
    justify-content:center;

    gap:clamp(10px, 2vw, 40px);

    z-index:5;

    width:90%; /* 👈 au lieu de max-width:80vh */
}

.timeline-years button{
    background:none;
    border:none;

    color:white;

    font-size:clamp(0.9rem, 2vw, 1.8rem);

    opacity:0.7;
    cursor:pointer;

    white-space:nowrap; /* 👈 évite les retours moches */
}

.timeline-years button.active{
    opacity:1;
    border-bottom:2px solid white;
}

.timeline-text{
    position:absolute;
    bottom:60px;
    left:60px;
    background:rgba(0,0,0,0.5);
    color:white;
    padding:25px;
    max-width:400px;
}

/*EQUIPE*/

.team-member{
    text-decoration:none;
    color:var(--color-secondary);
}

.team-member img{
    width:10vh;
    height:10vh;
    object-fit:cover;

    border-radius:50%;
    border:5px solid #1c5b4f;

    transition:.3s;
}

.team-member span{
    display:block;
    margin-top:15px;
    font-size:1.2rem;
}

.team-member:hover img{
    transform:scale(1.05);
}

/* ---------- FESTIVAL BUTTON ---------- */


.festival-btn{
    height:100px;
    width:100%;

    display:flex;
    align-items:center;

    justify-content:center; /* 👈 centré */

    text-align:center; /* 👈 important pour multi-ligne */

    background-size:cover;
    background-position:center;

    border-radius:12px; /* 👈 arrondi */
    box-shadow:0 8px 20px rgba(0,0,0,0.25); /* 👈 shadow */
    text-decoration:none;
    position:relative;
    overflow:hidden;
}

/* overlay */
.festival-btn::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4);
    transition:0.3s;
}

/* texte */
.festival-btn span{
    position:relative;
    color:white;

    font-size:clamp(1.2rem, 3vw, 2rem); /* 👈 responsive font */
    font-weight:600;
    text-transform:uppercase;

    max-width:90%;
}

/* hover */
.festival-btn:hover::before{
    background:rgba(0,0,0,0.6);
}

.festival-btn:hover span{
    transform:scale(1.05);
    transition:0.3s;
}

/* ---------- GRANGE HERO ---------- */


.grange-hero{
    width: 100%;
    height: 70vh;

    background-image: url("https://wallpaperbat.com/img/156037-download-wallpaper-2560x1080-hermes-sculpture-mercury-monument.jpg");
    background-size: cover;
    background-position: center;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* overlay */
.grange-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* TEXTE */
.grange-hero-text{
    position: relative;
    z-index: 2;

    color: white;

    width:100%;              /* 👈 IMPORTANT */
    display:flex;            /* 👈 force centrage */
    justify-content:center;  /* 👈 centre horizontal */
    text-align:center;
}

/* TITRE */
.grange-hero-text h1{
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin:0;
}


/* ---------- FOOTER ---------- */

.footer-link:hover{
    text-decoration:underline;
}

/* BOTTOM */
.footer-bottom{
    padding:30px 0;
}

/* logos */
.footer-logo{
    max-height:60px;
    width:auto;
    opacity:0.8;
    transition:0.3s;
}

.footer-logo:hover{
    opacity:1;
}