body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    margin: 0;
    color: #2a2a2a;
    min-height: 100vh;
    position: relative;
}

/* --- Décorations de fond épique --- */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

body::before {
    width: 600px; height: 600px;
    left: -200px; top: -180px;
    background: radial-gradient(circle at 60% 40%, #d72660 0%, #fff0 70%);
}
body::after {
    width: 500px; height: 500px;
    right: -170px; bottom: -120px;
    background: radial-gradient(circle at 40% 60%, #1b9aaa 0%, #fff0 70%);
}

/* --- Header épique --- */
header {
    background: linear-gradient(120deg, #d72660 0%, #1b9aaa 100%);
    animation: gradientMove 6s ease-in-out infinite alternate;
    box-shadow: 0 6px 24px 0 rgba(215,38,96,0.08);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: visible;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
header .logo {
    background: rgba(255,255,255,0.24);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 2px 24px 0 #fff3;
    backdrop-filter: blur(3px);
    margin-bottom: 0.5rem;
}
header h1 {
    color: #fff;
    text-shadow: 0 4px 24px #d7266090, 0 2px 6px #1b9aaa90;
    font-size: 2.3rem;
    letter-spacing: 0.03em;
}

/* --- Cartes et main : effet glassmorphism --- */
.card, main {
    background: rgba(255,255,255,0.66);
    border-radius: 1.2rem;
    box-shadow: 0 8px 40px 0 rgba(27,154,170,0.08), 0 2px 12px #d7266040;
    border: 2px solid;
    border-image: linear-gradient(120deg, #d72660 40%, #1b9aaa 100%) 1;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover, main:hover {
    box-shadow: 0 12px 56px 0 #d7266070, 0 8px 32px #1b9aaa60;
    border-color: #1b9aaa;
}

/* --- Sliders stylés --- */
input[type=range] {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #d72660 0%, #1b9aaa 100%);
    box-shadow: 0 1px 3px #d7266020;
    accent-color: #d72660;
    transition: box-shadow 0.3s;
}
input[type=range]:hover {
    box-shadow: 0 0 12px 2px #d72660cc, 0 0 8px #1b9aaa99;
}
input[type=range]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d72660;
    box-shadow: 0 2px 8px #d7266090;
    transition: border 0.2s, box-shadow 0.2s;
}
input[type=range]:hover::-webkit-slider-thumb {
    border: 3px solid #1b9aaa;
    box-shadow: 0 0 16px #1b9aaa99;
}
input[type=range]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d72660;
    box-shadow: 0 2px 8px #d7266090;
    transition: border 0.2s, box-shadow 0.2s;
}
input[type=range]:hover::-moz-range-thumb {
    border: 3px solid #1b9aaa;
    box-shadow: 0 0 16px #1b9aaa99;
}

/* --- Bouton principal effet néon --- */
#calculer {
    box-shadow: none;
    border-radius: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.2s;
    animation: none;
}
#calculer:hover {
    box-shadow: none;
    transform: scale(1.04);
    animation: none;
}
@keyframes neonPulse {
    0% { box-shadow: 0 0 16px 2px #d72660a0, 0 0 8px #1b9aaa70; }
    100% { box-shadow: 0 0 32px 8px #d72660cc, 0 0 20px #1b9aaa99; }
}

/* --- Résultat épique --- */
#resultat-droite, #resultat {
    animation: fadeInUp 0.8s;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(90deg, #d72660 60%, #1b9aaa 100%);
    box-shadow: 0 2px 8px #d7266030, 0 1px 4px #1b9aaa40;
    border-radius: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
}
/* Suppression de l'icône de trophée */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Liens plateformes animés --- */
#liens-plateformes a {
    width: 100%;
    box-sizing: border-box;
    margin-right: 0 !important;

    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px #1b9aaa22;
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
#liens-plateformes a:hover {
    box-shadow: 0 0 16px #d72660cc, 0 0 8px #1b9aaa99;
    transform: translateY(-3px) scale(1.04);
    color: #d72660 !important;
    background: #fff3;
}
#liens-plateformes i {
    filter: drop-shadow(0 0 8px #1b9aaa44);
    transition: filter 0.3s;
}
#liens-plateformes a:hover i {
    filter: drop-shadow(0 0 16px #d72660cc);
}

/* --- Transitions douces globales --- */
.card, main, #calculer, input[type=range], #resultat-droite, #resultat, #liens-plateformes a {
    width: 100%;
    box-sizing: border-box;
    margin-right: 0 !important;

    transition: all 0.3s cubic-bezier(.4,2,.3,1);
}

@media (max-width: 600px) {
    #liens-plateformes {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    #liens-plateformes a {
        width: 100%;
        margin: 0 0 8px 0;
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }
    .options {
        flex-direction: column;
        gap: 0.5rem;
    }
}


.logo {
    display: block;
    margin: 0 auto 0.5rem auto;
    width: 72px;
    height: 72px;
}

h1, h2, .card-title {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
}

.mesures h2 {
    color: #1b9aaa;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.slider-group {
    margin-bottom: 1.2rem;
}
.slider-group label {
    display: block;
    margin-bottom: 0.3rem;
}
input[type=range] {
    width: 100%;
    accent-color: #d72660;
    margin-bottom: 0.2rem;
}
.options {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.options label {
    font-weight: 500;
}
select {
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    background: #f7f8fa;
}
.guide-img {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 160px;
    width: 90%;
    height: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
@media (max-width: 600px) {
    #liens-plateformes {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    #liens-plateformes a {
        width: 100%;
        margin: 0 0 8px 0;
        font-size: 1rem;
    }

    .options {
        flex-direction: column;
        gap: 0.5rem;
    }
}


header {
    background: #fff;
    padding: 2rem 1rem 1rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}
.logo {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}
h1 {
    margin: 0;
    font-size: 2rem;
    color: #d72660;
    font-weight: 700;
}
main {
    max-width: 480px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(215,38,96,0.07);
    padding: 2rem;
}
.mesures h2 {
    color: #1b9aaa;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.slider-group {
    margin-bottom: 1.2rem;
}
.slider-group label {
    display: block;
    margin-bottom: 0.3rem;
}
input[type=range] {
    width: 100%;
    accent-color: #d72660;
    margin-bottom: 0.2rem;
}

#resultat-droite {
    color: #fff;
    background: #1b9aaa; /* Rose pâle exemple */
}
.options {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.options label {
    font-weight: 500;
}
select {
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    background: #f7f8fa;
}
button#calculer {
    background: linear-gradient(90deg, #d72660 60%, #1b9aaa 100%);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(215,38,96,0.09);
    transition: background 0.2s;
    margin: 1.5rem 0 0.5rem 0;
}
button#calculer:hover {
    background: linear-gradient(90deg, #1b9aaa 60%, #d72660 100%);
}
#resultat {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #1b9aaa;
    font-weight: 600;
    text-align: center;
    min-height: 2.5rem;
}
.unit {
    font-size: 0.95em;
    color: #888;
}
@media (max-width: 600px) {
    #liens-plateformes {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    #liens-plateformes a {
        width: 100%;
        margin: 0 0 8px 0;
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }
    .options {
        flex-direction: column;
        gap: 0.5rem;
    }
}
