*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* =====================
   HEADER
===================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 95, 94, 0.95);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 3000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    max-width: 1200px;
}

/* =====================
   NAVIGATION
===================== */

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    /*transition: all 0.3s;*/
    transition: color 0.3s ease;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

header nav a:hover::after,
header nav a[aria-current="page"]::after {
    width: 100%;
}

header nav a:hover {
    color: #ffd700;
}

/* =====================
   MENU HAMBURGER
===================== */

.burger {
    display: none;
    background: #005F5E;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 4000;
    padding: 10px;
    border-radius: 3px;
}

.burger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo img {
    height: 60px;
}

/* =====================
   HERO SECTION
===================== */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*width: 100%;*/
    gap: 1.5rem;
    text-align: center;
    color: white;
    max-width: 90%;
    padding: 2rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0 0 1.5rem;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

/* =====================
   HERO ICONS
===================== */

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.hero-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
}

.hero-icon img {
    width: 34px;
    height: 34px;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.hero-icon span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.hero-icon:hover {
    transform: translateY(-6px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* =====================
   BUTTONS
===================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #018C8A;
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #005F5E;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(1, 140, 138, 0.3);
}

/* =====================
   PROFILES SECTION
===================== */

.profiles {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #e6f2f2, #ffffff);
}

.profiles h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 4rem;
    color: #023e8a;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 par ligne */
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.profile-card h3 {
    font-size: 1.7rem;
    color: #0077b6;
    text-align: center;
    margin-bottom: 1rem;
}

.card-intro {
    font-size: 1rem;
    color: #444;
    text-align: center;
    margin-bottom: 2rem;
    min-height: 70px;
    /*flex-grow: 1;*/
    /* clé pour aligner les boutons */
}

.card-footer {
    margin-top: auto;
    text-align: center;
}

/* =====================
   DETAIL PAGES
===================== */

.page-banner {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 70px;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.page-banner-content {
    position: relative;
    max-width: 1100px;
    padding: 0 1.5rem;
    margin: 0 auto;
    z-index: 10;
}

.page-banner h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-banner p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.details {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #f8faff;
}

.details h1 {
    font-size: 2.5rem;
    color: #0077b6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.details h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #023e8a;
}

.details p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.8;
}

.details ul {
    list-style: disc;
    padding-left: 2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.details li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #0077b6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* =====================
   LANGUAGE SWITCH
===================== */

.lang-switch {
    display: flex;
    gap: 1rem;
}

.lang-switch a {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lang-switch a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.2);
}

/* =====================
   FOOTER
===================== */

footer {
    background: #005F5E;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    margin: 0;
}

footer p {
    margin: 0;
}

/* =====================
   CONTACT FORM
===================== */

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form label {
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0077b6;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* =====================
   RESPONSIVE - MOBILE
===================== */

@media (max-width: 900px) {
    header {
        background: transparent;
        box-shadow: none;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    nav.nav {
        position: fixed;
        inset: 0;
        background: #005F5E;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    nav.nav a {
        margin: 0;
        font-size: 1.3rem;
    }

    nav.nav.open {
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;

    }

    .hero-text {
        display: block;
        padding: 1rem;
    }

    .hero-text img {
        width: 100px;
        height: auto;
    }

    .profiles {
        padding: 4rem 1.5rem 3rem;
    }

    .profiles h2 {
        margin-bottom: 2.5rem;
    }

    .profile-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-card {
        padding: 2rem 1.5rem;
    }

    .page-banner {
        /*height: 300px;*/
        margin-top: 0;
    }

    .lang-switch {
        margin-top: 1.5rem;
    }
}

@media (max-width: 600px) {

    .hero-icons {
        gap: 1rem;
    }


    .hero-icon {
        width: 80px;
        height: 80px;
    }

    .hero-icon img {
        width: 28px;
        height: 28px;
    }

    .hero-icon span {
        font-size: 0.65rem;
    }

    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
    }
}

