@import url("styleglobal.css");

/* HEADER IMAGE */
.image-container {
    background-image: url("../Image/marchecambrai2bis.jpg");
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
}

.image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
}

.titre {
    position: absolute;
    top : 0;
    background-color: rgba(59, 148, 84, 0.9);
    color: white;
    padding: 30px 60px;
    border-radius: var(--radius);
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: "Signika", sans-serif;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.titre p {
    margin: 0;
}

/* CONTENU PRINCIPAL */

/* Titres de sections */
h2 { 
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin: 60px 0 30px;
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
}

/* CONTENEURS GLOBAUX (Carte + Info) */
.premiere, .deuxieme, .troisieme {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 0 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    
    /* Force les deux blocs à avoir la même hauteur */
    align-items: stretch; 
}

/* PARTIE GAUCHE : CARTE GOOGLE */
.premiere-left, .deuxieme-left, .troisieme-left {
    flex: 1;
    min-width: 350px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation "Lévitation" au survol de la carte */
.premiere-left:hover, .deuxieme-left:hover, .troisieme-left:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

iframe {
    width: 100%;
    height: 100%; 
    border: none; 
    display: block;
    min-height: 400px; 
}

/* PARTIE DROITE : INFOS */
.premiere-right, .deuxieme-right, .troisieme-right {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center;     /* Centre horizontalement tout le contenu */
    gap: 30px;
    
    border-top: 5px solid var(--primary); 
    position: relative;

    /* Transition pour l'effet de lévitation global */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation "Lévitation" au survol du bloc info entier */
.premiere-right:hover, .deuxieme-right:hover, .troisieme-right:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Sous-blocs (Adresse & Horaires) */
.premiere-right-left, .premiere-right-right,
.deuxieme-right-left, .deuxieme-right-right,
.troisieme-right-left, .troisieme-right-right {
    text-align: center; /* Force le centrage du texte à l'intérieur */
    width: 100%; /* S'assure qu'ils prennent toute la largeur pour bien centrer */
}

/* TITRES H3 & ICÔNES */
h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: "Josefin Sans", sans-serif;
    text-transform: uppercase;
}

/* CERCLE DE L'ICÔNE (Le span .logo-indication) */
.logo-indication {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 148, 84, 0.1); 
    border-radius: 50%;
    
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer; 
    flex-shrink: 0;
}

.logo-indication i {
    margin: 0;
    padding: 0;
}

/* Animation UNIQUEMENT au survol de l'icône (Cercle vert) */
.logo-indication:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 10px rgba(59, 148, 84, 0.3);
}

/* TEXTES & LISTE */
.premiere p, .deuxieme p, .troisieme p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 5px 0;
    line-height: 1.6;
}

/* Lignes de séparation pour les horaires */
.premiere-right-right p,
.deuxieme-right-right p,
.troisieme-right-right p {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    max-width: 300px;
    margin: 8px auto; /* Le auto assure le centrage horizontale */
}

.premiere-right-right p:last-child,
.deuxieme-right-right p:last-child,
.troisieme-right-right p:last-child {
    border-bottom: none;
}



/* MOBILE */
@media screen and (max-width: 768px) {
    .premiere-left, .deuxieme-left, .troisieme-left {
        height: 300px; 
    }
}