/* =============== PALETTE PERSONNELLE =============== */
:root {
    --primary: #0a2540;
    --accent: #f4c542;
    --text: #222;
    --background: #ffffff;
    --light-gray: #f1f1f1;
    --white: #ffffff;
}

/* =============== RESET DE BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- HEADER --- */
header {
    background-color: var(--primary);
    padding: 1rem 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Espacement égal entre les éléments */
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: bold;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* --- LOGO LINKEDIN --- */
.linkedin-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin-logo img {
    width: 30px;  /* Taille ajustée du logo */
    height: 30px;
    transition: transform 0.3s ease;
}

.linkedin-logo img:hover {
    transform: scale(1.1); /* Effet au survol */
}

/* =============== FOOTER =============== */
footer {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    animation: fadeUp 1s ease-out;
}

/* =============== SECTION ACCUEIL (hero) =============== */
.hero-swiss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
    animation: fadeIn 1s ease-out;
}

.hero-left,
.about-left {
    flex: 1 1 400px;
    text-align: center;
}

.hero-left img,
.about-left img {
    width: 90%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.hero-right,
.about-right {
    flex: 1 1 500px;
    padding: 1rem 2rem;
}

.hero-right h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-right h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.hero-right p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Liens vers les pages */
.preview-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.arrow-link {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.arrow-link span {
    font-size: 1.4rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.arrow-link:hover {
    color: var(--accent);
}

.arrow-link:hover span {
    transform: translateX(5px);
}

/* =============== CARROUSEL (aperçu accueil) =============== */
.carousel-section {
    padding: 3rem 2rem;
    background-color: var(--light-gray);
    text-align: center;
}

.carousel-section h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.carousel-track {
    display: inline-flex;
    gap: 2rem;
    padding: 0 1rem;
}

.carousel-track img {
    height: 220px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.carousel-track img:hover {
    transform: scale(1.05);
}

/* =============== PAGE À PROPOS =============== */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
    animation: fadeIn 1s ease-out;
}

.about-right h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-right p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
}

/* =============== PAGE RÉALISATIONS =============== */
.realisations-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.realisations-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.real-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #555;
}

.category-title {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.category-title h3 {
    font-size: 2rem;
    color: var(--primary);
}

/* Grille des réalisations */
.grid-realisations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.real-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.real-item:hover {
    transform: translateY(-5px);
}

.real-item img,
.real-item video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
    max-height: 240px;
}

.real-item h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.real-item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
    text-align: center;
}

/* =============== BOUTONS =============== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #06101d;
    transform: translateY(-2px);
}

/* =============== ANIMATIONS =============== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .hero-swiss,
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .carousel-track img {
        height: 180px;
    }

    .real-item h3 {
        font-size: 1.1rem;
    }

    .real-item p {
        font-size: 0.95rem;
    }
}
/* Vidéos YouTube responsives */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Redimensionner certaines images trop grandes */
.full-img {
    object-fit: cover;
    height: auto;
    max-height: 280px;
}
/* =============== CONTACT =============== */
.contact-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: auto;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.success-msg {
    text-align: center;
    background: #e6ffec;
    border: 1px solid #3ebd5d;
    color: #2b7a3c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-msg {
    text-align: center;
    background: #ffe6e6;
    border: 1px solid #d43f3f;
    color: #a21d1d;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}


.linkedinImg{
    max-height: 250px;
}