/* =======================
   RESET + FONT
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'DejaVu Sans', Arial, sans-serif; */
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* @font-face {
    font-family: 'DejaVu Sans';
    src: url('./fonts/dejavusans-webfont.woff2') format('woff2'),
        url('./fonts/DejaVuSans.woff') format('woff'),
        url('./fonts/DejaVuSans.ttf') format('truetype');
    font-display: swap;

} */

/* =======================
   STRUCTURE GENERALE
======================= */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgba(12, 26, 39, .9);
    position: relative;
    overflow-x: hidden;

}

/* Motif de fond */
body::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('motif.svg') center repeat-x;
    background-size: contain;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.logo-desktop {
    display: inline;
}

.logo-mobile {
    display: none;
}

/* =======================
   LOGO + SERVICES
======================= */
/* Logo container */
.logo-container {
    width: 25%;
    display: flex;
    justify-content: center;
    text-align: center;
    color: #cbc5bf;
    z-index: 1;


}

#logo {
    width: 90%;
    height: auto;
    overflow: visible;
    margin-right: 10%;
}

/* Services container */
.services-container {
    width: 8%;
    padding-top: 1%;

}

#Services {
    width: 100%;
    height: auto;
    overflow: visible;

}

/* Paths */
.logo-path,
.services-path {
    fill: transparent;
    stroke: #cbc5bf;
    stroke-width: 0.25;
    animation: fillLogo 1s ease forwards;
    animation-delay: 1.1s;
}

@keyframes drawLogo {
    to {
        stroke-dashoffset: 0;
    }
}

/* Animation keyframes fillLogo */
@keyframes fillLogo {
    0% {
        fill: #cbc5bf;
        stroke: #cbc5bf;
        filter: drop-shadow(0 0 2px #cbc5bf);
    }

    15% {
        fill: #fffa00;
        /* jaune vif */
        stroke: #fffa00;
        filter: drop-shadow(0 0 4px #fffa00);
    }

    35% {
        fill: #ff00ff;
        /* magenta vif */
        stroke: #ff00ff;
        filter: drop-shadow(0 0 6px #ff00ff);

    }

    50% {
        fill: #ffe600;
        /* jaune électrique */
        stroke: #ffe600;
        filter: drop-shadow(0 0 8px #ffe600);

    }

    70% {
        fill: #ff00d1;
        /* magenta plus intense */
        stroke: #ff00d1;
        filter: drop-shadow(0 0 7px #ff00d1);

    }

    85% {
        fill: #fffe00;
        /* jaune vif */
        stroke: #fffe00;
        filter: drop-shadow(0 0 5px #fffe00);

    }

    100% {
        fill: #80c7ff;
        /* orange origine */
        stroke: #80c7ff;
        filter: drop-shadow(0 0 1px #80c7ff);

    }
}


/* =======================
HEADER + NAVIGATION (DESKTOP)
======================= */

/* Header général */
header {
    width: 100%;
    height: 2rem;
    background-color: rgba(128, 199, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* font-family: 'DejaVu Sans', Arial, sans-serif; */
    font-family: 'Poppins', 'Segoe UI', sans-serif;

    position: fixed;
    bottom: 7%;
    z-index: 1000;
}


/* Navbar en flex */
.navbar {
    margin: 0 auto;
    padding: 0.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Liste de navigation en ligne */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Liens de navigation */
.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.1rem 0.4rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
}

/* Effet hover et focus */
.nav-links a:hover,
.nav-links a:focus {

    border-bottom: 3px solid #000;
    outline: none;
}

/* Suppression du soulignement au hover pour le logo */
.nav-links li a.logo-link:hover {
    border-bottom: none;
}


/* Bouton menu hamburger */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Les 3 barres du menu */
.menu-icon .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* Texte Menu (visible en mobile) */
.menu-hint {
    display: none;
    font-size: 0.9rem;
    color: #333;
    margin-left: 0.5rem;
    user-select: none;
    font-weight: 600;
}


/* =======================
   FOOTER (DESKTOP)
======================= */

footer.footer {
    width: 100%;
    padding: 0.3rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #cccccc;
    position: fixed;
    bottom: 0;
    left: 0;
    /* box-shadow: 0 -1px 2px rgba(252, 248, 248, 0.97); */
    z-index: 1000;
}

/* ==============================
   Section Présentation (About)
============================== */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    color: #d3d3d3;
    margin: 0 auto;
    margin-bottom: 2rem;
}

/* Conteneur image + texte */
.about-inner {
    overflow: hidden;
}

/* Image flottante (par défaut mobile/tablette à gauche) */
.about-image {
    float: left;
    width: 40%;
    max-width: 400px;
    margin-right: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    float: right;
    margin-right: 0;
    margin-left: 30px;
}

.about-image img {
    width: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(128, 199, 255, 0.25);
}

.about-text {
    line-height: 1.7;
    color: #cfcfcf;
    font-size: 1rem;
    text-align: justify;
}


/* =======================
   Style formulaire contact adapté
======================= */


/* ===== Grand écran : 2 colonnes ===== */

@media screen and (min-width: 1200px) {
    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #d3d3d3;
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 3rem;
        padding: 4rem 6rem;
    }

    .contact-text {
        flex-basis: 40%;
    }

    .contact-text p {
        font-size: 1rem;
        text-align: justify;
    }

    .contact-form {
        flex-basis: 60%;
    }
}

/* ===== Colonne gauche : bulle de dialogue ===== */
.contact-text {
    position: relative;
    background: rgba(40, 50, 70, 0.4);
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 0 20px rgba(128, 199, 255, 0.08);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.7;
    overflow: hidden;
}

/* Image sous le texte */
.contact-text .contact-image {
    margin-top: 1.5rem;
    text-align: center;
}

.contact-text .contact-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.contact-text .contact-image img:hover {
    transform: scale(1.03);
    opacity: 1;
}

/* Triangle de la bulle */
.contact-text::after {
    content: "";
    position: absolute;
    top: 30%;
    right: -18px;
    border-width: 12px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(40, 50, 70, 0.4);
}

/* Animation d'apparition */
.contact-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Typographie ===== */
.contact-text h1 {
    color: #80c7ff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-text p {
    color: #cfcfcf;
    font-size: 1.05rem;
}

/* ===== Formulaire ===== */
.contact-form {
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 199, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(128, 199, 255, 0.15);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

/* Champs */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #d3d3d3;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #80c7ff;
    box-shadow: 0 0 8px rgba(128, 199, 255, 0.3);
    outline: none;
}

/* Bouton */
.btn-envoyer {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #80c7ff, #5babd8);
    color: #0b0b0b;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.4s ease;
}

.btn-envoyer:hover {
    background: linear-gradient(135deg, #5babd8, #9bdcff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 199, 255, 0.35);
}

.rgpd {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rgpd-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: text-top;
}

.rgpd-label {
    margin: 0;
}



/* =======================
   Fenêtre modale
======================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    justify-content: center;
    align-items: center;
}

.field-error {
    display: block;
    color: #ff8080;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

#modalErrors {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    text-align: left;
    color: #ff8080;
}

#modalErrors li {
    margin-bottom: 0.3rem;
}


.modal-content {
    background: #1e1e1e;
    color: #d3d3d3;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 85%;
    box-shadow: 0 0 15px rgba(128, 199, 255, 0.3);
    animation: fadeInScale 0.3s ease;
    position: relative;
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #80c7ff;
}

.close-btn:hover {
    color: #fff;
}

.modal-message h2 {
    color: #80c7ff;
    margin-bottom: 0.5rem;
}

.modal-message p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}


/* =======================
   Style page mentions légales
======================= */

/* Conteneur principal */

/* Conteneur principal */
.content-wrapper,
.contact-content-wrapper {
    width: 80vw;
    height: 88vh;
    max-width: 1200px;
    margin: 0 auto;
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    box-sizing: border-box;
    overflow-y: scroll;
    scrollbar-width: none;
}

main {
    height: auto;
    color: #d3d3d3;
    line-height: 1.6;
    margin: 0;
    box-sizing: border-box;
    align-self: flex-start;
}

/* Cacher la barre de défilement sur les navigateurs Webkit (Chrome, Safari) */
.content-wrapper::-webkit-scrollbar {
    width: 0;
    /* Masque la barre de défilement */
    height: 0;
    /* Masque la barre de défilement horizontal */
}


/* Titres */
main h1,
main h2 {
    color: #80c7ff;
    margin-bottom: 1rem;
}

main h1 {
    text-align: center;
}

/* Espacement entre sections */
main section {
    margin-bottom: 2rem;
}

.special-section p {
    font-size: 1.4rem;
    color: #c1d8eb;
    text-align: center;
    /* un peu d’espace au-dessus et dessous */
    line-height: 1.2;
}



/* Paragraphes */
main p {
    font-size: 1rem;
    text-align: justify;
}

main section ul {
    padding-left: 2rem;
    margin-left: 0;
    margin-top: -1rem;
    text-align: justify;


}



/* =======================
   Style SERVICES
======================= */

.cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-block {
    margin-left: 1.2rem;
}

.service-line {
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #80c7ff;
    color: #e8f3ff;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    position: relative;
}

.service-line::after {
    content: "›";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 0.9rem;
    color: #80c7ff;
    transition: transform 0.2s ease;
}

.service-block.active .service-line::after {
    transform: translateY(-50%) rotate(90deg);
}

.service-line:hover {
    background: rgba(128, 199, 255, 0.12);
    transform: translateX(2px);
}

.service-examples {
    max-height: none;
    /* pas de limite */
    transition: none;
    /* pas d'animation */
    margin-left: 1.5rem;
}


.service-block.active .service-examples {
    max-height: none;

}


.service-examples ul {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    list-style: disc;
    color: #cfe6ff;
    font-size: 0.9rem;
}

.service-examples li {
    margin-bottom: 0.25rem;
}







/* =======================
   TOOLTIP
======================= */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: #222;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 13px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* =======================
   VERSION MOBILE
======================= */


/* =======================
   VERSION PC MOYEN (1536x864)
======================= */

@media (max-width: 1536px) {


    .logo-container {
        width: 35%;
        margin-bottom: 1%;
    }

    .services-container {
        width: 11%;
    }

}

/* =======================
   VERSION TABLETTE (768x1024)
======================= */

@media (max-width: 768px) {

    body {
        height: auto;
    }

    body::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: url('motif.svg') center repeat-y;
        background-size: contain;
        opacity: 0.2;
        pointer-events: none;
    }

    .logo-container {
        width: 60%;
        margin-top: 3rem;
    }

    .services-container {
        width: 21%;
    }

    header {
        bottom: 5%;
        left: 5%;
        width: 90%;
        height: 30px;
        align-content: center;
        text-align: center;
        background-color: rgba(128, 199, 255, 1);
        border-radius: 8px 8px 0 0;
        box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
    }

    .navbar {
        justify-content: space-between;
        padding: 3px 20px;
    }

    /* Menu horizontal devient caché */
    .nav-links {
        display: none;
        position: fixed;
        bottom: 15%;
        left: 5%;
        width: 90%;
        flex-direction: column;
        align-items: center;
        background-color: rgba(35, 48, 60, 0.9);
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
    }

    /* Activation via JS */
    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        font-size: 18px;
        padding: 10px 15px;
        width: 80%;
        text-align: center;
        color: #e2f2ff;
    }

    .nav-links li a:hover {
        color: #f39c12;
        border-bottom: 2px solid #ffffff;
        transform: scale(1.1);
        font-weight: 700;
    }

    /* Suppression du soulignement au hover pour le logo */
    .nav-links li a.logo-link:hover {
        border-bottom: none;
    }

    /* Le menu burger s'affiche */
    .menu-icon {
        display: flex;

    }

    .menu-hint {
        display: block;
        color: #403434;
        text-align: center;
        font-size: 19px;
        font-weight: 700;
        width: 100%;
        margin: 0 auto;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: inline;
    }

    .content-wrapper {
        width: 90vw;
        height: 80vh;
        margin: 0 auto;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        box-sizing: border-box;
        overflow-y: scroll;
        scrollbar-width: none;
    }



    .about-inner {
        overflow: visible;
    }

    .about-image {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 1.5rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .special-section p {
        font-size: 1.2rem;
        color: #c1d8eb;
        text-align: center;
        /* un peu d’espace au-dessus et dessous */
        line-height: 1.2;
    }

    .contact-content-wrapper {
        width: 90vw;
        height: 79vh;

    }

    .contact-text {
        width: 100%;
        margin: 0;
        padding: 0;
    }


}




@media (max-width: 480px) {

    .logo-container {
        width: 80%;
    }

    .services-container {
        width: 28%;
    }

    main {
        width: 100%;
        color: #d3d3d3;
        line-height: 1.5;
        margin-top: 2rem;

    }


    /* Titres */
    main h1,
    main h2 {
        color: #80c7ff;
        margin-bottom: 1rem;
    }

    main h1 {
        font-size: 25px;
    }

    main h2 {
        font-size: 20px;
    }

    /* Espacement entre sections */
    main section {
        margin-bottom: 1rem;
    }

    /* Paragraphes */
    main p {
        font-size: 13px;
        text-align: justify;
    }

    main section ul {
        padding-left: 2rem;
        margin-left: 0;
        margin-top: -1rem;
        text-align: justify;
        font-size: 13px;
    }

    /* Footer adapté au thème */
    footer.footer {
        text-align: center;
        font-size: 0.7rem;
        color: #555;
        background: transparent;
    }

    .contact-form {
        padding: 1rem;
    }

    .btn-envoyer {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 90%;
    }

    .contact-section h1 {
        font-size: 25px;

    }

    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #d3d3d3;
        position: relative;

    }


    .content-wrapper {

        height: 79vh;
    }

    .contact-content-wrapper {
        height: 78vh;
        padding-bottom: 1rem;

    }






}