/* ISOTOPIC.fr */
/* contact@isotopic.fr */
/* merci de contacter l'auteur pour toute demande de reproduction */

/* Amélioré par IA */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Tangerine:wght@700&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
@media (prefers-color-scheme: dark)
{
    :root{
        --bg:           #0b0b31;
        --color:        #e8f4fb;
        --card-bg:      linear-gradient(180deg, #0f0f3d 40%, #1e1e5e 100%);
        --card-hv:      linear-gradient(180deg, #291c53 40%, #1e1e5e 100%);
        --border:       #c0dff0;
        --glow:         #291c53;
        --glow-plus:    #9292f0;
        --disclaimer:   #ffff00;
        --acknowledge:  #fa05e6;
    }
}

@media (prefers-color-scheme: light)
{
    :root{
        --bg:           #e8f4fb;
        --color:        #0b0b31;
        --card-bg:      linear-gradient(180deg, #78cff8 40%, #c0dff0 100%);
        --card-hv:      linear-gradient(180deg, #04aaf7 40%, #78cff8 100%);
        --border:       #04aaf7;
        --glow:         #78cff8;
        --glow-plus:    #04aaf7;
        --disclaimer:   #000000;
        --acknowledge:  #fa05e6;    
    }
}

:root[style*="color-scheme: dark"] {
        --bg:           #0b0b31;
        --color:        #e8f4fb;
        --card-bg:      linear-gradient(180deg, #0f0f3d 40%, #1e1e5e 100%);
        --card-hv:      linear-gradient(180deg, #291c53 40%, #1e1e5e 100%);
        --border:       #c0dff0;
        --glow:         #291c53;
        --glow-plus:    #9292f0;
        --disclaimer:   #ffff00;
        --acknowledge:  #fa05e6;

}

:root[style*="color-scheme: light"] {
        --bg:           #e8f4fb;
        --color:        #0b0b31;
        --card-bg:      linear-gradient(180deg, #78cff8 40%, #c0dff0 100%);
        --card-hv:      linear-gradient(180deg, #04aaf7 40%, #78cff8 100%);
        --border:       #04aaf7;
        --glow:         #78cff8;
        --glow-plus:    #04aaf7;
        --disclaimer:   #000000;
        --acknowledge:  #fa05e6;
}

:root {
    color-scheme: light dark;
    --radius: 9px;
    --input-bg: #cde0f1;
    --input-hv: #a1ccf7;
    --error: #ff0000;
    --card-new: var(--glow-plus);
    --progress: #ffa500;

    --dark:     #0b0b31;
    --clear:    #e8f4fb;

    /* Fluid spacing */
    --space-xs: clamp(0.4rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 2vw, 1.25rem);
    --space-md: clamp(1rem, 3vw, 2rem);
    --space-lg: clamp(1.5rem, 5vw, 3.5rem);
    --space-xl: clamp(2.5rem, 8vw, 6rem);

    /* Fluid typography */
    --text-xs: clamp(0.7rem, 1.2vw, 0.85rem);
    --text-sm: clamp(0.85rem, 1.5vw, 1rem);
    --text-md: clamp(1rem, 2vw, 1.2rem);
    --text-lg: clamp(1.2rem, 3vw, 1.6rem);
    --text-xl: clamp(1.75rem, 5vw, 3rem);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--color);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-sm);
    overflow-x: hidden;
    padding-inline: clamp(0.5rem, 3vw, 1.5rem);
}

/* ─── Links ─────────────────────────────────────────────── */
a,
a:visited {
    color: var(--color);
    text-decoration: none;
}

/* ─── Utilities ─────────────────────────────────────────── */
textarea {
    resize: none;
}

.highlight {
    background-color: var(--glow-plus)!important;
}

.glow {
    color: var(--glow);
}

.glow-plus {
    color: var(--glow-plus);
}

.big {
    font-size: var(--text-xl);
}

.centre {
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

.sup {
    vertical-align: top;
    font-size: smaller;
}

.h300 {
    min-height: 300px;
}

.h150 {
    min-height: 150px;
}

.icon_big {
    font-size: 40px!important;
}

/* ___ Check de couleur ____________________________________ */
#toggleMode {
    margin-top: 5px;
}

#toggleMode > input[type="checkbox"] {
    vertical-align:baseline!important;
}

/* ─── Typography ────────────────────────────────────────── */
h1 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h2 {
    font-size: var(--text-lg);
    font-weight: 600;
}

h3 {
    font-size: var(--text-md);
    font-weight: 400;
}

h4 {
    font-size: var(--text-sm);
    font-weight: 400;
}

/* ─── Marquee ───────────────────────────────────────────── */
.marquee {
    width: 100%;
    line-height: 50px;
    white-space: nowrap;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee p {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 240s linear infinite;
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
    container-type: inline-size;
    position: sticky;
    top: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 var(--space-sm);
    min-height: 48px;
    z-index: 5;
    opacity: 0.9;
}

#progress-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 6px;
    width: 100%;
    background: var(--progress);
    z-index: 9999;
    transform-origin: left;
    opacity: .8;

    animation: progress linear;
    animation-timeline: scroll();
    animation-fill-mode: both;
}

#logo {
    font-size: var(--text-lg);
    font-weight: 600;
}

@keyframes progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}


/* ── Hamburger (label) — à droite via order ── */
.hamburger {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    padding: 2px 0;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animation croix quand ouvert */
#navToggle:checked~.hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(180deg);
}

#navToggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#navToggle:checked~.hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-180deg);
}

/* ── NavLinks : caché par défaut (mobile) ── */
.navLinks {
    order: 3;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 var(--space-xs);
}

/* Ouvert via checkbox */
#navToggle:checked~.navLinks {
    max-height: 400px;
    padding-block: var(--space-sm);
    border-top: 1px solid var(--border);
}

.navLinks a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: var(--text-xs);
    transition: background-color 0.2s ease-in-out;
}

.navLinks a:hover {
    background-color: var(--glow-plus);
}

/* ── Grand écran : hamburger caché, liens en ligne ── */
@container (min-width: 842px) {
    .hamburger {
        display: none;
    }

    .navLinks {
        order: 1;
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        border-top: none !important;
        align-items: center;
        min-height: 48px;
        justify-content: flex-end;
        flex: 1;
        gap: var(--space-xs);
    }

    #logo {
        max-height: 40px;
        order: 0;
    }
}

/* ─── Header ────────────────────────────────────────────── */
.header {
    margin-inline: auto;
    text-align: center;
    line-height: 3rem;
    width: clamp(280px, 80%, 700px);
    padding-block: var(--space-lg);
}

.header h3 {
    line-height: 2em;
}

/* ─── Sections ──────────────────────────────────────────── */
.section {
    padding-top: var(--space-lg);
}

.sectionHeader {
    padding-left: clamp(1rem, 5vw, 3rem);
    padding-top: var(--space-lg);
}

/* ─── Cards Grid (générique) ────────────────────────────── */
.sectionCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-md);
    padding: var(--space-md);
    justify-items: center;
}

/* ─── Card ──────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    min-width: 0;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card * {
    background-color: transparent;
}

.card:hover {
    box-shadow: 0 0 10px var(--glow);
    background: var(--card-hv);
    transform: translate(2px, 2px);
}

.cardLogo * {
    width: fit-content;
    padding: var(--space-xs);
}

.cardText {
    color: var(--card-text);
    font-size: var(--text-xs);
}

.cardNew {
    border-color: var(--glow-plus);
    box-shadow: 0 0 10px var(--glow-plus);
    animation: spin 2s infinite;
}

/* ─── #why ──────────────────────────────────────────────── */
#why .sectionCards .card {
    min-height: 150px;
}

/* ─── #how ──────────────────────────────────────────────── */
#how .sectionCards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 250px));
    justify-content: center;
    gap: clamp(1.5rem, 6vw, 9rem);
}

#how .sectionCards .card {
    width: 250px;
    height: fit-content;
    aspect-ratio: 1;
}

/* ─── #portrait ─────────────────────────────────────────── */
#portrait .sectionCards .card {
    max-width: 480px;
    text-align: justify;
    display: grid;
    grid-template-columns: clamp(120px, 20%, 150px) 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-sm);
    align-items: start;
}

#portraitPhoto {
    grid-column: 1;
    grid-row: 1;
    border-radius: 50%;
    width: clamp(80px, 15vw, 120px);
    overflow: hidden;
    margin-right: var(--space-sm);
}

#portraitText {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--text-sm);
    text-align: left;
}

#signature {
    font-family: 'Tangerine', cursive;
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* ___ Bouton _______________________________________________ */

.button {
    display: flex;
    align-items: baseline;
    background: var(--glow);
    width: fit-content;
    margin: auto;
    padding: var(--space-xs);
    border-radius: var(--radius);
    border-color: transparent;
    transition: all .2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-plus);
    transition: all 0.1s ease; 
}

.button:hover {
    background: var(--glow-plus);
    transform: translate(2px, 2px);
}

.buttons {
    margin-top: 20px;
    width: fit-content;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#btnTop {
    position: fixed;
    bottom: 2%;
    right: 2%;
    opacity: .8;
}

#btnTop:hover {
    border-color: var(--glow);
    box-shadow: 0 0 10px var(--glow);
    transform: translate(2px, 2px);
}

#quickContact {
    padding-right: var(--space-xs);
}


#whatsapp, #linkedin, #email, #phone {
    max-height: 64px;
    width: 64px;
    vertical-align: middle;
    border-left: 1px solid var(--border);
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
}

#email, #phone{
    color:  var(--glow);
}


/* ─── Reference ─────────────────────────────────────────── */
.reference ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-evenly;
    gap: var(--space-sm);
}

/* ─── Form ──────────────────────────────────────────────── */
.sectionForm form {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    margin-top: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    padding: var(--space-md) clamp(1rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm) var(--space-md);
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.sectionForm form:hover {

    box-shadow: 0 0 10px var(--glow);
    background: var(--card-hv);
}


.form_label {
    grid-column: 1 / 2;
    white-space: nowrap;
    line-height: 1.8;
}

.sectionForm .form_input {
    grid-column: 2 / 3;
    width: clamp(180px, 30vw, 300px);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 5px;
    padding: 4px 6px;
    font-size: var(--text-sm);
    font-family: inherit;
    background-color: var(--input-bg);
    transition: border-color 0.2s ease-in-out;
}

.form_input:focus,
.form_input:hover,
.form_input:valid {
    outline: none;
    border-bottom-color: var(--glow);
    background-color: var(--input-hv);
}

.acknowledge {
    grid-column: 1 / 3;
    color: var(--acknowledge);
}

.form_button {
    grid-column: 1 / 3;
    width: 100%;
   
}

.form_button:active {
    transform: translate(2px, 2px);
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    font-size: var(--text-xs);
    text-align: right;
    margin-top: var(--space-xl);
    padding: var(--space-sm);
    background: var(--card-bg);
    min-height: 75px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 5em;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        filter: grayscale(1);
    }

    to {
        filter: grayscale(0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* ___ Blog _________________________________________________*/
.blog {
    justify-items: left;
    padding-left: 50px;
    padding-right: 50px;
    font-size: var(--text-md);
    line-height: 2.5rem;
}

.blog li {
    list-style: none;
}

.blog li::before {
    content: "✔️";
}

.blogBackground {
    background-image: url("/images/fondBlog01.jpg");
    background-size: auto;
}

/* ___ Toggle ______________________________________________*/
#toggleMode
{
    text-align: right;

}

.toggle {
    text-align: right;
    margin-top: 10px;
    --toggle-height: 1.5rem;
    appearance: none;
    width: 3rem;
    height: 1.5rem;
    border-radius: 99px;
    background: var(--glow);
    position: relative;
    cursor: pointer;
    transition: 0.3s
}

.toggle::after {
    --element-top-left: 2px;
    --element-size: calc(var(--toggle-height) - var(--element-top-left) * 2);

    content: '';
    position: absolute;
    left: var(--element-top-left);
    top: var(--element-top-left);
    width: var(--element-size);
    height: var(--element-size);
    background: var(--glow-plus);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle:checked::after {
    transform: translateX(var(--toggle-height));
    background: var(--glow-plus);
}