/* General Styling */
body {
    font-family: "Poppins", sans-serif;
    text-align: center;
    background-color: #f0f8ff;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}

/* Navbar */
nav.navbar {
    width: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 151px;
    height: 102px;
}

.logo span {
    font-family: "Pacifico", cursive;
    font-size: 26px;
    color: #003366;
    margin-left: 10px;
}

.brand-name {
    font-family: "Pacifico", cursive;
    font-size: 20px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    max-height: none;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    cursor: pointer; /* Affiche une main survolant le lien */
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-name {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: relative;
        z-index: 1000;
    }

    /* Menu (nav-links) */
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 70px; /* hauteur navbar */
        right: 0;
        width: 50%;
        max-height: 0;
        background-color: #fff;
        overflow: hidden;
        overflow-y: auto; /* scroll si besoin */
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9999; /* au-dessus */
    }
    .nav-links.active {
        max-height: calc(100vh - 70px); /* plein écran sous navbar */
    }

    .nav-links a {
        padding: 10px 20px;
        border-bottom: 1px solid #ddd;
        cursor: pointer;
    }

    .nav-overlay.active {
        display: block;
    }
}

h1 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 20px;
}

/* Cruise Selection Styling */
.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cruise-option {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 450px;
    text-align: center;
    transition: transform 0.3s;
}

.cruise-option:hover {
    transform: scale(1.03);
}

.cruise-option img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}

.price-info {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 15px 0;
}

/* Custom Radio Buttons */
.radio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.custom-radio {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 3px solid #007bff;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.custom-radio:checked::before {
    content: "\2714";
    font-size: 20px;
    color: white;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #007bff;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.complet {
    color: red;
}

.libre {
    color: green;
}

/* Counter Inputs */
.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.counter input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Date Picker */
.date-picker {
    margin-top: 20px;
    font-size: 18px;
}
.date-picker input[type="date"] {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Submit Button */
.booking-btn:hover {
    background-color: #0056b3;
}
.booking-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    margin-top: 25px;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.booking-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.login-message {
    margin-top: 10px;
    color: #ff0000;
    font-size: 14px;
}

/* Compense le contenu pour éviter le chevauchement */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-text {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    width: 786px;
    height: 288px;
    background: rgba(1, 13, 24, 0.63);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 24px;
    box-sizing: border-box;
}
.hero-text h1 {
    font-family: "Cinzel Decorative", cursive;
    font-size: 28px;
    color: white;
    margin: 0;
    text-align: center;
}
.hero-text button {
    background: #d4af37;
    border: none;
    border-radius: 10px;
    padding: 12px 40px;
    margin: 40px 0;
    cursor: pointer;
}
.hero-text button span {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    color: white;
}
.hero-text p {
    font-family: "Pirata One", cursive;
    font-size: 28px;
    color: white;
    margin: 0;
    text-align: center;
}
.photo-gallery {
    background: white;
    justify-content: center;
    align-items: center;
}
.photo-gallery h1 {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 32px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1.5, 1fr);
    gap: 20px;
}
.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.team-profile-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 80vh;
}

.profile-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*     background-color: #1a1a1a; */
    color: #fff;
}

.profile-details h1 {
    font-size: 36px; /* Taille légèrement réduite pour une meilleure adaptabilité */
    font-weight: 700; /* Moins lourd pour un style plus raffiné */
    letter-spacing: 1px; /* Espacement légèrement réduit */
    margin: 0 0 20px 0; /* Ajout d'un espace sous le titre */
    color: #4a90e2; /* Une couleur plus douce mais toujours élégante */
    text-transform: uppercase; /* Texte en majuscules pour plus d'impact */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Ombre subtile pour un effet 3D */
    font-family: "Roboto", sans-serif; /* Police moderne et professionnelle */
}

.profile-details h2 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.72px;
    text-transform: uppercase;
    margin: 0;
    color: #34445b;
}

.profile-details p {
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
    color: #818181;
}

.profile-images {
    flex-grow: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.profile-images img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 10px;
    transition: transform 0.2s;
}

.profile-images img:hover {
    transform: scale(1.1);
}

hr {
    width: 30%;
    font-size: 5rem;
}

/* --- Timeline Section --- */
.timeline-section {
    text-align: center;
    padding: 20px 20px;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.section-title {
    font-size: clamp(28px, 6vw, 32px);
    font-weight: 600;
    color: #003366;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: clamp(14px, 3vw, 16px);
    color: #666;
    margin-bottom: 40px;
}

/* Timeline principale */
.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding-top: 20px;
}

/* Ligne verticale */
.timeline::after {
    content: "";
    position: absolute;
    width: 3px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Élément de la timeline */
.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #007bff;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    transform: translate(-50%, -50%);
}

.timeline-item.left::before {
    left: 50%;
}

.timeline-item.right::before {
    left: 50%;
}

.timeline-item.left {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item.right {
    text-align: left;
}

/* Contenu */
.timeline-content {
    width: 45%;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    box-sizing: border-box; /* Crucial for proper width calculation */
}

/* Timeline Content Arrows */
.timeline-item.left .timeline-content::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid white;
    top: 50%;
    transform: translateY(-50%);
    right: -15px;
}

.timeline-item.right .timeline-content::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid white;
    top: 50%;
    transform: translateY(-50%);
    left: -15px;
}

.timeline-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 4px solid #e3eaf2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-img:hover {
    transform: scale(1.08);
}

.timeline-content h3 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 8px;
}
.timeline-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px; /* Fix line to the left for mobile */
        transform: translateX(0);
    }

    .timeline-item {
        flex-direction: column !important; /* Force stacking */
        align-items: flex-start; /* Align content to the left */
        text-align: left !important; /* Ensure text is left-aligned */
        margin-left: 20px; /* Indent items to align with the line */
        width: calc(
            100% - 40px
        ); /* Adjust width to account for indent and padding */
        margin-bottom: 40px;
        box-sizing: border-box; /* Include padding in width */
    }

    .timeline-item::before {
        left: 0; /* Align with the main vertical line */
        transform: translateY(-50%);
    }

    .timeline-img {
        margin: 0;
        margin-bottom: 15px;
        align-self: center; /* Center the image within its stacked container */
        width: 100px;
        height: 100px;
    }

    .timeline-content {
        width: 100%; /* Full width for content */
        padding: 20px;
        box-sizing: border-box;
    }

    /* Hide the content arrows on mobile as they don't make sense when stacked */
    .timeline-content::after {
        display: none;
    }
    /* Optional: Add a small triangle pointing from the line to the content */
    .timeline-content::before {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid white;
        top: 20px;
        left: -10px;
        z-index: 2;
    }

    .timeline-item::before {
        background-color: transparent;
        border: 3px solid transparent;
    }
}

.container_1 {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

.form-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.form-title {
    font-size: 36px; /* Taille légèrement réduite pour une meilleure adaptabilité */
    font-weight: 700; /* Moins lourd pour un style plus raffiné */
    letter-spacing: 1px; /* Espacement légèrement réduit */
    margin: 0 0 20px 0; /* Ajout d'un espace sous le titre */
    color: #4a90e2; /* Une couleur plus douce mais toujours élégante */
    text-transform: uppercase; /* Texte en majuscules pour plus d'impact */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Ombre subtile pour un effet 3D */
    font-family: "Roboto", sans-serif; /* Police moderne et professionnelle */
}

.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

label {
    font-size: 24px;
    letter-spacing: 1.68px;
    display: block;
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    padding: 8px 0;
    font-size: 24px;
}

textarea {
    min-height: 50px;
    resize: horizontal;
    width: 70%;
}

.submit-button {
    background: #d4af37;
    border: none;
    border-radius: 20px;
    padding: 15px 40px;
    color: #fff;
    font-size: 24px;
    letter-spacing: 1.68px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #c19b20;
}

.ship-image {
    position: absolute;
    bottom: 100px;
    left: 500px;
    top: 330px;
    right: 10px;
    width: 479px;
    height: 244px;
    background-image: url("https://dashboard.codeparrot.ai/api/image/Z86bx9G_8Dy7NbHb/rectangl-2.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(
        52.89deg,
        rgba(255, 255, 255, 0) 64.02%,
        rgba(255, 255, 255, 0.24) 79.96%,
        rgba(255, 255, 255, 0.24) 83.53%
    );
    gap: 40px; /* Pour les espacements dans la grille */
}

.footer-section {
    flex: 1 1 200px;
    font-family: "Raleway", sans-serif;
    margin-bottom: 40px;
}

.logo-section .logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-section .logo-image {
    width: 151px;
    height: 102px;
}

.logo-section .logo-text {
    font-family: "Pacifico", cursive;
    font-size: 28px;
    margin-left: 10px;
}

.site-description {
    font-size: 16px;
    line-height: 150%;
    color: #77808b;
    margin-top: 10px;
    text-align: right; /* Aligne le texte à droite */
    direction: rtl; /* Définit la direction du texte de droite à gauche */
    font-family: "Tajawal", Arial, sans-serif; /* Utilise une police adaptée pour l'arabe */
}

.section-header {
    font-size: 18px;
    font-weight: bold;
    line-height: 22px;
    color: #3a86ff;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.container_1 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    gap: 20px;
}

.image-side {
    flex: 0 0 40%;
    background-image: url("https://dashboard.codeparrot.ai/api/image/Z86bx9G_8Dy7NbHb/60-e-1-f-776.png");
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.form-side {
    flex: 1 1 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-container {
    width: 100%;
}

.form-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

input,
textarea {
    font-size: 14px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    resize: none;
    height: 100px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
}

.contact-text {
    font-size: 16px;
    line-height: 150%;
    color: #77808b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container_1 {
        flex-direction: column;
        padding: 10px;
    }

    .image-side {
        flex: 1 1 100%;
        min-height: 200px;
    }

    .form-side {
        flex: 1 1 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        flex: 1 1 100%;
    }

    .submit-button {
        font-size: 10px;
    }
}

.service-list {
    list-style: none;
}

.service-item {
    font-size: 16px;
    color: #77808b;
    margin-bottom: 10px;
    line-height: 150%;
    transition: color 0.2s;
    cursor: pointer;
}

.service-item:hover {
    color: #3a86ff;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3a86ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: #0056b3;
}

.social-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 150%;
    color: #77808b;
}
/* Styles PC (desktop) */
.accueil-container {
    position: relative;
    overflow: hidden;
    height: 90vh;
    max-height: 906px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accueil-image {
    width: 100%;
    height: 100%;
    max-height: 906px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 1rem;
    width: 90%;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.text-init {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.button-res {
    background-color: #ffcc00;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

.button-res a.button-link {
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: inline-block;
}

.brand-name {
    margin-top: 1rem;
    font-size: 1rem;
}

.button-res:hover {
    background-color: #e0b700;
}

/* ----------- Media Query Mobile ----------- */
@media (max-width: 768px) {
    .accueil-container {
        position: relative;
        height: 350px; /* hauteur fixe ou minimale pour contenir image + texte */
        max-height: none;
        overflow: visible; /* pour que le texte ne soit pas coupé */
        padding: 0;
        z-index: 1;
    }

    .accueil-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: none;
    }

    .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
        max-width: 90%;
        border-radius: 10px;
        color: white;
        text-align: center;
        font-size: 1.4rem;
        z-index: 2; /* au-dessus de l'image */
        box-sizing: border-box;
    }

    .button-res {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .brand-name {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    .footer-section {
        text-align: center;
        margin: 0 auto; /* Pour centrer horizontalement */
        padding: 0; /* Ajuste les marges internes si nécessaire */
        width: 90%; /* Ajuste la largeur pour une meilleure apparence */
        display: block; /* Assure qu'il reste un élément de bloc */
    }
}
