/* =========================================================
 * VARIABLES CSS
 * ========================================================= */
:root {
    --primary-color: #00795c;
    --primary-color-hover: #005a46;
    --accent-color: #0abda0;
    --text-color: #333;
    --light-grey: #f4f7f6;
    --background-main: #f9f9f9;
    --border-light: #eee;
    --border-transparent-white: rgba(255, 255, 255, 0.18);
}

/* =========================================================
 * RESET ET BASE
 * ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--primary-color);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.site-content {
    background-color: var(--primary-color);
}

/* =========================================================
 * BANDEAU D'INFORMATION
 * ========================================================= */
.info-banner {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    font-weight: 500;
    width: 100%;
}

/* =========================================================
 * HEADER
 * ========================================================= */
.page-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    width: 100%;
    padding: 15px 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: padding 0.3s ease;
}

.page-header.header-scrolled {
    padding: 8px 30px;
}

.header-logo {
    height: 60px;
    transform: scale(1);
    transform-origin: center left;
    transition: transform 0.3s ease;
}

.page-header.header-scrolled .header-logo {
    transform: scale(0.8);
}

/* =========================================================
 * MENU DE NAVIGATION
 * ========================================================= */
.top-menu .menu-item-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.top-menu .menu-item {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.top-menu .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-menu .menu-item-highlight {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================
 * CONTENU PRINCIPAL
 * ========================================================= */
.site-content,
.page-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.page-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    background-color: var(--primary-color);
}

.main-container {
    max-width: 1100px;
    width: 100%;
    background-color: var(--background-main);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-transparent-white);
    margin: 40px auto;
}

/* Conteneur flex texte + image */
.lang-text-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    flex-wrap: wrap;
}

.text-features {
    flex: 1 1 300px;
}

.image-feature {
    flex: 1 1 300px;
    text-align: center;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* =========================================================
 * SÉLECTEUR DE LANGUE
 * ========================================================= */
.language-switcher {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: 2px solid transparent;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.language-switcher button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-switcher button.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* =========================================================
 * LISTE À PUCES
 * ========================================================= */
.main-container ul {
    list-style: none;
    padding-left: 20px;
    position: relative;
    display: inline-block;
    text-align: left;
    margin-top: 1.5rem;
}

.main-container ul::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e0e0e0;
}

.main-container ul li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.main-container ul li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.main-container ul li:hover {
    color: var(--primary-color);
}

.main-container ul li:hover::before {
    transform: scale(1.3);
    background: var(--accent-color);
}

/* =========================================================
 * PAGE SUPPORT
 * ========================================================= */
.main-support {
    width: 100%;
    background-color: var(--primary-color);
    padding: 2rem;
    text-align: center;
    margin: 40px 0;
}

.support-container {
    background-color: #ffffff;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.support-container h1 {
    color: #00875a;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.support-container .subtitle {
    font-size: 1.15rem;
    color: #444b4a;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.support-intro {
    text-align: left;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    line-height: 1.4;
    display: flex;
    justify-content: center;
}

.support-intro .app {
    text-align: center;
}

.support-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 2rem;
}

.support-card {
    flex: 1 1 280px;
    max-width: 320px;
    background: #fefefe;
    padding: 28px 25px 30px;
    border-radius: 14px;
    border: 1px solid #e1e8e5;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: default;
}

.support-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.support-card h3 {
    color: #00795c;
    margin-top: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.support-card .icon {
    width: 75px;
    height: 75px;
    margin-bottom: 14px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.07));
}

.support-card .emoji {
    height: 1.2em;
    width: 1.2em;
    vertical-align: -0.15em;
}

.support-card p span {
    display: inline;
}

.support-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

.tel-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.tel-line a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

.tel-line img.emoji {
    width: 1.2em;
    height: 1.2em;
}

.teleassistance-links {
    display: flex;
    justify-content: center;
}

.teleassistance-links .app {
    text-align: left;
}

.teleassistance-links a {
    display: block;
    margin: 18px 0;
    font-size: 1.15rem;
    text-decoration: none;
    color: #00795c;
    font-weight: 600;
    transition: color 0.25s ease;
}

.teleassistance-links a:hover,
.teleassistance-links a:focus {
    color: #00583f;
    text-decoration: underline;
    outline: none;
}

.whatsapp-btn {
    text-decoration: none;
    background: #25d366;
    color: white !important;
    padding: 12px 22px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
    background-color: #1ebe57;
    box-shadow: 0 6px 18px rgba(30, 190, 87, 0.6);
    outline: none;
}

#support_contact_form {
    margin-top: 40px;
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#support_contact_form:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#support_contact_form:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* =========================================================
 * POPUP
 * ========================================================= */
.popup-btn {
    padding: 12px 18px;
    background-color: #00795c;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.popup-btn:hover,
.popup-btn:focus {
    background-color: #00583f;
    outline: none;
}

.popup-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-content {
    background-color: #fff;
    padding: 30px 35px;
    width: 100%;
    max-width: 600px;
    border-radius: 18px;
    position: relative;
    text-align: left;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #888;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.25s ease;
}

.popup-close:hover,
.popup-close:focus {
    color: #444;
    outline: none;
}

/* =========================================================
 * AFFICHAGE DES ÉLÉMENTS DE LANGUE
 * ========================================================= */
.lang-text,
.lang-menu {
    display: none;
}

.lang-text.active,
.lang-menu.active {
    display: inline;
}

.content .lang-text.active {
    display: block;
}

/* =========================================================
 * PAGE CONTACT
 * ========================================================= */
.content {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form {
    margin-top: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00795c;
    box-shadow: 0 0 0 3px rgba(0, 121, 92, 0.2);
    outline: none;
}

.honeypot {
    position: absolute;
    left: -5000px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background-color: #00795c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 121, 92, 0.3);
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 300px;
    height: 300px;
}

.contact-image svg {
    width: 100%;
    height: auto;
    max-height: 100%;
}

/* =========================================================
 * NOTIFICATION FLOTTANTE
 * ========================================================= */
#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -150%);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

#notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

#notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================================================
 * BANDEAU DE COOKIES
 * ========================================================= */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-banner.show {
    display: block !important;
    transform: translateY(0);
}

.cookie-banner-text {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner-actions button {
    background-color: #00795c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cookie-banner-actions button:hover {
    background-color: #005a46;
}

/* =========================================================
 * MODAL RGPD
 * ========================================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-button {
    color: #888;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-right: 40px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.rgpd-text {
    padding-top: 10px;
    color: #555;
    line-height: 1.7;
}

.rgpd-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.rgpd-text p:last-child {
    margin-bottom: 0;
}

/* Fix pour mobile */
.rgpd-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* =========================================================
 * RESPONSIVE / MOBILE
 * ========================================================= */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
        flex-direction: column;
    }

    .cookie-banner-text {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-banner-actions button {
        width: 100%;
        padding: 12px 20px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 20px;
        padding-right: 35px;
    }

    .close-button {
        font-size: 28px;
        right: 15px;
        top: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rgpd-link {
        display: inline-block;
        padding: 5px 0;
        min-height: 44px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .top-menu .menu-item-group {
        width: 100%;
        z-index: 1000;
        gap: 0;
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        text-align: center;
    }

    .main-container {
        padding: 1.5rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .contact-image {
        display: block;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        margin-top: -40px;
        margin-bottom: -110px;
        box-sizing: border-box;
    }

    .serpent {
        width: 100px;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
    }

    .support-card p span {
        display: block;
    }

    .support-tel {
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .tel-line {
        flex-direction: row;
        flex-wrap: wrap;
        font-size: 0.95rem;
    }

    .tel-line span {
        margin-right: 0.3rem;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .tel-line strong {
        word-break: break-all;
    }

    .tel-line a {
        pointer-events: auto;
        color: #00795c;
        text-decoration: underline;
    }

    .support-card {
        padding: 0.8rem;
    }

    .whatsapp-btn {
        margin-top: 1.5rem;
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
        margin-bottom: 2rem;
    }

    .modal-content {
        width: 98%;
        margin: 15px auto;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 18px;
    }
}