/*Style page accueil du site */

.modal {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.6);

    display: none;

    justify-content: center;

    align-items: center;

    z-index: 9999;
}


.modal-content {

    background: #fff;

    padding: 40px;

    border-radius: 12px;

    text-align: center;

    width: 400px;

    max-width: 90%;

    position: relative;
}


.close {

    position: absolute;

    right: 15px;

    top: 10px;

    cursor: pointer;

    font-size: 22px;
}


.grid-container {
	
    width: 100%;

    min-height: calc(100vh - 80px);	
	
    display: grid;
		
	grid-template-columns: 19% 60% 19%;
	
    gap: 1%;
	
    justify-content: space-around!important;
	
    /*align-items: center;*/
	
    padding-left: 10px;
	
    padding-right: 10px;
    margin-top: 0px;
	
}



.grid-item {

    background-color: transparent;

    color: black;

    padding: 10px;

    text-align: center;

    font-size: 1.2em;
}


.img-fluid{
    border-radius: 6px;
}

 .demcafe {
	color:#fb04ad;
	font-size: 4em;
	font-style: italic;
	font-weight: bold;
	position: absolute;
    /*display: flex;              Active le mode Flexbox */
    justify-content: center;   /* Centre horizontalement */
    align-items: center;  
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 5px 20px ;
    border-radius: 6px;
    width: 60%;
    z-index: 999;
 }
 
	 
.precis{
	 font-size: 0.5em;
     font-weight: bold;
	 color: white;
}

.menu-actions {

    display: flex;

    gap: 10px;

    margin-left: 50px;
}

.grid-item .trajet {

    font-size: 0.6em;
    
    /*white-space: nowrap;*/
}


.btn-action {

    padding: 8px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 500;

    background: #f5f5f5;

    border: 1px solid #ddd;

    color: #333;
}


.btn-action:hover {

    background: #e9ecef;
}


.btn-rdv {

    background: #0d6efd;

    color: #fff;

    border-color: #0d6efd;
}


.btn-rdv:hover {

    background: #0b5ed7;

    color: #fff;
}


.nav-link {

    color: white;
}






@media (max-width: 992px) {

    /********* RESPONSIVE *********/

    html {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        width: 100%;
        min-height: 100%;
        height: auto;
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .grid-container {
        width: 100%;
        height: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px 5px;
        box-sizing: border-box;
        align-items: stretch;
    }

    /* Café Démarches en premier */
    .grid-item:nth-child(2) {
        order: 1;
    }

    /* Bloc gauche ensuite */
    .grid-item:nth-child(1) {
        order: 2;
    }

    /* Bloc droit en dernier */
    .grid-item:nth-child(3) {
        order: 3;
    }

    /* On garde le texte du bloc central,
       mais pas son image */
    .grid-item:nth-child(2) img {
        display: none;
    }

    .grid-item {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        font-size: 1em;
    }

    .demcafe {
        position: static;
        display: block;
        width: 100%;
        transform: none;
        font-size: 2.1em;
        color:#bd0250;
        line-height: 1.1;
        padding: 0 5px;
        box-sizing: border-box;
        text-shadow:none;
    }

    .demcafe p {
        margin-top: -2px;
        margin-bottom: 0;
    }

    .precis {
        color:black;
        font-size: 0.45em;
        line-height: 1.0em;
    }

    .grid-item:first-child .img-fluid,
    .grid-item:nth-child(3) .img-fluid {
        width: 100%;
        height: auto;
        display: block;
    }

    .trajet {
        font-size: 0.70em;
        /*white-space: normal;*/
        line-height: 1;
    }

    /* =========================
       MENU
    ========================= */

    .menu-actions {
        margin-left: 0;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* =========================
       BOUTONS
    ========================= */

    .btn-action {
        padding: 6px 8px;
        font-size: 0.9em;
    }

    .navbar {
        padding: 8px 10px;
    }

    .navbar-toggler {
        margin-left: auto;
        border: 1px solid rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.15);
    }

    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

    .navbar-collapse {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .navbar-nav {
        width: 100%;
        align-items: center;
    }

    .navbar-nav .nav-link {
        padding: 8px 5px;
    }

    .menu-actions {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-site {
        margin-top: 20px;
    }

}

/* =========================
   Modales des rubriques
   ========================= */

.rubrique-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
    padding: 20px;
}

.rubrique-modal-content {
    position: relative;
    background: #fff;
    width: 700px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.rubrique-modal-content h2 {
    margin: 0 40px 25px 0;
    color: #333;
    font-size: 28px;
}

.rubrique-close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.rubrique-close:hover {
    color: #000;
}

.rubrique-contenu {
    line-height: 1.7;
    color: #333;
}

.rubrique-contenu img {
    max-width: 100%;
    height: auto;
}

}