/* 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 ─────────────────────────────────────────── */
:root {
    --bg:             #01010c;
    --color:          #ffffff;
    --border:         #34345a;
    --glow:           #78cff8;
    --radius:         9px;
    --card-bg:        linear-gradient(180deg, #0b0b31 0%, #291c53 100%);
    --card-bg-hover:  linear-gradient(150deg, #0b0b31 0%, #291c53 100%);
    --card-title:     #ffffff;
    --card-text:      #808080;
    --input-bg:       #cde0f1;
    --error:          #ff0000;
    --card-new:       #ff7300;

    /* 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); }
.blanc     { color: var(--color); }
.bleu      { color: var(--glow); }
.gris      { color: var(--card-text); }
.big       { font-size: var(--text-xl); }
.centre    { text-align: center; }


/* ─── 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;
}

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

/* ── 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(--card-text); }

/* ── Grand écran : hamburger caché, liens en ligne ── */
@container (min-width: 480px) {
    .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 {
    border-color: var(--glow);
    box-shadow: 0 0 10px var(--glow);
    background: var(--card-bg-hover);
    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(--card-new);
    box-shadow: 0 0 10px var(--card-new);
    animation: blink 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;
    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-xs);
}

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

/* ___ Quick _______________________________________________ */

.quick {
    display: block;
    background: var(--glow);
    width: fit-content;
    margin: auto;
    padding: var(--space-xs);
    border-radius: var(--radius);
    transition: all .2s ease-in-out;
}

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

#quickContact
{
    padding-right: var(--space-xs);
    border-right: 1px solid var(--border);
}

#whatsapp {
    height: 48px;
    vertical-align:middle;
}

/* ─── Reference ─────────────────────────────────────────── */
.reference ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-between;
    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: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.sectionForm form:hover {
    border-color: var(--glow);
    box-shadow: 0 0 10px var(--glow);
    background: var(--card-bg-hover);
}

.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);
}

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

.form_button {
    grid-column: 1 / 3;
    width: 100%;
    height: 4em;
    border-radius: var(--radius);
    background: var(--glow);
    border: none;
    font-size: var(--text-sm);
    font-family: inherit;
    cursor: pointer;
    filter: drop-shadow(0 0 0.2em var(--glow));
    transition: transform 0.1s ease;
}

.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%); }
}

@keyframes blink {
    0%   { box-shadow: 0 0 0 var(--card-new);}
    100% { box-shadow: 0 0 10px var(--card-new);; }
}


/* ___ 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;
}