.logo img {
    width: 150px;
    height: auto;
    margin-bottom: 0px;
    margin-top: 0px;
}

h1, h2, h3 {
    font-family: "Abril Fatface", sans-serif;
    font-weight: 700;
}

p {
    font-family: "Ubuntu", sans-serif;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f2eff3;
    padding: 20px;

    border-bottom: 2px solid #8e4f9e ;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color:  #259e35;
    text-decoration: none;
}

.menu-toggle {
    display: none; /* caché sur grand écran */
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: relative;
    z-index: 1000;
}

nav ul li a.active {
    border-bottom: 2px solid #259e35;
    color: #259e35;
    padding-bottom: 1px;
}

nav ul li a:hover {
    border-bottom: 2px solid #259e35;
    padding-bottom: 2px;
    transition: 0.1s; /* effet doux */
}


body {
    font-family: Caladea, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 255, 255);
    text-align: center;   
}
footer{
    text-align :left;
    margin-bottom: 10px;

}
#mention {
    margin-left: 10px;
    font-size: 15px;
}

/* presentation */
#presentation {
    background-image: url("images/img8.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 500px;

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

.presentation-box {
    background: rgba(255,255,255,0.85);
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    text-align: center;
}

#presentation h1 {
    color: #259e35;
}

#presentation p{
    color :#363636;
}


/*actualité */
#actualites {
    width: 90%;
    margin: 30px auto;
}

#actualites h1 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    color: #363636;
}

#actualites h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #363636; 
    margin: 10px auto 0;
}

.actu,
.actu-inverse {
    display: flex;
    align-items: center;
    gap: 40px;

    padding: 30px;
    border-radius: 12px;
    background-color: #d0fccb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px; /* espace entre blocs */
}

.actu-inverse {
    flex-direction: row-reverse;
}

.actu-text {
    color: #363636;
}

.slider0 {
    position: relative;
    width: 380px;
    height: 220px; 
    flex-shrink: 0;
    overflow: hidden; 
    border-radius: 10px;    
    flex-shrink: 0;
}

.slider1 {
    position: relative;
    width: 320px;
    height: 220px; 
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;    
    flex-shrink: 0;
}
.slider2 {
    position: relative;
    width: 450px;
    height: 220px; 
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;    
    flex-shrink: 0;
}

.slides {
    width: 100%;
    display: flex;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.slide {
    width: 100%;
    flex: 0 0 100%;
    display: block;
    height: 100%;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.actu-text {
    flex: 1;
}

.actu:nth-child(even) {
    background-color: #dbfdd7;
}

.actu-inverse:nth-child(even) {
    background-color: #dbfdd7;
}

.bottom-section {
    width: 100%;
    background-color: #ffffff;
    padding: 0;
    color: rgb(83, 83, 83);
    border-top: 1px solid rgb(151, 150, 150);
    width: 100%;
}

.bottom-container {
    display: flex;
    align-items: center;      
    margin: 0 auto;
    gap: 0;/* espace entre image et texte */
}

.bottom-image img {
    margin : 0;
    width: 200px ; 
    display: block;/* enlève l'espace blanc sous l'image */
    padding: 0;
    height: auto; 
}

.bottom-text p {
    margin: 0;
}

/* page contact */

#contacts {
    width:100%;
    margin: 0px;
    padding: 80px 20px;
    box-sizing: border-box;

    background-image: url("images/toulouse4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;


    display: flex;
    flex-direction: column;
    align-items: center;

}

.contact-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    margin-top: 40px;
    color :#3b3d3b; 
}

#contacts h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #259e35;
    margin: 10px auto 0;
}

.contact-card {
    background-color:rgba(255,255,255,0.850);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    width: 500px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #259e35;
    font-size: 22px;
    font-weight: bold;
}

.contact-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.contact-card:hover {
    transform: translateY(-3px);
    transition: 0.2s ease;
}

.copy-card {
    position: relative;
    cursor: pointer;
}

.tooltip {
    position: absolute;
    right: 20px;
    top: -10px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* affichage au hover */
.copy-card:hover .tooltip {
    opacity: 1;
}

.map-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    width: 80%;
    margin: 80px auto;
}

.map-container {
    flex: 1;
}

.map-container iframe {
    border-radius: 10px;
}

.address {
    flex: 1;
    font-size: 18px;
    color :#3b3d3b;
}


.address h2 {
    margin-bottom: 10px;
}


/*page étudiants */

#etudiants {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#etudiants h1 {
    margin-top: 60px;
    text-align: center;
    margin-bottom: 25px;
    color :#3b3d3b;
}

.entete {
    flex-direction:row ;
    align-items: center;
    display: flex;
    padding-bottom: 30px;
    position: relative;
}

.entete h1 {
    margin-bottom: 80px;
    margin-top: 40px;
    color :#3b3d3b; 
}

.photoentete {
    height: 250px;
    max-width: 250px;
    flex-direction:row ;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 100%;
}


.tousliens::before {
    content: "";
    position: absolute;            
    left: 50%; 
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background-color: #656865;
    margin-bottom: 60px;
}

.tousliens,
.stages {
    max-width: 750px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.tousliens {
    margin-bottom: 60px;
    margin-top: 40px;
}

.stages {
    margin-top: 0px;
    position: relative;
    margin-bottom: 60px;
}

/* vraie ligne entre les deux blocs */
.stages::before {
    content: "";
    position: absolute;
    top: 0px;              /* plus petit = plus haut */
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background-color: #656865;
    margin-bottom: 0px;
}

#etudiants h2 {
    position: relative;
    display: inline-block;
    color:#3b3d3b;
    margin: 60px 0 20px 0;
    z-index: 1;
}

/* surlignage penché */
#etudiants h2::after {
    content: "";
    position: absolute;
    left: -6px;
    right: 6px;
    bottom: 0;
    width: calc(100% + 15px);
    height: 105%;
    transform: rotate(-2deg);
    z-index: -1;
    border-radius: 1px;
}

.tousliens h2::after {
    background: #5fd16e;
}

.stages h2::after {
    background: #b38ec0;
}

.tousliens p {
    text-align: center;
    margin-bottom: 25px;
    color:#3b3d3b;
}

.tousliens p::after {
    content: "";
    display: block;
    width: 600px;
    height: 2px;
    background-color :#656865;
    margin: 40px auto 0;
}

.tousliens ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tousliens li {
    margin: 14px 0;
    list-style: none;
}

.tousliens li:last-child {
    margin-bottom: 0;
}

#etudiants a {
    display: block;
    padding: 18px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#etudiants a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.tousliens a {
    background: #dbfdd7;
    color: #259e35;
}

.stages a {
    background: #ede0f1;
    color: #5f236e;
}

/*page partenaires */

#partenaires {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    color: #2f3430;
}

.partenaires-intro {
    text-align: center;
    margin-bottom: 45px;
}

.partenaires-intro h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #253126;
}

.partenaires-intro p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #5c655d;
}

.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f2eff3, #cfc5d3);
}

/*.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}*/

.card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.35rem;
    color: #263326;
}

.card p {
    margin-bottom: 22px;
    line-height: 1.6;
    color: #4c554d;
}

.card a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.72);
    color: #1f4f27;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.card a:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.95);
}

.card-plaquette a {
    color: #12505a;
}

/* Responsive */
@media (max-width: 700px) {
    .partenaires-intro h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .map-section {
        flex-direction: column;
        text-align: center;
    }
    .contact-link {
        font-size: 18px;
        gap: 15px;
    }

    .contact-logo {
        width: 35px;
        height: 35px;
    }

    #contacts {
        width: 90%;
    }
     .actu,
    .actu-inverse {
        flex-direction: column;
        text-align: center;
    }
    .slider {
        width: 100%;
        max-width: 350px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }

    nav ul.active {
        display: flex; 
    }

    .menu-toggle {
        display: block; 
        color :#259e35; 
    }

    nav ul li a:hover {
        border-bottom: 2px solid #259e35;
        padding-bottom: 2px;
        transition: 0.1s;
    }
}


