
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Old Standard TT', serif;
    background-color: #0a0a0a; 
    color: #f5f5f5; 
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
}

.hero {
    width: 100%;
    height: 500px; 
    background-image: url('images/grande-image-corteiz.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    color: white; 
    font-size: 2rem;
    text-align: center;
}
.hero-image {
    position: relative;
    width: 100%;
    height: 750px; 
}
.hero-image h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    font-size: 5rem; 
    color: #ffd700; 
    font-weight: bold; 
    text-align: center;
    text-transform: uppercase; 
}
.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    z-index: -1; 
}

body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

section {
    padding: 0;
    margin: 0;
}

.hero-image {
    position: relative;
    width: 100%;

}



header {
    background-color: #000; 
    color: #f5f5f5; 
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    height: 80px; 
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2); 
}

nav {
    display: flex;
    background: #000000; 
    padding: 15px;
    width: 100%;
    justify-content: flex-end;
}
nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}
nav a {
    color: #f5f5f5; 
    text-decoration: none;
    list-style: none;
    padding: 0px 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

nav a:hover {
    color: #ffd700;
}


nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #ffd700; 
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background: #1a1a1a;
    padding: 15px;
    width: 100%;
}
ul li a:hover,
ul li a.active {
    color: #ffd700;
    font-weight: bold;
    text-decoration: underline;
    transition: all 0.3s ease-in-out;
}
ul li a.active {
    color: #ffd700;
    font-weight: bold;
    text-decoration: underline;
}


.logo img {
    height: 70px; 
    width: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(0.9);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}


.main {
    display: flex;
    align-items: center;
    flex-direction: column;
     width: 100%;
     margin: auto 0;
    padding: 20px;
    background: #141414;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1); 
}
.menu {
    width: 100%;
}

.menu img {
    width: 100%;
    height: 900px;
}



.presentation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 20px;
}
.presentation h2 {
    color: #ffd700; 
}

.presentation-item {
    display: flex;
    flex-direction: row;
    padding: 20px;
    align-items: center;
}

.presentation-item img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: 5px solid #ffd700;
    border-radius: 8px; 
}

.presentation-item img:hover {
    transform: scale(1.1);
    border-color: #caa000; 
}


.presentation-text,
.collaboration-text {
    width: 80%; 
    margin: 20px auto; 
    padding: 20px;
}
.presentation-text p,
.collaboration-text p {
    font-size: 1.2em; 
    line-height: 1.8; 
}


.carousel-container h2 {
    margin: 30px;
    text-align: center;
    font-size: 50px;
    color: #ffd700; 
}

.carousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.carousel img {
    width: 500px;
    height: 600px;
    object-fit: contain;
}

.carousel button {
    width: 30px;
    height: 50px;
    margin: 30px;
}

.carousel-text {
    font-size: 1.8em;
    color: #ffd700; 
    text-align: auto; 
    margin: 20px 0; 
}


.carousel-p {
    width: 1200px;
    font-size: 20px;
}
.carousel-images img {
    width: 500px;
    height: 600px;
    object-fit: contain;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 4px solid transparent;
    border-radius: 8px;
}

.carousel-images img:hover {
    transform: scale(1.1);
    border-color: #ffd700; 
}

footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(255, 215, 0, 0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.footer-left p {
    margin: 5px 0;
    font-size: 1em;
    color: #f5f5f5;
}

footer li {
    list-style: none;
    margin: 10px 0;
}

footer a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: 0.3s;
}

footer a:hover {
    color: #ffd700;
}

footer nav {
    display: flex;
    justify-content: flex-end;
}

footer nav ul {
    display: flex;
    list-style: none;
}

footer nav ul li {
    margin-left: 20px;
}

footer nav ul li a {
    color: #f5f5f5;
    text-decoration: none;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

footer nav ul li a:hover {
    color: #ffd700;
}

footer .logo img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}
.footer-left p {
    margin: 5px 0;
    font-size: 1em;
    color: #f5f5f5; 
}


.footer-left .yellow-text {
    color: #ffd700; 
}


button, .btn {
    background: #ffd700; 
    color: #000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: 0.3s;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

button:hover, .btn:hover {
    background: #caa000; 
}



form {
    max-width: 600px;
    margin: auto;
    background: #1a1a1a; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
}

form h2 {
    color: #ffd700; 
    text-align: center;
    margin-bottom: 15px;
}

form label {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    color: #f5f5f5;
    cursor: pointer;
    margin: 10px 0;
}

form input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 10px;
}

form input[type="radio"]:checked {
    background-color: #ffd700;
}

form input[type="radio"]::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

form input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}
form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffd700; 
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ffd700; 
    border-radius: 5px;
    font-size: 1em;
    background: #0a0a0a;
    color: #f5f5f5;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 5px;
    padding: 10px;
    max-width: 1000px;
    margin: auto;
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    height: 350px; 
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: grayscale(100%) blur(2px);
    transition: all 0.5s ease-in-out;
    border: 4px solid #ffd700;
    border-radius: 8px;
}

.image-box img:hover {
    filter: none;
    transform: scale(1.05);
    border-color: #caa000;
}
.message {
    font-weight: bold;
    padding: 10px;
    margin: 10px 0;
}

.success {
    background-color: #4CAF50; 
    color: white;
}

.error {
    background-color: #f44336;
    color: white;
}


#myTable {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
}

#myTable th, #myTable td {
    padding: 10px;
    text-align: left;
    color: #ffd700; 
}


#myTable th {
    background-color: #141414;
    font-weight: bold;
    border-bottom: 2px solid #ffd700; 
}

#myTable tr:nth-child(even) {
    background-color: #2a2a2a; 
}

#myTable tr:nth-child(odd) {
    background-color: #1a1a1a; 
}

#myTable tr:hover {
    background-color: #333; 
}


#myTable td {
    border-bottom: 1px solid #ffd700; 
}


#myTable td {
    font-size: 1em;
    font-weight: normal;
}
fieldset {
    border: 2px solid #ffd700; 
    border-radius: 8px; 
    padding: 20px;
    margin: 20px 0;
    background-color: #1a1a1a; 
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2); 
}

legend {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffd700; 
    padding: 5px 10px;
    background-color: #141414;
    border-radius: 5px;
}

fieldset label {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    color: #f5f5f5;
    margin: 10px 0;
    cursor: pointer;
}

fieldset input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

fieldset input[type="radio"]:checked {
    background-color: #ffd700;
}

fieldset input[type="radio"]::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

fieldset input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);@media (max-width: 768px) {
  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .gallery-item {
    flex: 0 0 32%; 
    margin-bottom: 2%; 
  }
}

.partenaires-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.partenaires-page h1 {
    text-align: center;
    color: #222; 
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.partenaires-page h2 {
    color: #008080;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #008080;
    padding-bottom: 0.5rem;
}

.groupe-presentation {
    background-color: #f1f1f1; 
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.membres-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.membre {
    width: calc(33.333% - 2rem);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.membre:hover {
    transform: translateY(-5px);
}

.membre img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.membre-info {
    padding: 1rem;
    text-align: center;
}

.membre h3 {
    margin-bottom: 1rem;
    color: #222;
}


.documents-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: #008080;
}

.btn-secondary {
    color: #008080;
    background-color: #fff;
    border: 2px solid #008080;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #005757;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #008080;
}


@media (max-width: 768px) {
    .membres-container {
        flex-direction: column;
        align-items: center;
    }

    .membre {
        width: 90%;
    }

    .documents-container {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 80%;
        text-align: center;
    }
}

}


@media screen and (max-width: 768px) {
    /* Nav */
    nav {
        flex-direction: column;  
        padding: 10px;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    nav a {
        padding: 10px 0;
    }

    .hero {
        height: 400px;  
    }

    .hero h1 {
        font-size: 1.5rem; 
    }

    .presentation-item img {
        width: 100%;  
        height: auto;
    }


    .carousel {
        flex-direction: column;  
        align-items: center;
    }

    .carousel img {
        width: 100%;  
        height: auto;
    }

    footer {
        padding: 15px;
    }
    .footer-container {
        flex-direction: column;  
    }
    .footer-left {
        align-items: center;
        text-align: center;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);  
    }

    .image-box {
        height: 250px;  
    }

    #myTable {
        font-size: 0.9em; 
    }

    #myTable th, #myTable td {
        padding: 8px;
    }
}
  
@media screen and (max-width: 480px) {
    nav a {
        font-size: 0.9em;  
    }

    .hero h1 {
        font-size: 1.2rem; 
    }


    .carousel-text {
        font-size: 1.5em; 
    }


    .presentation-item img {
        width: 100%;
        height: auto;
    }


    form {
        width: 100%; 
    }


    footer nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .footer-left {
        text-align: center;
    }

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  
    gap: 5px;
    padding: 10px;
    max-width: 1000px;
    margin: auto;
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    height: 350px;  
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) blur(2px);
    transition: all 0.5s ease-in-out;
    border: 4px solid #ffd700;
    border-radius: 8px;
}

.image-box img:hover {
    filter: none;
    transform: scale(1.05);
    border-color: #caa000;
}

@media (max-width: 768px) {
    .gallery {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
  
    .gallery-item {
      flex: 0 0 32%; 
      margin-bottom: 2%;
    }
  }
  

@media screen and (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); 
    }

    .image-box {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 3fr; 
    }

    .image-box {
        height: 200px; 
    }

    h2 {
        font-size: 1.5rem;  
    }


    form {
        width: 100%;
    }
}
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* 1 colonne sur mobiles */
    }
}
@media (max-width: 768px) {
    .gallery-header {
      position: fixed;
      top: 0;
      width: 100%;
      background-color: #fff; 
      z-index: 1000;
      padding: 15px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
  
    .gallery-footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      background-color: #fff; 
      padding: 15px;
      text-align: center;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }
  
    .gallery-content {
      padding-top: 60px; 
      padding-bottom: 60px; 
    }
  }
}