/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}



html {
    font-size: 10px;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #07090F;
    font-size: 1.6rem;
    line-height:2rem;
}

h1, h2, h3, h4, h5 {
    font-family: 'Josefin Sans', sans-serif;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 3rem 0;
}

h3 {
    font-size: 2.6rem;
    font-weight: 600;
    margin: 3rem 0;
}

h4 {
    font-size: 2rem;
    margin: 0.6rem 0;
}

h5 {
    font-size:1.8rem;
    margin: 0.4rem 0;
}

a {
    color: #0b8293;
    font-weight:600;
    text-decoration: none;
}

main {
    min-height:60vh;
    padding-top: 19.8rem;
}

.hidden {
    display:none;
}

header {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 19.4rem;
    z-index:1000;
}

header > section {
    font-family: "Josefin Sans", sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 10px 20px;
    width: 98vw;
    background-color:#fff;
}

header h1 img {
    height: 10rem;
}

header > section > div:nth-of-type(2) {
    display:flex;
    justify-content: space-between;
    align-items: center;
}

header > section > div:nth-of-type(2) img {
    width: 5rem;
}

header > section > div:nth-of-type(2) button {
    border: none;
    background-color: #ffffff;
    margin: 0 1rem ;
}

header > section > div:nth-of-type(2) a {
    font-size: 1.6rem;
    text-decoration: none;
    color: #0b8293;
    font-weight: 600;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 4px;
    border: 2px solid rgba(11, 130, 147, 0);
    background-color: rgba(11, 130, 147, 0.25);
}

header > section > div:nth-of-type(2) a:hover {
    border: 2px solid rgba(11, 130, 147, 0.25);
    background-color: #FFFFFF;
}

header > nav {
    background-color: #F15A22;
    display: flex;
    justify-content: center;
    padding: 2.5rem 0;
    box-shadow: 0px 0px 6px 4px rgba(0,0,0,0.1);
}

header > nav > ul {
    font-family: 'Josefin Sans', sans-serif;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 70vw;
    font-size: 2.2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f15a22;
    border: 1px solid #f15a22;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 20rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.4rem 0;
    margin-top: 0;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu > li > a {
    font-family: "Josefin Sans", sans-serif;
    display: block;
    padding: 1.2rem 1.4rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 66%;
  height: 1px;
  background-color: #F8F8F8;
}

.dropdown-menu > li:last-child > a::after {
  display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav > ul > li {
    position: relative;
}

nav > ul > li > a {
    color: #fff;
    text-decoration: none;
    padding: 2.5rem 1.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav > ul > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav > ul > li:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav > ul > li .dropdown-menu {
    top: calc(100% + 2.5rem);
}

nav > ul > li:has(.dropdown-menu) > a::after {
    content: "\25BC";
    font-size: 1rem;
    transition: transform 0.3s ease;
}

nav > ul > li:hover > a::after {
    transform: rotate(180deg);
}


/* CSS FOR MAIN */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 8rem;
}

main > .background-image {
    z-index:-10;
    width: 100%;
    height: 40rem;
    background-image: url('../img/banniere_asa.png');
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center center; 
    display: flex;
    justify-content: center;
    align-items:flex-end;
}

main .background-image p {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 2.5rem 2rem;
    font-size: 2.2rem;
    border-radius: 6px;
    margin-bottom:2rem;
}

main > .list {
    width: 75vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* align-items: stretch; */
    align-content:stretch;
    row-gap: 5rem;
    column-gap:2rem;
    /* gap: 4rem; */
    margin: 6rem 0;
}

main > .list > article {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 35rem;
    padding: 1.2rem;
    background-color: #F8F8F8;
    border-radius: 6px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

main > .list > article > div > h4 {
    margin:1.4rem 0;
}

main > .list > article > div {
    flex-grow:1;
}

main > .list > article > img {
    width: 100%;
    height: 18rem;
    border-radius: 6px;
}

main > .list > article p {
    margin: 0.5rem 0;
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
}

main > .list > article > a {
    text-decoration: none;
    /* margin: 0.6rem 0; */
    padding: 0.8rem 1rem;
    align-self: flex-end;
    background-color: rgba(11, 130, 147, 0.25);
    color: #0b8293;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid rgba(11, 130, 147, 0);
}

main > .list > article > a:hover {
    background-color: #F8F8F8;
    border: 2px solid rgba(11, 130, 147, 0.25);
}

/* CSS FOR CAROUSSEL */
.caroussel {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.caroussel .slides h4 {
    margin-top:0;
}

.slides {
  position: relative;
  width: 400%;
  height: 24rem;
  display:flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
    /* position: absolute; */
    width: 25%;
    flex-shrink:0;
    height: 100%;
    /* opacity: 0; */
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide p {
    text-align: center;
    width:50%;
}

.slide.active {
  opacity: 1;
}

.slide-1, .slide-3 {
    background-color: rgba(241, 90, 34, 0.25);
}

.slide-2, .slide-4 {
    background-color: rgba(11, 130, 147, 0.25);
}

.slides article h4 {
    margin: 2rem 0;
}

.caroussel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

button.prev {
  left: 1rem;
}

button.next {
  right: 1rem;
}


/* CSS FOR PARTNERS' LOGOS */
.logos {
    display:flex;
    flex-wrap: wrap;
    background-color:#F8F8F8;
    width: 100%;
    height: auto;
    justify-content: space-evenly;
    align-items: center;
    padding: 4rem 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.logos img {
    width: 12rem;
    margin:0.8rem 1rem;
}


/* CSS FOR CONTACT SECTION */
.contact {
    width: 80%;
    padding: 2rem 0;
}

.contact h3 {
    text-align: center;
}

.contact article {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    padding: 2rem 0;
}

.contact article form {
    display:flex;
    flex-direction: column;
    width: 30%;
}

.contact article form fieldset {
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0.8rem 0;
}

.contact article form fieldset input, textarea {
    background-color: #F8F8F8;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    padding:0.8rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 80%;
    font-family: 'Roboto', sans-serif;
}

.contact article form fieldset label {
    width:20%;
}

.contact article form fieldset textarea {
    height: 10rem;
}

.contact article form button {
    align-self: flex-end;
    background-color:rgba(11, 130, 147, 0.25);
    font-size:1.6rem;
    color:#0b8293;
    font-family: "Josefin Sans", sans-serif;
    border: 2px solid rgba(11, 130, 147, 0);
    border-radius: 6px;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}

.contact article form button:hover {
    background-color: #FFFFFF;
    border: 2px solid rgba(11, 130, 147, 0.25);
}

.contact article .address {
    width: 30%;
    background-color: #F8F8F8;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1.5rem 1.5rem;
}

.contact article .address p:nth-of-type(3) {
    margin-top: 3rem;
}

.contact article .address p:last-of-type {
    margin-top: 3rem;
}


/* CSS FOR FOOTER */
footer {
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    box-shadow: 0px -4px 6px -1px rgba(0,0,0,0.1),0px -2px 4px -2px rgba(0,0,0,0.1);
}

footer section {
    width: 30%;
    padding: 5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer section ul li {
    text-align:end;
}


/* VERSION MOBILE */
.burger-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    color: #0b8293; 
    z-index: 1001; 
}

.burger-bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #0b8293; 
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Accessibilité du menu burger */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    
    .burger-menu-toggle {
        display: block;
    }

    header > nav {
        position: fixed;
        top: 0; 
        height: 100vh;
        right: -100%; 
        left: auto;
        width: 85%;
        padding: 0; 
        background-color: #f8f8f8; 
        z-index: 999;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        max-width: 400px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    header.nav-open > nav {
        right: 0;
    }
    
    header > nav > ul {
        height: 100%;
        padding-top: 100px; 
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    header > nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    nav > ul > li > a {
        color: #07090F;
        padding: 15px 20px;
        font-size: 1.8rem;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .dropdown-menu {
        position: static; 
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        box-shadow: none;
        min-width: auto;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.1);
        border: none; 
    }

    .dropdown-menu li a {
        color: #07090F;
    }

    .dropdown-menu > li > a::after {
        display: none;
        background-color: #F15A22;
    }
    
    nav > ul > li:has(.dropdown-menu) > a::after {
        content: none;
    }

    .burger-menu-toggle.active .burger-bar:nth-child(2) {
        opacity: 0; 
    }

    .burger-menu-toggle.active .burger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu-toggle.active .burger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}