/*
    Couleurs :

    Blanc : #ffffff
    Bleu : #0f4295
    Rose : #ff1fa1

*/
* {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}
.pink-divide-header {
    background-color: #ff1fa1;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding: 0 0 3px 0 !important;
}

.pink-divide-footer {
    background-color: #ff1fa1;
    -webkit-clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    padding: 3px 0 0  0 !important;
}

header {
    background-color: #ffffff;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding: 15px 40px 35px 40px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .logo {
    display: flex;
    justify-content: left;
    align-items: center;
    margin: 0 20px 10px 20px;
}

header .logo img {
    max-width: 150px;
    transition: transform 0.3s ease;
}

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

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px 10px 20px;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #0f4295;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

header nav ul li a:hover {
    background-color: #0f4295;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Header right section (nav + social icons) */
header .header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Social icons in header */
header .social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

header .social-icons a {
    color: #0f4295;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
}

header .social-icons a:hover {
    color: #ffffff;
    background-color: #0f4295;
    transform: translateY(-3px) scale(1.1);
}

footer {
    background-color: #ffffff;
    -webkit-clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    padding: 40px 40px 30px 40px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    gap: 40px;
}

footer .footer-section {
    flex: 1;
    min-width: 200px;
}

footer .footer-section h3 {
    color: #0f4295;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

footer .footer-section p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-links li {
    margin-bottom: 10px;
}

footer .footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

footer .footer-links a:hover {
    color: #ff1fa1;
}

footer .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f4295;
    font-size: 0.9rem;
    margin: 25px 0 0 0;
    padding-top: 0;
    font-weight: 500;
}

#menuButton {
    display: none;
    background-color: #0f4295;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px 20px;
    transition: all 0.3s ease;
}

#menuButton:hover {
    background-color: #ff1fa1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 66, 149, 0.3);
}
.home {
    padding-top: 20px;
}

.home h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0f4295;
    font-weight: bold;
}

.home h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0f4295;
    font-weight: bold;
}
.home p {
    text-align: center;
    font-size: 1.1rem;
    margin: 20px;
    color: #0f4295;
}

.home .partners img {
    max-height: 300px;
    margin: 20px 50px;
}

.home a {
    color: #0f4295;
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
}

.partners {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px 100px;
    flex-wrap: wrap;
}


.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
    max-width: 800px;
}

.contact h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0f4295;
    font-weight: bold;
}

.contact form {
    width: 100%;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 66, 149, 0.1);
    border: 2px solid #f0f0f0;
}

.contact p {
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
}

.form-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact label {
    color: #0f4295;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact input[type=text],
.contact input[type=email],
.contact textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.contact input[type=text]:focus,
.contact input[type=email]:focus,
.contact textarea:focus {
    outline: none;
    border-color: #0f4295;
    box-shadow: 0 0 0 3px rgba(15, 66, 149, 0.1);
}

.contact textarea {
    resize: vertical;
    min-height: 120px;
}

.alert-danger {
    background-color: #ffe6e6;
    color: #d32f2f;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 8px;
    border-left: 4px solid #d32f2f;
}

.send-contact {
    background-color: #0f4295;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 66, 149, 0.2);
}

.send-contact:hover {
    background-color: #ff1fa1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 31, 161, 0.3);
}

.send-contact:active {
    transform: translateY(0);
}

.suggest-contact {
    color: #0f4295;
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
    line-height: 1.6;
    background-color: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0f4295;
}

/* Organisations Grid */
.organisations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 100px 20px;
}

.organisation-card {
    background-color: #ffffff;
    border: 2px solid #0f4295;
    border-radius: 10px;
    overflow: hidden;
    width: 500px;
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.organisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(15, 66, 149, 0.3);
}

.organisation-img {
    width: 240px;
    min-width: 240px;
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}

.organisation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organisation-img-placeholder {
    background-color: #0f4295;
    display: flex;
    justify-content: center;
    align-items: center;
}

.organisation-img-placeholder span {
    font-size: 4rem;
}

.organisation-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.organisation-info h3 {
    color: #0f4295;
    font-size: 1.3rem;
    margin: 10px 0;
    text-align: center;
}

.organisation-date {
    color: #0f4295;
    font-size: 1rem;
    margin: 10px 0;
}

.organisation-type {
    color: #ff1fa1;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 10px 0;
}

.organisation-btn {
    display: inline-block;
    background-color: #0f4295;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.organisation-btn:hover {
    background-color: #ff1fa1;
    color: white;
}

.no-organisations {
    text-align: center;
    padding: 40px;
    color: #0f4295;
}

/* Organisation Detail */
.organisation-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    margin: 20px 0;
}

.back-link a {
    color: #0f4295;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #ff1fa1;
}

.organisation-header {
    text-align: center;
    margin: 30px 0;
}

.organisation-header h1 {
    color: #0f4295;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.organisation-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background-color: #0f4295;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
}

.meta-item.type {
    background-color: #ff1fa1;
}

.organisation-poster {
    text-align: center;
    margin: 40px 0;
}

.organisation-poster img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.help-section {
    background-color: #fff8e1;
    border: 2px solid #ff1fa1;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.help-section h3 {
    color: #0f4295;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.help-section p {
    color: #0f4295;
    margin-bottom: 20px;
}

.subscription-section {
    text-align: center;
    margin: 30px 0;
}

.subscription-btn {
    display: inline-block;
    background-color: #ff1fa1;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.subscription-btn:hover {
    background-color: #0f4295;
    color: white;
}

.organisation-section {
    margin: 40px 0;
}

.organisation-section h2 {
    color: #0f4295;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.planning-img {
    text-align: center;
}

.planning-img img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border: 1px solid #0f4295;
    border-radius: 5px;
    text-decoration: none;
    color: #0f4295;
    transition: background-color 0.3s ease;
}

.document-item:hover {
    background-color: #e8f0ff;
}

.doc-type {
    background-color: #ff1fa1;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-left: 10px;
}

.routes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.route-card {
    background-color: #ffffff;
    border: 2px solid #0f4295;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
}

.route-card h3 {
    color: #0f4295;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.route-card p {
    color: #0f4295;
    margin: 10px 0;
}

.route-link {
    display: inline-block;
    color: #ff1fa1;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.route-link:hover {
    color: #0f4295;
}

@media screen and (max-width: 768px) {
    .home-banner {
        flex-direction: column;
    }
    .col-banner {
        width: 100%;
    }
    .form-row {
        flex-direction: column;
    }
    #menuButton {
        display: block;
    }

    header nav {
        display: none;
    }

    header nav ul {
        flex-direction: column;
    }
    header {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
        padding: 15px 20px 25px 20px !important;
    }
    footer {
        -webkit-clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    }
    .pink-divide-header {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }

    .pink-divide-footer {
        -webkit-clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    }

    header nav ul li {
        margin: 10px 0;
    }

    header nav {
        margin: 20px 0;
    }

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

    .organisation-card {
        width: 90%;
        max-width: 400px;
        flex-direction: column;
    }

    .organisation-img {
        width: 100%;
        height: 200px;
    }

    .organisation-header h1 {
        font-size: 2rem;
    }

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

    .route-card {
        width: 90%;
        max-width: 400px;
    }

    .contact {
        margin: 20px 10px;
    }

    .contact h1 {
        font-size: 2rem;
    }

    .contact form {
        padding: 25px 20px;
    }

    .form-row {
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    header nav ul li a {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .send-contact {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
    }

    footer {
        padding: 30px 20px 20px 20px;
    }

    footer .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 30px;
    }

    footer .footer-section {
        min-width: 100%;
    }

    footer .footer-section h3 {
        font-size: 1.1rem;
    }
}
