* {
    margin: 0;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f6f6f6;
}

html, body {
    overflow-x: hidden;
}

#home,
#realisations,
#bibliotheque,
#services,
#contact {
    scroll-margin-top: 80px;
}

.block {
    width: min(800px, 90vw)
}

.key-hint {
    right: 4px;
    font-size: 0.6rem;
}

.TitreLibrarie {
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 3rem;
    margin-top: 50px;
}

.Bibliotheque3D {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.BibliothequeFrame {
    touch-action: manipulation;
}

.BibliothequeFrame {
    display: block;
    width: 70%;
    max-width: 1400px;
    height: 600px;
    border: none;
    overflow: hidden;
    flex-shrink: 0;
}

.Indication {
    text-align: center;
    margin-left: 16%;
    margin-bottom: 50px;
    margin-top: -50px;
    color: #a3a3a3;
    background-color: rgb(255, 255, 255);
    border: 3px solid #C8C8C8;
    border-radius: 30px;
    width: 43px;
    font-size: 30px;
    transition: all 0.3s;
}

.Indication:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.Indication:active {
    transform: scale(0.9);
}

.IndicationDescription {
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.5s ease,
        opacity 0.5s ease,
        padding 0.5s ease;
    padding: 0 15px;
    background-color: rgb(255, 255, 255);
    border: 3px solid #C8C8C8;
    margin-left: 15%;
    border-radius: 30px;
    width: 70%;
}

.IndicationDescription.animeIndication {
    max-height: 300px;
    opacity: 1;
    padding: 10px;
    width: 70%;
    margin-left: 15%;
    border-radius: 30px;
    background-color: rgb(255, 255, 255);
    border: 3px solid #C8C8C8;
}

.IndicationDescription::after {
    width: 0%;
    background-color: rgb(255, 255, 255);
    border: 3px solid #C8C8C8;
    border-radius: 30px;
    margin-left: 5%;
    transition: all 1s;
}

.IndicationText {
    padding: 10px;
}

/* ── Navigation ── */
.Titre {
    position: relative;
    cursor: pointer;
    margin-right: auto;
    margin-left: 10%;
    font-size: 1.3rem;
    color: #0078ff;
    transition: all 0.5s ease;
    font-weight: 500;
    text-decoration: none;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw; 
}

.Flèche {
    width: 50px;
}

.FlècheHaut {
    width: 40px;
    margin: 20px;
    margin-top: 13px;
    z-index: 999;
    rotate: -90deg;
}

.Haut {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: #0078ff;
    border-radius: 50px;
    z-index: 1;
}

.Contour {
    position: fixed;
    width: 85px;
    height: 85px;
    bottom: 1.6%;
    right: 0.85%;
    border-radius: 50px;
    cursor: pointer;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s ease;
}

.Contour.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.Contour.visible:hover {
    transform: translateY(0) scale(1.1);
}

.Langue {
    position: absolute;
    background-color: #FFA300;
    text-align: center;
    font-size: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    left: 80px;
    bottom: 200px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    color: #fff;
    border: 3px solid #fff;
    cursor: pointer;
    transition: transform 0.5s;
}

/* container drapeaux */
.Drapeau {
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    bottom: -120px;
    left: 50%;
    background-color: #e8e8e8;
    height: 100px;
    width: 0px;
    border-radius: 10px;
    transform: translateX(-50%) translateY(-10px);
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    border: 2px solid #fff;
    transition: all 0.35s ease;
}

/* drapeaux cachés */
.Espagne,
.France {
    width: 0px;
    opacity: 0;
    transition: all 0.35s ease;
}

.FlècheDrapeau {
    width: 0px;
    opacity: 0;
    transition: all 0.35s ease;
}

/* 👉 HOVER : ouverture */
.Langue:hover .Drapeau {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    width: 175px;
    pointer-events: auto;
}

/* drapeaux apparaissent */
.Langue:hover .Espagne,
.Langue:hover .France {
    width: 50px;
    opacity: 1;
}

.Langue:hover .FlècheDrapeau {
    width: 30px;
    opacity: 1;
}

.Langue:hover {
    transform: scale(1.2);
}

/* état ouvert (clique = reste affiché) */
.Langue.open .Drapeau {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    width: 175px;
    pointer-events: auto;
}

/* drapeaux visibles en mode open */
.Langue.open .Espagne,
.Langue.open .France {
    width: 50px;
    opacity: 1;
}

.Langue.open .FlècheDrapeau {
    width: 30px;
    opacity: 1;
}

/* optionnel : même effet que hover */
.Langue.open {
    transform: scale(1.2);
}

.button {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    position: absolute;
    top:50px;
    z-index: 999;
}

.ButtonContact {
    text-decoration: none;
    font-size: 30px;
    border-radius: 10px;
    background-color: #0f335c;
    border: 3px solid #0f335c;
    color: #fff;
    transition: all 0.5s;
    padding: 1%;
    padding-top: 0.7%;
    padding-bottom: 0.7%;
}

.ButtonWorks {
    text-decoration: none;
    font-size: 30px;
    border-radius: 10px;
    background-color: #cf3422;
    border: 3px solid #cf3422;
    color: #fff;
    transition: all 0.5s;
    padding: 1%;
    padding-top: 0.7%;
    padding-bottom: 0.7%;
}

.ButtonSkills {
    text-decoration: none;
    font-size: 30px;
    border-radius: 10px;
    background-color: #cf3422;
    border: 3px solid #cf3422;
    color: #fff;
    transition: all 0.5s;
    padding: 1%;
    padding-top: 0.7%;
    padding-bottom: 0.7%;
}

.ButtonHome {
    text-decoration: none;
    font-size: 30px;
    border-radius: 10px;
    background-color: #0f335c;
    border: 3px solid #0f335c;
    color: #fff;
    transition: all 0.5s;
    padding: 1%;
    padding-top: 0.7%;
    padding-bottom: 0.7%;
}

.ButtonContact:hover {
    box-shadow: 0px 1px 20px #0f335c;
    border: 3px solid #0f335c;
    color: #0f335c;
    background-color: #fff;
    scale: 1.1;
    rotate: -2deg;
}

.ButtonWorks:hover {
    box-shadow: 0px 1px 20px #cf3422;
    border: 3px solid #cf3422;
    color: #cf3422;
    background-color: #fff;
    scale: 1.1;
    rotate: -2deg;
}

.ButtonSkills:hover {
    box-shadow: 0px 1px 20px #cf3422;
    border: 3px solid #cf3422;
    color: #cf3422;
    background-color: #fff;
    scale: 1.1;
    rotate: -2deg;
}

.ButtonHome:hover {
    box-shadow: 0px 1px 20px #0f335c;
    border: 3px solid #0f335c;
    color: #0f335c;
    background-color: #fff;
    scale: 1.1;
    rotate: -2deg;
}

#navbar {
    position: fixed;
    display: flex;
    width: 100%;
    height: 60px;
    background: #fbfdff;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0px 1px 10px #a3a3a3;
    z-index: 999;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

#navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 30px;
}

nav ul li .ButtonNavBar {
    font-size: 1.05rem;
    text-decoration: none;
    color: #0078ff;
    transition: all 0.5s ease;
    font-weight: 100;
}

.ButtonNavBar{
  text-decoration: none;
  transition: 0.4s;
  position: relative;
}

.ButtonNavBar::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #0078ff;
  top: 20px;
  left: 0;
  transition: width 0.4s;
}

.ButtonNavBar:hover::before {
  width: 100%;
}


/***         HOME            ***/


.Home {
    display: flex;
    width: 100%;
    height: 900px;

    background-image: url('./Assets/Escritorio Karine.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    gap: 28px;
    z-index: 1;
}

h1 {
    position: absolute;
    color: #fff;
    font-size: 4rem;
    top: 35%;
    text-align: center;
}

/* ── Wrapper de l'animation ── */
.animation-wrapper {
    position: absolute;
    top: 55%;
    width: 600px;
    max-width: 90vw;
    height: 90px;
}

/* ── Curseur souris ── */
.mouse-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    top: 0;
    left: 380px;
    transition:
        left 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        top  0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img {
    width: 40px;
}

.mouse-cursor.clicking svg {
    transform: scale(0.88);
}

/* ── Ripple de clic ── */
.click-ripple {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    animation: ripple 0.45s ease-out forwards;
}

@keyframes ripple {
    from { transform: scale(0.5); opacity: 1; }
    to   { transform: scale(2.8); opacity: 0; }
}

/* ── Zone de texte ── */
.text-zone {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    width: 100%;
}

.typed-text {
    font-size: 2rem;
    color: #fff;
    font-weight: 200;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-radius: 3px;
    padding: 1px 2px;
    transition: background 0.15s ease, color 0.15s ease;
}

.typed-text.selected {
    background: rgba(151, 152, 255, 0.3);
    z-index: 20;
    color: #dddddd;
}

/* ── Curseur texte clignotant ── */
.text-caret {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: rgba(0, 0, 0, 0.9);
    margin-left: 1px;
    vertical-align: middle;
    animation: blink 0.65s step-end infinite;
}

.text-caret.hidden {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Indicateur touche Suppr ── */
.key-hint {
    position: absolute;
    top: 0px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #000000;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.key-hint.show {
    opacity: 1;
}

.block {
    position: absolute;
    width: 800px;
    height: 180px;
    top: 47%;
    background-color: #f8f9fa;
    border-radius: 25px;
    box-shadow: inset 3px 3px 3px rgba(0, 0, 0, 0.4);
}


/***         PROFIL            ***/


.PROFIL {
    width: 100%;
    height: 1000px;
    margin-top: -50px;
    background-color: #F5F5F5;
    z-index: 0;
}

.ProfilContainer {
    display: flex;
    justify-content: space-between;
    margin-left: 4%;
    margin-top: 10%;
    width: 1413px;
    height: 641px;
}

.Présentation {
    display: flex;
    flex-direction: column;
    width: 626px;
    height: 641px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0px 1px 10px #a3a3a3;
    padding: 26px;
    padding-bottom: 0px;
    gap: 25px;
}

.CV {
    border-radius: 30px;
    border: 5px solid #C8C8C8;
    width: 356px;
    height: 338px;
    padding: 10px;
    font-size: 20px;
    font-family: "Quicksand", sans-serif;
    font-weight: 200;
}

.IMGProfil {
    width: 217px;
    height: 217px;
    border-radius: 20px;
    border: 5px solid #C8C8C8;
}

.Explication {
    border-radius: 30px;
    border: 5px solid #C8C8C8;
    width: 95%;
    height: 193px;
    padding: 10px;
    font-size: 24px;
    font-family: "Quicksand", sans-serif;
    font-weight: 200;
}

.TopProfil {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.Trajectoire {
    display: flex;
    flex-direction: column;
    width: 711px;
    height: 665px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0px 1px 10px #a3a3a3;
    
}

.TitreTraj {
    font-size: 48px;
    padding: 20px;
    padding-left: 50px;
}

.Barre {
    margin-left: 50px;
    width: 623px;
    height: 2px;
    background-color: #0078ff;
}

.description {
    padding-left: 50px;
    padding-top: 30px;
    padding-right: 30px;
    font-size: 23px;
    font-weight: 200;
    font-style: normal;
    font-family: "Quicksand", sans-serif;
    letter-spacing: 2%;
}

/**     Expérience     **/

.TitreExpérience {
    text-align: center;
    background-color: #F5F5F5;
    font-size: 48px;
    padding-bottom: 20px;
    margin-top: 50px;
}

.Entreprise {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0078ff;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.CarouselEntreprise {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 320px;
}

.LogoImage {
    width: auto;
    width: 250px;
    object-fit: contain;
    border-radius: 20px;
}

.EntrepriseCard {
    position: absolute;
    top: 50%;
    width: 260px;
    height: 220px;
    background-color: #F5F5F5;
    border-radius: 30px;
    box-shadow: 0px 3px 20px rgba(0, 86, 183, 0.25);
    transition: left 0.7s ease, transform 0.7s ease, opacity 0.7s ease;
    opacity: 0;
    pointer-events: none;
    will-change: left, transform, opacity;
}

.center-card {
    left: 50%;
    transform: translate(-50%, -50%) scale(1.15);
    width: 340px;
    height: 270px;
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
}

.outer-left {
    left: 8%;
    transform: translateY(-50%) scale(0.75);
    opacity: 0.35;
    z-index: 1;
}

.inner-left {
    left: 24%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0.75;
    z-index: 2;
}

.inner-right {
    left: 62%;
    transform: translateY(-50%) scale(0.9);
    opacity: 0.75;
    z-index: 2;
}

.outer-right {
    left: 78%;
    transform: translateY(-50%) scale(0.75);
    opacity: 0.35;
    z-index: 1;
}

.hidden-left {
    left: 8%;
    transform: translateY(-50%) scale(0.75);
    opacity: 0;
    z-index: 0;
}

.hidden-right {
    left: 78%;
    transform: translateY(-50%) scale(0.75);
    opacity: 0;
    z-index: 0;
}

.TitreEntreprise {
    text-align: center;
    font-size: 24px;
    font-family: "Quicksand", sans-serif;
    margin-top: 20px;
}

.BarreEntreprise {
    height: 2px;
    background-color: #a3a3a3;
    margin: 10px 30px 0 30px;
}

.LogoEntreprise {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    margin: 20px 30px;
    border-radius: 30px;
}

.EntrepriseCard:not(.center-card) .LogoEntreprise {
    height: 120px;
    margin: 14px 24px;
}

.LogoTemp {
    font-size: 24px;
}

.FlècheR,
.FlècheL {
    position: absolute;
    width: 55px;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s ease;
}

.FlècheL {
    left: 40px;
    transform: rotate(180deg);
}

.FlècheR {
    right: 40px;
}

.FlècheR:hover,
.FlècheL:hover {
    transform: scale(1.12);
}

.FlècheL:hover {
    transform: rotate(180deg) scale(1.12);
}


/**     Services     **/

.Services {
    display: flex;
    height: 120%;
    padding-bottom: 40px;
    background-color: #F5F5F5;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.Card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    width: fit-content;
    margin: 0 auto;
    padding-bottom: 40px;
}

.NomService {
    text-align: center;
    font-weight: 530;
    font-size: 30px;
    width: 380px;
    margin-bottom: 20px;
}

.DescriptionServices {
    color: #4e4e6a;
    text-align: center;
    width: 400px;
    font-size: 18px;
    letter-spacing: 2%;
    margin-bottom: 10px;
    max-width: 360px;
}

.ChatIcone {
    width: 200px;
    margin-left: 5%;
    margin-top: -60%;
}

.ChatIconeBlanc {
    width: 200px;
    margin-left: 5%;
    margin-top: -50%;
    opacity: 0;
    transition: all 0.5s;
}

.circle {
    width: 130px;
    height: 130px;
    border: 17px solid #0078ff;
    border-radius: 200px;
    margin-left: 5%;
    margin-bottom: 15%;
    background-color: transparent;
    transition: all 0.5s ease;
}

.CarteServices:hover .circle {
    background-color: #0078ff;
    border: 17px solid #cee5ff;
}

.CarteServices:hover .ChatIconeBlanc {
    opacity: 1;
}

.CarteInner {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 400px;
    height: 450px;
    margin-top: 50px;
    margin-left: 3%;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0px 1px 10px #a3a3a3;
    cursor: pointer;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
}

.CarteServices.flip .CarteInner {
    transform: rotateY(180deg);
}

.CarteFront,
.CarteBack {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* FACE AVANT */
.CarteFront {
    background-color: white;
}

.CarteServices {
    transition: transform 0.3s ease;
    margin-right: 0;
}

.CarteServices:hover {
    transform: scale(1.05);
}

/* FACE ARRIÈRE */
.CarteBack {
    background-color: white;
    color: white;
    transform: rotateY(180deg);
    padding: 30px;
    box-sizing: border-box;
}


/*      Contact      */


.ExperienceBLock {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 40px;

    width: 100%;
    padding: 60px 20px;
    background-color: #f6f6f6;
}

.ContainerExperience {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    flex: 1 1 220px;
    max-width: 250px;
    min-width: 180px;

    text-align: center;
    gap: 20px;
}

.CheckIMG {
    width: 100px;
}

/*      Contact      */


.Contact {
    position: relative;
    height: 570px;
    width: 100%;
    background-color: #0078ff;
}

.ContactInner {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    margin-top: 50px;
    margin-left: 60%;
    width: 385px;
    height: 460px;
    background-color: #f6f6f6;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
}

.TitreContacter {
    margin-left: 10%;
    font-size: 32px;
    width: 450px;
    border-radius: 15px;
}

.Mail {
    font-size: 17px;
    margin-left: 140px;
    margin-top: -42px;
}

.Contacter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
}

.inputContact,
.MessageContact {
    width: 100%;
    padding: 12px;
    margin-left: 10%;
    box-sizing: border-box;
    border-radius: 5px;
    border: 2px solid #a3a3a3;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.03);
}

.MessageContact {
    min-height: 120px;
    resize: none;
}

.Envoyer {
    margin-top: 10px;
    margin-left: 10%;
    width: 100px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: #0078ff;
    color: #fff;
    cursor: pointer;
}

.BarreContacter {
    margin-left: 10%;
    width: 250px;
    height: 2px;
    background-color: #0078ff;
}

.Philosophe {
    position: absolute;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    color: #fff;
    left: 5%;
    top: 25%;
    font-weight: bold;
    font-size: 20px;
}

.imgPhilo {
    width: 150px;
    height: auto;
    max-width: 100%;
    border-radius: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
    display: block;
}

.DescPhilo {
    margin-bottom: 10px;
}

.Nomphilo {
    font-weight: 100;
}

.Mention {
    width: 100%;
    text-align: center;
    color: #fff;
    margin-top: 20px;
}

@media screen and (max-width: 1340px) {
    .Contact {
        height: 1040px;
    }

    .ContactInner {
        margin: 500px auto 0;
        width: 385px;
    }

    .imgPhilo {
        width: 120px;
        max-width: 100%;
        margin-top: -130px;
    }

    .Contact {
        height: 1040px;
    }

    .Philosophe {
        width: 100%;
        left: 0%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .Card {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 820px) {
    .block {
        width: 90%;
    }

    .typed-text {
        width: 90%;
        font-size: 95%;
        font-weight: 900;
    }

    .Card {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 750px) {

    .button {
        top: 80px;
    }

    .button a {
        font-size: 18px;
        padding: 10px;
    }
}

@media screen and (max-width: 730px) {
    .BibliothequeFrame {
        width: 90%;
        height: 270px;
    }

    .center-card {
        width: 250px;
        height: 250px;
    }
}

@media screen and (max-width: 700px) {
    #navbar {
        justify-content: space-between;  /* titre à gauche, liens à droite */
        padding: 0 10px;
    }

    .Titre {
        font-size: 1rem;
        margin-left: 2%;
        max-width: 35vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    nav ul {
        display: flex;   /* reste visible */
        gap: 0.6rem;
        margin-right: 8px;
    }

    nav ul li .ButtonNavBar {
        font-size: 1rem;
        font-weight: 500;
    }

    /* cache le soulignement animé sur mobile (trop petit) */
    .ButtonNavBar::before {
        display: none;
    }

    h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 640px) {
    .mouse-cursor {
        left: clamp(60%, 55vw, 380px);
    }

    .animation-wrapper {
        top: 56%;
    }
}

@media screen and (max-width: 600px) {
    #navbar {
        justify-content: space-between;  /* titre à gauche, liens à droite */
        padding: 0 10px;
    }

    .Titre {
        font-size: 0.75rem;
        margin-left: 2%;
        max-width: 35vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    nav ul {
        display: flex;   /* reste visible */
        gap: 0.6rem;
        margin-right: 8px;
    }

    nav ul li .ButtonNavBar {
        font-size: 0.7rem;
        font-weight: 500;
    }

    /* cache le soulignement animé sur mobile (trop petit) */
    .ButtonNavBar::before {
        display: none;
    }

    h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 500px) {
    .CarteInner {
        height: 400px;
        width: 350px;
    }

    .DescriptionServices {
        max-width: 300px;
        font-size: 17px;
    }

    .ChatIcone {
        margin-top: -67%;
    }

    .ChatIconeBlanc {
        margin-top: -57%;
    }

    .NomService {
        font-size: 25px;
        margin-top: 25px;
    }
}

@media screen and (max-width: 420px) {
    .button {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        top: 70px;
    }

    .button a {
        font-size: 15px;
        padding: 8px 12px;
    }

    .Titre {
        font-size: 0.54rem;
    }

    nav ul li .ButtonNavBar {
        font-size: 0.54rem;
        font-weight: 500;
    }
}
    
@media screen and (max-width: 1260px) {
    .Langue {
        bottom: 130px;
        transform: scale(0.8);
        left: 40%;
    }
}