:root {
    --spacing: 1rem;
    --padding: 2rem 1rem;
    --max-width: 1200px;
    --border-radius: 1px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: transform 0.3s ease;
    --hover-scale: 1.1;
    --primary-color: #1a1e47f1;
    --accent-color: #803796;
    --background-color: #f9f9f9;
    --text-color: #333;
    --light-text-color: #666;
    --highlight-color: #803796;
}

* {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

h2 {
    text-align: center;
    color: #333;
    margin: 20px 0;
}

footer > a {
    color: white;
}

/* Barre de navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: var(--spacing);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

article {
    min-height: 79vh;
}

.title {
    padding: var(--spacing);
    max-width: var(--max-width);
    margin: 0 auto;
}

header img {
    height: 50px;
}

nav {
    display: flex;
    gap: var(--spacing);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s, border-bottom 0.3s;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--accent-color);
    background-color: #ded0f047;
    border-bottom: 2px solid var(--accent-color);
}

/* Section vidéo */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero video,
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero .content {
    text-align: center;
    color: #fff;
    padding: 0 var(--spacing);
}

.hero h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: var(--spacing);
}

/* Contenu principal */
.content {
    padding: var(--padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.content h2 {
    text-align: center;
    margin-bottom: var(--spacing);
    color: var(--text-color);
    text-shadow: 2px 2px 8px rgba(0,0,0,1);
}

.content p {
    margin-left: 55px;
    margin-right: 55px;
    text-align: justify;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0,0,0,1);
}

/* Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing);
    padding: var(--padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(var(--hover-scale));
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Section texte */
.text-section {
    padding: 3rem 1rem;
    background-color: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
    text-align: center;
}

.text-section .image-container {
    position: relative;
    margin: 2rem auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 70%;
    display: flex;
    flex-wrap: wrap;
}

.text-section h2 {
    color: var(--text-color);
    margin: 0 auto;
    text-align: left;
}

.text-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 95%;
    text-align: justify;
}

.text-section img {
    width: 100%;
    height: auto;
    display: block;
}

.text-section .text-overlay {
    width: 30%;
    color: #fff;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-bottom: 2px solid transparent;
}

.text-overlay:hover {
    color: var(--accent-color);
    background-color: #ded0f047;
    border-bottom: 2px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

.text-section .legend {
    width: 69%;
    padding: 10px;
    text-align: justify;
    font-size: 0.9rem;
    color: #555;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

@media (max-width: 870px) {
    .text-section .text-overlay,
    .text-section .legend {
        width: 100%;
        position: sticky;
        text-align: center;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: var(--spacing);
    font-size: 0.7rem;
}

/* Form */
#contact,
#coordonnees {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#contact h2,
#coordonnees h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
}

#contact p,
#coordonnees p {
    text-align: left;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

#myForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#myForm input,
#myForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 1px;
    font-size: 16px;
}

#myForm textarea {
    resize: none;
    height: 200px;
}

#myForm button {
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    font-size: 16px;
}

#myForm button:hover {
    background-color: #5e9ee2;
}

#message {
    margin-top: 20px;
    text-align: center;
    color: #28a745;
}

#coordonnees p strong {
    color: #000;
}

#coordonnees address {
    font-style: normal;
    color: var(--light-text-color);
    margin-top: 10px;
    display: block;
}

#map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.founder-section {
    background-color: var(--background-color);
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.founder-container {
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    border-radius: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.founder-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--highlight-color);
}

.founder-info {
    max-width: 600px;
}

.founder-info h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.founder-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.founder-title {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.founder-message {
    font-size: 1rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

.company-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.company-container {
    max-width: 900px;
    margin: 0 auto;
}

.company-container h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.company-description {
    font-size: 1.1rem;
    color: var(--light-text-color);
    line-height: 1.8;
    margin-bottom: 40px;
}

.company-values {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.value {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 250px;
    text-align: left;
}

.value h3 {
    font-size: 1.3rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

.value p {
    font-size: 1rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

#worldskillsArticle {
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    nav a { font-size: 0.9rem; }
    .text-section h2 { font-size: 1.5rem; }
    .gallery { padding: 1rem; }
    .scrollmenu .item { width: 80% !important; }
}

@media (max-width: 480px) {
    header { padding: 1rem; }
    nav { flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
    .text-section { padding: 0; width: 100%; }
    .text-section .image-container { max-width: 90%; height: auto; }
    .text-overlay { bottom: 70px !important; padding-left: 0 !important; position: static !important; }
}

/* Style pour la section défilable */
.scrollmenu {
    background-color: #f4f4f4;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
}

.scrollmenu .item {
    display: inline-block;
    position: relative;
    margin: 0 10px;
    text-align: center;
    width: 50%;
    box-sizing: border-box;
}

.scrollmenu .item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scrollmenu .item .title {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    width: 100%;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
}

.scrollmenu .item:first-child {
    margin-left: 5vw;
}

.container {
    text-align: center;
}

.contact-button {
    display: inline-block;
    padding: 15px 25px;
    font-size: 18px;
    color: #fff;
    background-color: var(--highlight-color);
    border: none;
    border-radius: 1px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #ad6bc1;
}

.partners-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 20px;
    background-color: #fff;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    margin: 20px;
    text-align: left;
    background-color: #f9f9f9;
    border-radius: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.partner:hover {
    transform: translateY(-10px);
}

.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    height: 120px;
}

.bubble {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
}

.bubble img {
    width: 80%;
    height: auto;
}

.partner-info {
    padding: 5px 15px;
}

.partner-info h3 {
    margin: 5px 0;
    font-size: 1.5em;
}

.partner-info p {
    margin: 0;
    color: #666;
}

.partner a {
    text-decoration: none;
    color: inherit;
}

.partner a:hover {
    text-decoration: none;
}

.calendar-container {
    max-width: 60%;
    width: 100%;
    margin: 0 auto;
}

iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .calendar-container { max-width: 95%; }
    iframe { height: 500px; }
}

@media (max-width: 480px) {
    iframe { height: 400px; }
}

.slide-arrow {
    display: inline-block;
    font-size: 24px;
    position: relative;
}

.slide-arrow::after {
    content: "➔";
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.slide-arrow:hover::after {
    transform: translateX(5px);
}