/* =========================================================
RESET & BASE GLOBALE
========================================================= */
html, body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #eaf2fb;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: relative; /* référence pour l'absolu */
    background-color: #023e8a;
    color: white;
    height: 120px;
    padding: 0 40px;
    box-sizing: border-box;
}


header img.logo {
    height: 100px;
    width: auto;
}

.logo-container {
    position: absolute;
    left: calc(50% - 500px); /* ajuste selon la largeur */
    top: 50%;
    transform: translateY(-50%);
	 height: 100px;
}


/* Bloc central qui contient le titre + nav */
header .center-block {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
	width: 90%;           /* 👈 prend 90% de la largeur */
    max-width: 800px;    /* optionnel : limite sur grands écrans */
}

/* Titre */
header h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

/* Navigation centrée sous le titre */
header nav {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

header nav a:hover,
header nav a.active {
    text-decoration: underline;
}

/* =========================================================
FLEX GÉNÉRAUX & MISES EN PAGE
========================================================= */
main {
    flex: 1;
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

main .content-inner {
    width: 90%;
    height: calc(100vh - 243px);
    margin: 0 auto;
    box-sizing: border-box;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap;
}

.flex-container section {
    flex: 1 1 45%;
    min-width: 250px;
    box-sizing: border-box;
}

/* =========================================================
Home Page
========================================================= */
.intro {
    background-color: #ffffff;
    border-left: 6px solid #023e8a;
    border-right: 6px solid #023e8a;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 20px 25px;
    margin: 30px auto 50px auto;
    width: 85%;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222;
}

.center-logo img {
    width: 350px;
}


.layout,
.bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.layout {
    margin-bottom: 60px;
}

.bottom-row {
    align-items: flex-start;
    margin-top: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-home {
    width: 350px;
    border-radius: 10px;
}


.intro p {
    margin: 0;
}

.note {
    width: 280px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-align: left;
}

.note.yellow {
    width: 420px;
}

.note.green {
    width: 420px;
}

.note h2 {
    text-align: center;
    margin-top: 0;
}

.purple { background-color: #7d3cb5; color: #fff; }
.pink   { background-color: #ff7b93; color: #fff; }
.green  { background-color: #a8d7c7; color: #003a2d; }
.yellow { background-color: #ffde59; color: #004d40; }

/* =========================================================
PAGE CALENDRIER
========================================================= */
main.full-height {
    position: relative;
}

main.full-height iframe {
    width: 80%;
    height: calc(100vh - 223px);
    border: none;
    display: block;
}

.text-desktop {
    display: none;
}

.text-mobile {
    display: none;
}

.next-month {
        display: none; /* cache le lien sur mobile */
}

.next-month {
    position: absolute;
    top: 50%;
    right: 2%;
    left: 90%;
    transform: translateY(-50%);
    background-color: #0077b6;
    color: #ffffff;
    font-weight: 600;
    font-size: 1em;
    padding: 4px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.next-month:hover {
    background-color: #0096c7;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    cursor: pointer;
}

/* =========================================================
PAGE CONTACT
========================================================= */
.flex-container > .contact-container {
    padding: 20px;
    background: #f8fbff;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.04);
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
}

.flex-container > .contact-info {
    flex: 0 0 30%;
}

.content-inner > h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #023e8a;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form .form-row {
    display: flex;
    gap: 10px;
}

form .form-row label {
    flex: 0 0 80px;
    text-align: right;
    padding-top: 5px;
}

form .form-row input,
form .form-row textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

form input[type="text"],
form input[type="email"],
form textarea {
    font-family: 'Poppins', Arial, sans-serif; /* police souhaitée */
    font-size: 1rem;      /* taille du texte */
    color: #333;          /* couleur du texte */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

form .form-row textarea {
    min-height: 120px;
    resize: vertical;
    align-self: flex-start;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.form-actions button {
    margin-left: 110px;
    background-color: #023e8a;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-actions button:hover {
    background-color: #0353a4;
}

/* =========================================================
PAGE "OÙ NOUS TROUVER"
========================================================= */
.map-text-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 90%;
    margin: 20px auto;
}


.text-container {
    flex: 0 0 30%;
    font-size: 1rem;
    line-height: 1.5;
	min-width: 250px;
}

.map-text-container h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}


.map-container {
    flex: 0 0 70%;
}

.map-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Titres h3 dans la colonne de gauche */
.text-container h3 {
    margin-top: 10px;        /* espace avant chaque h3 */
    margin-bottom: 10px;     /* petit espace sous le h3 */
    color: #023e8a;          /* bleu du thème */
    font-size: 1.2rem;       /* un peu plus grand que le texte */
    border-bottom: 2px solid #90caf9; /* ligne fine sous le titre */
    padding-bottom: 4px;     /* espace entre texte et la ligne */
}

	.text-container p {
    margin-bottom: 30px;        /* espace avant chaque h3 */  
	}
	
	.text-container ul {
    margin-bottom: 30px;        /* espace avant chaque h3 */  
	}

/* Icônes transport */
.icon-tram,
.icon-bus {
    display: inline-block;
    width: 60px;
    height: 21px;
    vertical-align: middle;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 5px;
}

/* Liste d’accès */
.acces-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acces-list li {
    margin-bottom: 8px;
}

.acces-list .ligne {
    color: #8000ff;
    font-weight: bold;
}

/* =========================================================
FOOTER
========================================================= */
footer {
    background-color: #023e8a;
    color: white;
    text-align: center;
    padding: 3px;
    font-size: 0.7rem;

}

footer p {
    margin: 0;
}



/* =========================================================
RESPONSIVE DESIGN
========================================================= */

@media screen and (max-width: 1290px) {

    .next-month {
        position: static;        /* 🔥 sort du positionnement absolu */
        transform: none;
        margin: 20px auto 0;     /* sous le PDF */
        display: inline-block;
    }

    main.full-height {
        display: flex;
        flex-direction: column;
        align-items: center;     /* centre iframe + bouton */
    }

    main.full-height iframe {
        width: 100%;             /* optionnel : PDF plus large sur mobile */
    }
	
	.text-desktop {
        display: none;
    }

    .text-mobile {
        display: none; /*inline*/
    }
	.next-month {
        display: none; /* cache le lien sur mobile */
    }
}

@media screen and (max-width: 1023px) {
	/***** Header *****/	
	.logo-container {
        display: none;
    }
	
	
	 /***** Main Page *****/	
	.layout {
		align-items: flex-start;
		display: grid;
		grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour les notes */
		grid-template-rows: auto auto;         /* 2 lignes */
		grid-template-areas:
			"logo logo"
			"note1 note2";
		gap: 40px;
		justify-items: center; /* centre horizontalement chaque élément dans sa cellule */
		margin-bottom: 40px;
		 
	}

	.center-logo {
		grid-area: logo;
	}

	.note.purple {
		grid-area: note1;
		width: 80%;       /* prend toute la largeur de sa cellule */
	}

	.note.pink {
		grid-area: note2;
		width: 80%;       /* prend toute la largeur de sa cellule */
	}

	.logo-home {
		width: 350px;
		border-radius: 10px;
	}
	
	
	 /* Carte + texte vertical */
    .map-text-container {
        flex-wrap: wrap;
    }

    .text-container,
    .map-container {
        flex: 0 0 100%;
        width: 100%;
    }

    .map-container iframe {
        height: 500px;
    }
	
    .flex-container {
        flex-direction: column;
        gap: 20px;
    }


    .flex-container > .contact-container,
    .flex-container > .contact-info {
        flex: 0 0 auto;
        width: 100%;
    }
	.flex-container > .contact-container{
	padding: 20px 10px;
	}
	
	.flex-container > .contact-info {
	margin-left: 20px;
	}
	 
	
	.page-contact .content-inner {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
     height: auto;        /* 🔥 supprime la contrainte */
    min-height: unset;  /* sécurité */
	}
}



@media screen and (max-width: 768px) {
    main {
        width: 95%;
        padding: 12px;
    }

    main .content-inner {
        width: 100%;
    }

    .flex-container section {
        flex: 0 0 100%;
    }



	/***** Header *****/	
	header {
		padding: 0 10px;
		height: 80px;

}
	
	 /* Titre */
    header h1 {
        font-size: 1.3rem;   /* réduit depuis 1.8rem */ 
    }

    /* Navigation */
    header nav {
        gap: 20px;          /* espace réduit entre les liens */    
    }

    header nav a {
        font-size: 0.7rem;  /* texte plus petit */
    }


	 /***** Main Page *****/	
	.intro {
    padding: 20px 15px;
    margin: 30px auto 50px auto;
    width: 80%;
    font-size: 1rem; 
	}

    .layout,
    .bottom-row {
		display: flex;
		justify-content: center;
        flex-direction: column;   /* empile les éléments */
        align-items: center;      /* centre horizontalement */
        gap: 20px;                /* espace vertical réduit */
		margin-bottom: 20px;
    }

    .note,
    .note.yellow,
    .note.green {
        width: 80%;               /* toujours 80% */
        text-align: center;         /* si tu veux le texte aligné à gauche */
    }

    .center-logo {
        order: -1;                /* logo en premier */
        margin-bottom: 20px;
		display: flex;
        justify-content: center;
    }
	
	.center-logo img {
        width: 60%;
    }
	
	/***** MAP *****/
	.map-text-container {
		margin: 0 auto 20px auto;
	}	
	
	.map-container iframe {
        height: 300px;
    }
}
	
	


