@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&family=Roboto:wght@300;400&display=swap');

/* ==================================================
   VARIABLES & DÉGRADÉ DE GRIS
================================================== */
:root {
    /* Couleurs */
    --kelio-colors-noir-212529: #212529;
    --kelio-colors-primary-bleu-007092: #007092;
    --kelio-colors-secondary-bleu-00536e: #00536e;
    --kelio-colors-secondary-jaune-ffed00: #ffed00;
    --kelio-colors-secondary-jaune-fonce-fcdd10: #fcdd10;
    --kelio-colors-gris-333333: #333333;
    --kelio-colors-gris-1-232323: #232323;
    --kelio-colors-gris-2-4d4d4d: #4d4d4d;
    --kelio-colors-gris-3-6d6e71: #6d6e71;
    --kelio-colors-gris-4-858585: #858585;
    --kelio-colors-gris-5-ececec: #ececec;
    --kelio-colors-gris-6-f5f5f5: #f5f5f5;
}

/* ==================================================
   TYPOGRAPHIE - ROBOTO (Light / Regular / Medium)
================================================== */
:root {
    /* H1 */
    --kelio-font-roboto-h1-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h1-light-font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    --kelio-font-roboto-h1-light-line-height: 1.2;
    --kelio-font-roboto-h1-light-font-weight: 300;
    --kelio-font-roboto-h1-light-font-style: normal;

    --kelio-font-roboto-h1-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h1-regular-font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    --kelio-font-roboto-h1-regular-line-height: 1.2;
    --kelio-font-roboto-h1-regular-font-weight: 400;
    --kelio-font-roboto-h1-regular-font-style: normal;

    --kelio-font-roboto-h1-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h1-medium-font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    --kelio-font-roboto-h1-medium-line-height: 1.2;
    --kelio-font-roboto-h1-medium-font-weight: 500;
    --kelio-font-roboto-h1-medium-font-style: normal;

    /* H2 */
    --kelio-font-roboto-h2-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h2-light-font-size: clamp(1.5rem, 3vw, 2.25rem);
    --kelio-font-roboto-h2-light-line-height: 1.2;
    --kelio-font-roboto-h2-light-font-weight: 300;
    --kelio-font-roboto-h2-light-font-style: normal;

    --kelio-font-roboto-h2-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h2-regular-font-size: clamp(1.5rem, 3vw, 2.25rem);
    --kelio-font-roboto-h2-regular-line-height: 1.2;
    --kelio-font-roboto-h2-regular-font-weight: 400;
    --kelio-font-roboto-h2-regular-font-style: normal;

    --kelio-font-roboto-h2-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h2-medium-font-size: clamp(1.5rem, 3vw, 2.25rem);
    --kelio-font-roboto-h2-medium-line-height: 1.2;
    --kelio-font-roboto-h2-medium-font-weight: 500;
    --kelio-font-roboto-h2-medium-font-style: normal;

    /* H3 */
    --kelio-font-roboto-h3-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h3-light-font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    --kelio-font-roboto-h3-light-line-height: 1.2;
    --kelio-font-roboto-h3-light-font-weight: 300;
    --kelio-font-roboto-h3-light-font-style: normal;

    --kelio-font-roboto-h3-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h3-regular-font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    --kelio-font-roboto-h3-regular-line-height: 1.2;
    --kelio-font-roboto-h3-regular-font-weight: 400;
    --kelio-font-roboto-h3-regular-font-style: normal;

    --kelio-font-roboto-h3-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h3-medium-font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    --kelio-font-roboto-h3-medium-line-height: 1.2;
    --kelio-font-roboto-h3-medium-font-weight: 500;
    --kelio-font-roboto-h3-medium-font-style: normal;

    /* H4 */
    --kelio-font-roboto-h4-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h4-light-font-size: clamp(1rem, 2vw, 1.5rem);
    --kelio-font-roboto-h4-light-line-height: 1.2;
    --kelio-font-roboto-h4-light-font-weight: 300;
    --kelio-font-roboto-h4-light-font-style: normal;

    --kelio-font-roboto-h4-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h4-regular-font-size: clamp(1rem, 2vw, 1.5rem);
    --kelio-font-roboto-h4-regular-line-height: 1.2;
    --kelio-font-roboto-h4-regular-font-weight: 400;
    --kelio-font-roboto-h4-regular-font-style: normal;

    --kelio-font-roboto-h4-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h4-medium-font-size: clamp(1rem, 2vw, 1.5rem);
    --kelio-font-roboto-h4-medium-line-height: 1.2;
    --kelio-font-roboto-h4-medium-font-weight: 500;
    --kelio-font-roboto-h4-medium-font-style: normal;

    /* H5 */
    --kelio-font-roboto-h5-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h5-light-font-size: clamp(0.9rem, 1.8vw, 1.35rem);
    --kelio-font-roboto-h5-light-line-height: 1.2;
    --kelio-font-roboto-h5-light-font-weight: 300;
    --kelio-font-roboto-h5-light-font-style: normal;

    --kelio-font-roboto-h5-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h5-regular-font-size: clamp(0.9rem, 1.8vw, 1.35rem);
    --kelio-font-roboto-h5-regular-line-height: 1.2;
    --kelio-font-roboto-h5-regular-font-weight: 400;
    --kelio-font-roboto-h5-regular-font-style: normal;

    --kelio-font-roboto-h5-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h5-medium-font-size: clamp(0.9rem, 1.8vw, 1.35rem);
    --kelio-font-roboto-h5-medium-line-height: 1.2;
    --kelio-font-roboto-h5-medium-font-weight: 500;
    --kelio-font-roboto-h5-medium-font-style: normal;

    /* H6 */
    --kelio-font-roboto-h6-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h6-light-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-roboto-h6-light-line-height: 1.2;
    --kelio-font-roboto-h6-light-font-weight: 300;
    --kelio-font-roboto-h6-light-font-style: normal;

    --kelio-font-roboto-h6-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h6-regular-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-roboto-h6-regular-line-height: 1.2;
    --kelio-font-roboto-h6-regular-font-weight: 400;
    --kelio-font-roboto-h6-regular-font-style: normal;

    --kelio-font-roboto-h6-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-h6-medium-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-roboto-h6-medium-line-height: 1.2;
    --kelio-font-roboto-h6-medium-font-weight: 500;
    --kelio-font-roboto-h6-medium-font-style: normal;

    /* Paragraph */
    --kelio-font-roboto-p-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-p-light-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-roboto-p-light-line-height: 1.5;
    --kelio-font-roboto-p-light-font-weight: 300;
    --kelio-font-roboto-p-light-font-style: normal;

    --kelio-font-roboto-p-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-p-regular-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-roboto-p-regular-line-height: 1.5;
    --kelio-font-roboto-p-regular-font-weight: 400;
    --kelio-font-roboto-p-regular-font-style: normal;

    --kelio-font-roboto-p-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-p-medium-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-roboto-p-medium-line-height: 1.5;
    --kelio-font-roboto-p-medium-font-weight: 500;
    --kelio-font-roboto-p-medium-font-style: normal;

    /* Small */
    --kelio-font-roboto-small-light-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-small-light-font-size: clamp(0.7rem, 1.4vw, 1.05rem);
    --kelio-font-roboto-small-light-line-height: 1.2;
    --kelio-font-roboto-small-light-font-weight: 300;
    --kelio-font-roboto-small-light-font-style: normal;

    --kelio-font-roboto-small-regular-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-small-regular-font-size: clamp(0.7rem, 1.4vw, 1.05rem);
    --kelio-font-roboto-small-regular-line-height: 1.2;
    --kelio-font-roboto-small-regular-font-weight: 400;
    --kelio-font-roboto-small-regular-font-style: normal;

    --kelio-font-roboto-small-medium-font-family: 'Roboto', sans-serif;
    --kelio-font-roboto-small-medium-font-size: clamp(0.7rem, 1.4vw, 1.05rem);
    --kelio-font-roboto-small-medium-line-height: 1.2;
    --kelio-font-roboto-small-medium-font-weight: 500;
    --kelio-font-roboto-small-medium-font-style: normal;
}

/* ==================================================
   TYPOGRAPHIE - MONTSERRAT (Regular / Bold)
================================================== */
:root {
    /* H1 */
    --kelio-font-montserrat-h1-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h1-regular-font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    --kelio-font-montserrat-h1-regular-line-height: 1.2;
    --kelio-font-montserrat-h1-regular-font-weight: 400;
    --kelio-font-montserrat-h1-regular-font-style: normal;

    --kelio-font-montserrat-h1-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h1-bold-font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    --kelio-font-montserrat-h1-bold-line-height: 1.2;
    --kelio-font-montserrat-h1-bold-font-weight: 700;
    --kelio-font-montserrat-h1-bold-font-style: normal;

    /* H2 */
    --kelio-font-montserrat-h2-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h2-regular-font-size: clamp(1.5rem, 3vw, 2.25rem);
    --kelio-font-montserrat-h2-regular-line-height: 1.2;
    --kelio-font-montserrat-h2-regular-font-weight: 400;
    --kelio-font-montserrat-h2-regular-font-style: normal;

    --kelio-font-montserrat-h2-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h2-bold-font-size: clamp(1.5rem, 3vw, 2.25rem);
    --kelio-font-montserrat-h2-bold-line-height: 1.2;
    --kelio-font-montserrat-h2-bold-font-weight: 700;
    --kelio-font-montserrat-h2-bold-font-style: normal;

    /* H3 */
    --kelio-font-montserrat-h3-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h3-regular-font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    --kelio-font-montserrat-h3-regular-line-height: 1.2;
    --kelio-font-montserrat-h3-regular-font-weight: 400;
    --kelio-font-montserrat-h3-regular-font-style: normal;

    --kelio-font-montserrat-h3-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h3-bold-font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    --kelio-font-montserrat-h3-bold-line-height: 1.2;
    --kelio-font-montserrat-h3-bold-font-weight: 700;
    --kelio-font-montserrat-h3-bold-font-style: normal;

    /* H4 */
    --kelio-font-montserrat-h4-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h4-regular-font-size: clamp(1rem, 2vw, 1.5rem);
    --kelio-font-montserrat-h4-regular-line-height: 1.2;
    --kelio-font-montserrat-h4-regular-font-weight: 400;
    --kelio-font-montserrat-h4-regular-font-style: normal;

    --kelio-font-montserrat-h4-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h4-bold-font-size: clamp(1rem, 2vw, 1.5rem);
    --kelio-font-montserrat-h4-bold-line-height: 1.2;
    --kelio-font-montserrat-h4-bold-font-weight: 700;
    --kelio-font-montserrat-h4-bold-font-style: normal;

    /* H5 */
    --kelio-font-montserrat-h5-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h5-regular-font-size: clamp(0.9rem, 1.8vw, 1.35rem);
    --kelio-font-montserrat-h5-regular-line-height: 1.2;
    --kelio-font-montserrat-h5-regular-font-weight: 400;
    --kelio-font-montserrat-h5-regular-font-style: normal;

    --kelio-font-montserrat-h5-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h5-bold-font-size: clamp(0.9rem, 1.8vw, 1.35rem);
    --kelio-font-montserrat-h5-bold-line-height: 1.2;
    --kelio-font-montserrat-h5-bold-font-weight: 700;
    --kelio-font-montserrat-h5-bold-font-style: normal;

    /* H6 */
    --kelio-font-montserrat-h6-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h6-regular-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-montserrat-h6-regular-line-height: 1.2;
    --kelio-font-montserrat-h6-regular-font-weight: 400;
    --kelio-font-montserrat-h6-regular-font-style: normal;

    --kelio-font-montserrat-h6-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-h6-bold-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-montserrat-h6-bold-line-height: 1.2;
    --kelio-font-montserrat-h6-bold-font-weight: 700;
    --kelio-font-montserrat-h6-bold-font-style: normal;

    /* Paragraph */
    --kelio-font-montserrat-p-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-p-regular-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-montserrat-p-regular-line-height: 1.5;
    --kelio-font-montserrat-p-regular-font-weight: 400;
    --kelio-font-montserrat-p-regular-font-style: normal;

    --kelio-font-montserrat-p-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-p-bold-font-size: clamp(0.8rem, 1.6vw, 1rem);
    --kelio-font-montserrat-p-bold-line-height: 1.5;
    --kelio-font-montserrat-p-bold-font-weight: 700;
    --kelio-font-montserrat-p-bold-font-style: normal;

    /* Small */
    --kelio-font-montserrat-small-regular-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-small-regular-font-size: clamp(0.7rem, 1.4vw, 1.05rem);
    --kelio-font-montserrat-small-regular-line-height: 1.2;
    --kelio-font-montserrat-small-regular-font-weight: 400;
    --kelio-font-montserrat-small-regular-font-style: normal;

    --kelio-font-montserrat-small-bold-font-family: 'Montserrat', sans-serif;
    --kelio-font-montserrat-small-bold-font-size: clamp(0.7rem, 1.4vw, 1.05rem);
    --kelio-font-montserrat-small-bold-line-height: 1.2;
    --kelio-font-montserrat-small-bold-font-weight: 700;
    --kelio-font-montserrat-small-bold-font-style: normal;
}

/* ==================================================
   RESET & BASE LAYOUT
================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--kelio-font-roboto-p-regular-font-family);
    font-size: var(--kelio-font-roboto-p-regular-font-size);
    line-height: var(--kelio-font-roboto-p-regular-line-height);
    color: var(--kelio-colors-noir-212529);
    background-color: var(--kelio-colors-gris-6-f5f5f5);
}

.error {
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: .75rem 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.success {
    display: block;
    background-color: #e3f8d7;
    color: #2c721c;
    border: 1px solid #c3efab;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* ==================================================
   LES REUTILISABLES
================================================== */

/* UTILITAIRES FLEXBOX */
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Direction */
.flex-row        { flex-direction: row; }
.flex-row-reverse{ flex-direction: row-reverse; }
.flex-col        { flex-direction: column; }
.flex-col-reverse{ flex-direction: column-reverse; }

/* Wrap */
.flex-wrap       { flex-wrap: wrap; }
.flex-nowrap     { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

/* Justify-content */
.justify-content-start    { justify-content: flex-start; }
.justify-content-end      { justify-content: flex-end; }
.justify-content-center   { justify-content: center; }
.justify-content-between  { justify-content: space-between; }
.justify-content-around   { justify-content: space-around; }
.justify-content-evenly   { justify-content: space-evenly; }

/* Align-items */
.align-items-start      { align-items: flex-start; }
.align-items-end        { align-items: flex-end; }
.align-items-center     { align-items: center; }
.align-items-baseline   { align-items: baseline; }
.align-items-stretch    { align-items: stretch; }

/* Align-content */
.align-content-start    { align-content: flex-start; }
.align-content-end      { align-content: flex-end; }
.align-content-center   { align-content: center; }
.align-content-between  { align-content: space-between; }
.align-content-around   { align-content: space-around; }
.align-content-evenly   { align-content: space-evenly; }
.align-content-stretch  { align-content: stretch; }

/* Align-self */
.align-self-auto        { align-self: auto; }
.align-self-start       { align-self: flex-start; }
.align-self-end         { align-self: flex-end; }
.align-self-center      { align-self: center; }
.align-self-stretch     { align-self: stretch; }


/* UTILITAIRES GRID POUR COLONNES */

/* parent qui définit le nombre de colonnes (ici de 1 à 12) */
.max-col-1  { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
.max-col-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.max-col-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.max-col-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.max-col-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.max-col-6  { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.max-col-7  { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
.max-col-8  { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
.max-col-9  { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1rem; }
.max-col-10 { display: grid; grid-template-columns: repeat(10,1fr); gap: 1rem; }
.max-col-11 { display: grid; grid-template-columns: repeat(11,1fr); gap: 1rem; }
.max-col-12 { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; }

/* enfants qui “occupent” X colonnes */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Tablettes (≥ 768px) */
@media (min-width: 768px) {
    /* parent qui définit le nombre de colonnes (ici de 1 à 12) */
    .max-col-md-1  { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
    .max-col-md-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .max-col-md-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .max-col-md-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .max-col-md-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
    .max-col-md-6  { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
    .max-col-md-7  { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
    .max-col-md-8  { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
    .max-col-md-9  { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1rem; }
    .max-col-md-10 { display: grid; grid-template-columns: repeat(10,1fr); gap: 1rem; }
    .max-col-md-11 { display: grid; grid-template-columns: repeat(11,1fr); gap: 1rem; }
    .max-col-md-12 { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; }

    .col-md-1  { grid-column: span 1; }
    .col-md-2  { grid-column: span 2; }
    .col-md-3  { grid-column: span 3; }
    .col-md-4  { grid-column: span 4; }
    .col-md-5  { grid-column: span 5; }
    .col-md-6  { grid-column: span 6; }
    .col-md-7  { grid-column: span 7; }
    .col-md-8  { grid-column: span 8; }
    .col-md-9  { grid-column: span 9; }
    .col-md-10 { grid-column: span 10; }
    .col-md-11 { grid-column: span 11; }
    .col-md-12 { grid-column: span 12; }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
    /* parent qui définit le nombre de colonnes (ici de 1 à 12) */
    .max-col-lg-1  { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
    .max-col-lg-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .max-col-lg-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .max-col-lg-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .max-col-lg-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
    .max-col-lg-6  { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
    .max-col-lg-7  { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
    .max-col-lg-8  { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
    .max-col-lg-9  { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1rem; }
    .max-col-lg-10 { display: grid; grid-template-columns: repeat(10,1fr); gap: 1rem; }
    .max-col-lg-11 { display: grid; grid-template-columns: repeat(11,1fr); gap: 1rem; }
    .max-col-lg-12 { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; }

    .col-lg-1  { grid-column: span 1; }
    .col-lg-2  { grid-column: span 2; }
    .col-lg-3  { grid-column: span 3; }
    .col-lg-4  { grid-column: span 4; }
    .col-lg-5  { grid-column: span 5; }
    .col-lg-6  { grid-column: span 6; }
    .col-lg-7  { grid-column: span 7; }
    .col-lg-8  { grid-column: span 8; }
    .col-lg-9  { grid-column: span 9; }
    .col-lg-10 { grid-column: span 10; }
    .col-lg-11 { grid-column: span 11; }
    .col-lg-12 { grid-column: span 12; }
}

/* Grand écran (≥ 1440px) */
@media (min-width: 1440px) {
    /* parent qui définit le nombre de colonnes (ici de 1 à 12) */
    .max-col-xl-1  { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
    .max-col-xl-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .max-col-xl-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .max-col-xl-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .max-col-xl-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
    .max-col-xl-6  { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
    .max-col-xl-7  { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
    .max-col-xl-8  { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
    .max-col-xl-9  { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1rem; }
    .max-col-xl-10 { display: grid; grid-template-columns: repeat(10,1fr); gap: 1rem; }
    .max-col-xl-11 { display: grid; grid-template-columns: repeat(11,1fr); gap: 1rem; }
    .max-col-xl-12 { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; }

    .col-xl-1  { grid-column: span 1; }
    .col-xl-2  { grid-column: span 2; }
    .col-xl-3  { grid-column: span 3; }
    .col-xl-4  { grid-column: span 4; }
    .col-xl-5  { grid-column: span 5; }
    .col-xl-6  { grid-column: span 6; }
    .col-xl-7  { grid-column: span 7; }
    .col-xl-8  { grid-column: span 8; }
    .col-xl-9  { grid-column: span 9; }
    .col-xl-10 { grid-column: span 10; }
    .col-xl-11 { grid-column: span 11; }
    .col-xl-12 { grid-column: span 12; }
}

/* Les positions */
.position-relative { position: relative; }
.position-absolute { position: absolute; }

.top-0 { top: 0}
.top-1 { top: 1rem}
.top-2 { top: 2rem}
.top-3 { top: 3rem}
.top-4 { top: 4rem}
.top-5 { top: 5rem}

.bottom-0 { bottom: 0}
.bottom-1 { bottom: 1rem}
.bottom-2 { bottom: 2rem}
.bottom-3 { bottom: 3rem}
.bottom-4 { bottom: 4rem}
.bottom-5 { bottom: 5rem}

.left-0 { left: 0}
.left-1 { left: 1rem}
.left-2 { left: 2rem}
.left-3 { left: 3rem}
.left-4 { left: 4rem}
.left-5 { left: 5rem}

.right-0 { right: 0}
.right-1 { right: 1rem}
.right-2 { right: 2rem}
.right-3 { right: 3rem}
.right-4 { right: 4rem}
.right-5 { right: 5rem}

/* UTILITAIRES D'Espacement */

/* Toutes les classes margin */
/* Margin Top */
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mt-3  { margin-top: 3rem; }
.mt-4  { margin-top: 4rem; }
.mt-5  { margin-top: 5rem; }
.mt-6  { margin-top: 6rem; }
.mt-7  { margin-top: 7rem; }
.mt-8  { margin-top: 8rem; }
.mt-9  { margin-top: 9rem; }
.mt-10 { margin-top: 10rem; }

/* Margin Bottom */
.mb-1  { margin-bottom: 1rem; }
.mb-2  { margin-bottom: 2rem; }
.mb-3  { margin-bottom: 3rem; }
.mb-4  { margin-bottom: 4rem; }
.mb-5  { margin-bottom: 5rem; }
.mb-6  { margin-bottom: 6rem; }
.mb-7  { margin-bottom: 7rem; }
.mb-8  { margin-bottom: 8rem; }
.mb-9  { margin-bottom: 9rem; }
.mb-10 { margin-bottom: 10rem; }

/* Margin Left */
.ml-1  { margin-left: 1rem; }
.ml-2  { margin-left: 2rem; }
.ml-3  { margin-left: 3rem; }
.ml-4  { margin-left: 4rem; }
.ml-5  { margin-left: 5rem; }
.ml-6  { margin-left: 6rem; }
.ml-7  { margin-left: 7rem; }
.ml-8  { margin-left: 8rem; }
.ml-9  { margin-left: 9rem; }
.ml-10 { margin-left: 10rem; }

/* Margin Right */
.mr-1  { margin-right: 1rem; }
.mr-2  { margin-right: 2rem; }
.mr-3  { margin-right: 3rem; }
.mr-4  { margin-right: 4rem; }
.mr-5  { margin-right: 5rem; }
.mr-6  { margin-right: 6rem; }
.mr-7  { margin-right: 7rem; }
.mr-8  { margin-right: 8rem; }
.mr-9  { margin-right: 9rem; }
.mr-10 { margin-right: 10rem; }


/* Toutes les classes padding */
/* Padding Top */
.pt-1  { padding-top: 1rem; }
.pt-2  { padding-top: 2rem; }
.pt-3  { padding-top: 3rem; }
.pt-4  { padding-top: 4rem; }
.pt-5  { padding-top: 5rem; }
.pt-6  { padding-top: 6rem; }
.pt-7  { padding-top: 7rem; }
.pt-8  { padding-top: 8rem; }
.pt-9  { padding-top: 9rem; }
.pt-10 { padding-top: 10rem; }

/* Padding Bottom */
.pb-1  { padding-bottom: 1rem; }
.pb-2  { padding-bottom: 2rem; }
.pb-3  { padding-bottom: 3rem; }
.pb-4  { padding-bottom: 4rem; }
.pb-5  { padding-bottom: 5rem; }
.pb-6  { padding-bottom: 6rem; }
.pb-7  { padding-bottom: 7rem; }
.pb-8  { padding-bottom: 8rem; }
.pb-9  { padding-bottom: 9rem; }
.pb-10 { padding-bottom: 10rem; }

/* Padding Left */
.pl-1  { padding-left: 1rem; }
.pl-2  { padding-left: 2rem; }
.pl-3  { padding-left: 3rem; }
.pl-4  { padding-left: 4rem; }
.pl-5  { padding-left: 5rem; }
.pl-6  { padding-left: 6rem; }
.pl-7  { padding-left: 7rem; }
.pl-8  { padding-left: 8rem; }
.pl-9  { padding-left: 9rem; }
.pl-10 { padding-left: 10rem; }

/* Padding Right */
.pr-1  { padding-right: 1rem; }
.pr-2  { padding-right: 2rem; }
.pr-3  { padding-right: 3rem; }
.pr-4  { padding-right: 4rem; }
.pr-5  { padding-right: 5rem; }
.pr-6  { padding-right: 6rem; }
.pr-7  { padding-right: 7rem; }
.pr-8  { padding-right: 8rem; }
.pr-9  { padding-right: 9rem; }
.pr-10 { padding-right: 10rem; }

/* UTILITAIRES TEXTES */

.text-justify {
    text-align: justify;
}

/* ==================================================
    COMPOSANTS
================================================== */

/* ----- Bloc conditions (garde tes couleurs, juste aligné Material) ----- */
.gc-policy{
    margin-top: 4px;
    border-radius: 10px;
    padding: 12px;
}
.gc-policy__list > div{
    display: flex; align-items: center;
    padding: 6px 10px; margin-bottom: 6px;
    border: 1px solid #ddd; border-radius: 8px;
    background: #fff; color: #dc3545; font-weight: 500;
}
.gc-policy__list .icon{ width:18px; height:18px; margin-right:8px; stroke-width:2; fill:none; stroke: currentColor; }
.gc-policy__list > div .icon{ color:#dc3545; }
.gc-policy__list > div.ok{ color:#198754; border-color:#198754; background:#f0fff4; }
.gc-policy__list > div.ok .icon{ color:#198754; }
.gc-policy__match{ margin-top: 6px; font-weight: 600; }

#password-policy {
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
}

#password-policy strong {
    display: block;
    margin-bottom: 8px;
}

#pwd_checks > div {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #dc3545; /* Rouge par défaut */
    font-weight: 500;
}

/* Icône SVG commune */
#pwd_checks .icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
}

/* Croix rouge (par défaut) */
#pwd_checks > div .icon {
    color: #dc3545;
}

/* Quand validé (ok) */
#pwd_checks > div.ok {
    color: #198754; /* Vert Bootstrap */
    border-color: #198754;
    background-color: #f0fff4;
}

#pwd_checks > div.ok .icon {
    color: #198754;
}

/* SVG checkmark (si besoin en JS remplacer le path) */
#pwd_checks > div.ok .icon path {
    d: path("M5 13l4 4L19 7"); /* ✔︎ */
}

/* ==================================================
   -----------------------------------------------
================================================== */
.grecaptcha-badge{
    z-index: 999;
}

.groupBtn {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}


main {
    overflow-y: auto;
    height: -webkit-fill-available;
}

.step {
    display: flex;
    flex-direction: column;
}

/* Utilitaire générique */
.hidden {
    display: none !important;
    opacity: 0;
}

/* Utilitaire générique */
.inline-block {
    display: inline-block !important;
}

/* Animation fade-in */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-out-left {
    animation: slideOutLeft 0.3s forwards;
}

.slide-in-right {
    animation: slideInRight 0.3s forwards;
}

.button {
    border: none;
    padding: 10px 15px;
    font-size: var(--kelio-font-montserrat-p-bold-font-size);
    font-family: var(--kelio-font-montserrat-p-bold-font-family);
    line-height: var(--kelio-font-montserrat-p-bold-line-height);
    font-weight: var(--kelio-font-montserrat-p-bold-font-weight);
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease-out;
}

.button-primary {
    background-color: var(--kelio-colors-primary-bleu-007092);
    color: var(--kelio-colors-gris-5-ececec) !important;
}

.button-primary:hover {
    background-color: var(--kelio-colors-secondary-bleu-00536e);
}

.button-secondary {
    background-color: var(--kelio-colors-secondary-jaune-ffed00);
    color: var(--kelio-colors-gris-333333);
}

.button-secondary:hover {
    background-color: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
}

/* Voici le style important pour les boutons désactivés */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #666666;
    border: 1px solid #999999;
}


/* Liens et alignement textuel */
a {
    color: var(--kelio-colors-primary-bleu-007092);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ==================================================
   HEADER
================================================== */
header {
    z-index: 10;
    flex: 0 0 80px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--kelio-colors-gris-333333);
    color: #fff;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 180px;
    height: 80px;
}

.logo-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: auto;
    width: calc(100% + 25px);
    height: 100%;
    background-color: #fff;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.logo-container a, .logo-container img {
    height: 6.25rem;
    z-index: 2;
}

.title-container h2 {
    font-family: var(--kelio-font-roboto-h2-light-font-family);
    font-size: var(--kelio-font-roboto-h2-light-font-size);
    line-height: var(--kelio-font-roboto-h2-light-line-height);
}

.nav-container {
    padding-right: 2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Sélecteur pour mon compte */
.account-menu {
    position: relative;
}

.account-menu .dropdown-menu {
    display: none;
    width: clamp(8rem, 100%, 10rem);
    position: absolute;
    top: 100%;
    right: -1rem;
    background: white;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.account-menu:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.account-menu svg {
    width: var(--kelio-font-roboto-p-regular-font-size);
    fill: white;
    padding-right: 1rem;
}
.dropdown-menu li {
    margin: 0;
    padding: 5px;
    text-align: center;
    width: -webkit-fill-available;
}

.dropdown-menu li a {
    display: block;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}


/* Sélecteur de langue */
.language-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 20px;
}

.language-selector span::after {
    content: " \25BE";
    margin-left: 5px;
}

.language-selector .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 60px;
    z-index: 99;
}

.language-selector:hover .dropdown-menu {
    display: block;
}

.language-selector .dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--kelio-colors-gris-333333);
    font-family: var(--kelio-font-roboto-p-regular-font-family);
    font-size: var(--kelio-font-roboto-p-regular-font-size);
    line-height: var(--kelio-font-roboto-p-regular-line-height);
}

.language-selector .dropdown-menu li a:hover {
    background-color: var(--kelio-colors-gris-5-ececec);
}

/* ==================================================
   MAIN – PAGE DE CONNEXION
================================================== */
main#connexion-page, main#forgot-password-page, main#first-connection-page {
    flex: 1;
    display: flex;
}

/* Section gauche de la page de connexion */
.intro-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 70%;
    background-color: #fffdfb;
    padding: 20px 7.5rem;
    box-sizing: border-box;
}

.intro-section p {
    font-family: var(--kelio-font-roboto-p-light-font-family);
    font-size: var(--kelio-font-roboto-p-light-font-size);
    line-height: var(--kelio-font-roboto-p-light-line-height);
}

/* Section droite de la page de connexion */
.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    background-color: #f8f2f0;
    padding: 3% 20px;
    box-sizing: border-box;
    text-align: center;
}

.login-section h2 {
    font-family: var(--kelio-font-roboto-h2-medium-font-family);
    font-size: var(--kelio-font-roboto-h2-medium-font-size);
    line-height: var(--kelio-font-roboto-h2-medium-line-height);
    margin-top: 5rem;
}

.login-section .login-form {
    margin: 2rem 0 10px 0;
    width: clamp(350px, 70%, 500px);
}

.reset-password-form {
    margin: 1rem 0 10px 0;
    width: clamp(350px, 70%, 500px);
}

.login-section form {
    position: relative;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

.login-section label {
    text-align: left;
    margin-bottom: 5px;
    font-family: var(--kelio-font-roboto-p-regular-font-family);
    font-size: var(--kelio-font-roboto-p-regular-font-size);
    line-height: var(--kelio-font-roboto-p-regular-line-height);
}

.login-section input, .login-section select {
    padding: 8px;
    font-size: var(--kelio-font-roboto-p-regular-font-size);
    border: 1px solid var(--kelio-colors-gris-3-6d6e71);
    border-radius: 4px;
}

/* Bloc d'aide sous le bouton de connexion */
.login-help{
    margin-top: 12px;
    border-top: 1px solid rgba(0,0,0,.08);
}
.login-help .help-item{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px;
    padding: 10px 8px;                 /* cible tactile ≥ 44px */
    text-decoration:none;
    color: var(--kelio-colors-primary-bleu-007092);;                      /* gris foncé */
    border-radius:8px;
    transition: background .15s ease, color .15s ease, transform .04s ease;
}
.login-help .help-item + .help-item{
    border-top: 1px dashed rgba(0,0,0,.08);
}
.login-help .help-item:hover{
    background:#f8fafc;                 /* slate-50 */
}
.login-help .help-item:active{
    transform: translateY(1px);
}
.login-help .help-item:focus-visible{
    outline:2px solid #8ab4f8; outline-offset:2px;
}
.login-help .help-item .t{
    font-weight:600;
    font-size: 14.5px;
}
.login-help .help-item svg{
    width:18px; height:18px;
    stroke: currentColor; stroke-width:2; fill:none;
    opacity:.7;
}
@media (max-width: 520px){
    .login-help .help-item{ padding:12px 10px; }
}

.login-section button:not([class*="iti"]) {
    background-color: var(--kelio-colors-secondary-jaune-ffed00);
    color: var(--kelio-colors-gris-333333);
    border: none;
    padding: 10px 15px;
    font-size: var(--kelio-font-montserrat-p-bold-font-size);
    font-family: var(--kelio-font-montserrat-p-bold-font-family);
    line-height: var(--kelio-font-montserrat-p-bold-line-height);
    font-weight: var(--kelio-font-montserrat-p-bold-font-weight);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease-out;
}

.login-section button:not([class*="iti"]):hover {
    background-color: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
}

/* ==================================================
   FOOTER
================================================== */
footer {
    z-index: 1;
    flex: 0 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--kelio-colors-noir-212529);
    color: #fff;
    padding: 0 20px;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    margin: 0;
    padding-right: 60px;
    font-family: var(--kelio-font-montserrat-p-regular-font-family);
    font-size: var(--kelio-font-montserrat-p-regular-font-size);
    line-height: var(--kelio-font-montserrat-p-regular-line-height);
    gap: 20px;
}

/* ==================================================
   MAIN – PAGE LOGGEDPAGE
================================================== */
/* Structure principale pour le loggedPage */
main#loggedPage {
    flex: 1;
    display: flex;
}

/* Colonnes génériques pour le contenu de loggedPage */
.content-unique,
.content-left,
.content-right {
    padding: 2rem;
    height: 100%;
    box-sizing: border-box;
}

/* Colonne Unique */
.content-unique{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #f8f2f0;
}
/* Colonne gauche */
.content-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65%;
    background-color: #fbe7c6;
}

/* Éléments internes de content-left */
.content-left * {
    width: clamp(300px, 100%, 900px);
}

/* Colonne droite */
.content-right {
    text-align: center;
    width: 35%;
    background-color: #f8f2f0;
}


/* Titres et paragraphes dans le loggedPage */
.content-unique h2,
.content-left h2,
.content-right h2 {
    font-family: var(--kelio-font-roboto-h3-light-font-family);
    font-size: var(--kelio-font-roboto-h3-light-font-size);
    margin-bottom: 1rem;
}

.content-unique *,
.content-left *,
.content-right * {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
}

.content-unique h2,
.content-left h2,
.content-right h2 {
    font-size: clamp(1.2rem, 2vw, 2rem);
}

.content-unique p,
.content-left p,
.content-right p {
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
}

.content-unique h2,
.content-left h1,
.content-right h2{
    font-size: clamp(1.2rem, 1.8vw, 2rem);
}
.content-left h3 {
    font-size: clamp(0.85rem, 1.5vw, 2rem);
}

.content-unique > div > img,
.content-left > div > img,
.content-right > div > img {
    width: clamp(200px, 100%, 900px) !important;
    height: auto;
}

/* -----------------------------------------------------------------*/
/* -----------------------------------------------------------------*/
/* -----------------------------------------------------------------*/

/* Modernisation du style content-unique */
.content-unique {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 2rem 2rem 0 0;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.05);
}

/* Titre plus impactant */
#services-title {
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

/* Style modernisé pour les blocs services */
.services-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

/* Box cliquable avec animation */
/* Bloc principal */
.service-box {
    background: #fff;
    border-radius: 1.25rem;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 350px;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Nouvelle image bannière rectangulaire */
.service-logo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

/* Contenu textuel */
.service-content {
    padding: 1rem 1.25rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 0.4rem;
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.service-content small {
    font-size: 0.9rem;
    color: #777;
}

/* Bouton CTA */
.service-content button.button {
    align-self: flex-start;
    margin-top: 1rem;
    background: var(--kelio-colors-secondary-jaune-ffed00);
    color: var(--kelio-colors-gris-333333);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.service-content button.button:hover {
    background: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
}

/* -----------------------------------------------------------------*/
/* -----------------------------------------------------------------*/
/* -----------------------------------------------------------------*/

@media screen and (max-width: 1800px) {

    .services-flex{
        margin: 1rem;
        gap: 0;
    }
    .service-box {
        flex-direction: column !important;
        align-items: center !important;
    }
    .service-box .service-content {
        text-align: center !important;
    }

    /* img info journalier*/
    .content-left > div > img, .content-right > div > img {
        width: clamp(200px, 100%, 745px) !important;
        height: auto;
    }

}

/* RESPONSIVE – Passage en colonne à partir de 1100px */
@media screen and (max-width: 1100px) {
    /* Page en colonne */
    main#loggedPage {
        flex-direction: column;
        height: auto;
    }

    .content-left,
    .content-right {
        width: 100%;
        height: -webkit-fill-available !important;
        padding: 1.5rem;
    }

    .content-left *,
    .content-right * {
        width: 100%;
    }

    .content-left > div > img,
    .content-right > div > img {
        width: 90% !important;
    }

    /* RESPONSIVE – Tablette alignement horizontal et centrage */
    .services-flex {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .service-box {
        width: clamp(200px, 30%, 300px);
        margin: 0.5rem;
        align-content: center;
    }
}

/* RESPONSIVE – Mobile passage en colonne */
@media screen and (max-width: 768px) {
    .services-flex {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 90%;
    }
}

/* ==================================================
   MAIN – PAGE DE RESET MOT DE PASSE
================================================== */

/* Place le bouton à droite de l’input, dans .gc-field */
.gc-field { position: relative; margin-bottom: 1rem }
.gc-field .toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
}
.gc-field .toggle-password svg{
    width: 18px; height: 18px;
    fill: currentColor;
    color: #6b7280; /* gris neutre */
}
.gc-field .toggle-password:hover svg{ color:#374151; }


/* ----- Carte matérielle légère ----- */
.gc-card{
    display: flex;
    flex-direction: column;
    width: clamp(300px, 92vw, 650px);
    height: clamp(560px, 82vh, 750px);
    min-height: 0;
    margin-inline: clamp(8px, 3vw, 24px);
    border-radius: clamp(8px, 1.2vw, 12px);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 clamp(6px, 0.6vw, 12px) clamp(24px, 2.4vw, 36px) rgba(0, 0, 0, .06);
    background: #fff;
    overflow: hidden;
}
.gc-card__header{
    display: flex;
    flex: 0 0 auto;
    padding: 22px 24px 0 24px;
    text-align: center;
    flex-direction: column;
    justify-content: flex-end;
}
.gc-card__body{
    padding: 16px 24px 24px 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sécurité viewport (si besoin sur vieux navigateurs) */
@supports not (height: 100svh) {
    .gc-card { max-height: calc(100vh - 24px); }
}


.gc-title{
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .2px;
}
.gc-subtitle{
    margin: 6px 0 0 0;
    color: inherit;
    font-size: 14px;
}

/* ----- Form layout ----- */
.gc-form{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* ----- Champs avec label flottant (Material) ----- */
.gc-field{
    position: relative;
}
.gc-field input{
    width: -webkit-fill-available;
    padding: 14px 12px 12px;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.gc-field input[type="radio"]{
    width: -webkit-fill-available;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.gc-field input:hover{
    border-color: #c9c9c9;
}
.gc-field input:not([type="checkbox"]):not([type="tel"]):not([type="radio"]):focus,
.gc-field input:not([type="checkbox"]):not([type="tel"]):not([type="radio"]):not(:placeholder-shown) {
    outline: none;
    padding-top: 28px;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, .25);
    background: #fff;
}



/* Label flottant */
.gc-label {
    text-align: left;
    font-size: 15px;
}
.gc-field label:not(.wrapped-checkbox) {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 4px;
    color: rgba(0,0,0,.6);
    font-size: 14px;
    transition: all .15s ease;
    pointer-events: none;
}
/* Quand le champ est rempli ou focus -> on remonte le label */
.gc-field input:not(:placeholder-shown) + label,
.gc-field input:focus + label{
    top: 12px;
    left: 4px;
    font-size: 12px;
    color: #5f6368;
}
/* Erreurs (réutilise ton .error) */
.gc-field .error{
    margin-top: 6px;
}

/* ----- Actions ----- */
.gc-actions{
    margin-top: 4px;
    display:flex;
    gap:12px;
}
.gc-actions--center{ justify-content:center; }
.gc-button{
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px; /* pill */
    padding: 10px 16px;
    font-weight: 600;
    font-size: clamp();
    background: #f7d774;   /* garde ton jaune déjà aperçu */
    color: #333;
    transition: box-shadow .15s ease, transform .04s ease;
}
.gc-button:hover{ box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.gc-button:active{ transform: translateY(1px); }

/* ----- Responsive ----- */
@media (max-width: 980px){
    .gc-card{ margin: 0 12px; }
}

/* ==================================================
==================================================
================================================== */

/* ==================================================
   MAIN – PAGE D'INSCRIPTION - PRE-REGISTRATION
================================================== */
.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}


/* Structure principale */
main#registration-page {
    flex: 1;
    display: flex;
    height: 100vh;
}

/* Colonnes de contenu */
.intro-section,
.login-section {
    padding: 2rem;
    height: 100%;
    box-sizing: border-box;
}

/* Colonne gauche : Intro (image + texte) */
.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    background-color: #f9f9f9;
    text-align: center;
}

/* Image d’introduction */
.intro-image img {
    width: clamp(200px, 80%, 600px);
    height: auto;
    border-radius: 10px;
}

/* Colonne droite : Formulaire */
.login-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
}

/* Titre */
.login-section h2 {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-family: sans-serif;
    margin-bottom: 1rem;
}

/* Formulaire */
.login-form {
    width: clamp(300px, 100%, 600px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

/* Champs du formulaire */
.login-form label {
    font-weight: bold;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.login-form input,
.login-form button:not([class*="iti"]) {
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

/* Fieldset services */
/* Fieldset en ligne (row) */
.login-form fieldset {
    border: 2px solid #dddddd;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Légende */
.login-form fieldset legend {
    margin-bottom: 0.8rem;
    font-weight: bold;
    width: 70%;
}

/* Label stylé comme bouton toggle */
.login-form fieldset label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 2px solid #dddddd;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}

/* Cacher le checkbox */
.login-form fieldset input[type="checkbox"] {
    display: none;
}

/* Effet actif si checkbox cochée – version label contient input */
.login-form fieldset input[type="checkbox"]:checked ~ * {
    background-color: var(--kelio-colors-secondary-jaune-ffed00);
    /*color: #ffffff;*/
    border-color: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
    font-weight: bold;
}

/* Correction : ciblage du label directement avec :has() si dispo */
.login-form fieldset label:has(input:checked) {
    background-color: var(--kelio-colors-secondary-jaune-ffed00);
    /*color: #ffffff;*/
    border-color: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
    font-weight: bold;
}

/* Message d'erreur */
.error {
    color: red;
    font-size: 0.85rem;
    min-height: 1em;
}

/* ========================================
   BREAKPOINT : ≤ 1800px
======================================== */
@media screen and (max-width: 1800px) {
    .login-form {
        margin: 1rem 0 10px 0 !important;
    }

    .intro-image img {
        width: clamp(200px, 100%, 500px);
    }
}

/* ========================================
   BREAKPOINT : ≤ 1100px
   Passage en colonne
======================================== */
@media screen and (max-width: 1100px) {
    main#registration-page {
        flex-direction: column;
        height: auto;
    }

    .intro-section,
    .login-section {
        width: 100%;
        height: auto;
        padding: 1.5rem;
    }

    .login-form {
        width: 90%;
    }

    .intro-image img {
        width: 90%;
    }

    .groupBtn {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================
   BREAKPOINT : ≤ 768px
   Mobile
======================================== */
@media screen and (max-width: 768px) {
    .login-form {
        width: 95%;
    }

    .intro-image img {
        width: 100%;
    }

    .groupBtn {
        flex-direction: column;
        align-items: stretch;
    }
}


/**//* ========== Container général pour toutes les étapes ========= */
.step label[for] + input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #999;
    border-radius: 6px;
    background-color: white;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

/* Ajoute un check visible */
.step label[for] + input[type="checkbox"]:checked {
    background-color: #007BFF;
    border-color: #0056b3;
}

.step label[for] + input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    position: absolute;
    font-size: 1rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    pointer-events: none;
}

/* Accessibilité visuelle focus */
.step label[for] + input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* Espace entre les labels et les inputs */
.step label {
    display: block;
    font-weight: 500;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* ========== Base du wrapper label bouton ========== */
label.wrapped-checkbox {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 0.75rem;
    padding: 0.25rem 1.25rem;
    background-color: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    user-select: none;
    margin-bottom: .25rem;
}

/* ========== Input visible stylé dans le label ========== */
label.wrapped-checkbox input[type="checkbox"] {
    appearance: none;
    width: 1rem;
    height: 1.9rem;
    margin-right: 0.9rem;
    border: 2px solid #999;
    border-radius: 4px;
    background-color: white;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}
label.wrapped-checkbox input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1.9rem;
    margin-right: 0.9rem;
    border: 2px solid #999;
    border-radius: 35px;
    background-color: white;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

/* Checkmark visible */
label.wrapped-checkbox input[type="checkbox"]:checked, label.wrapped-checkbox input[type="radio"]:checked {
    background-color: #0056b3;
    border-color: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
}

label.wrapped-checkbox input[type="checkbox"]:checked::after, label.wrapped-checkbox input[type="radio"]:checked::after {
    content: "✓";
    color: white;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
}

/* Style du label complet quand la checkbox est cochée */
label.wrapped-checkbox input[type="checkbox"]:checked ~ *, label.wrapped-checkbox input[type="radio"]:checked ~ * {
    color: var(--kelio-colors-noir-212529);
    font-weight: bold;
}

/* Avec :has() si supporté */
label.wrapped-checkbox:has(input[type="checkbox"]:checked), label.wrapped-checkbox:has(input[type="radio"]:checked) {
    background-color: var(--kelio-colors-secondary-jaune-ffed00);
    /*color: #ffffff;*/
    border-color: var(--kelio-colors-secondary-jaune-fonce-fcdd10);
}

/* Message d'erreur */
.step .error {
    font-size: 0.85rem;
    color: red;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
}


/* ==================================================
   MAIN –  PAGE D'INSCRIPTION - PRE-REGISTRATION
================================================== */

#registration-form {
    overflow: hidden;
}

.step.active {
    display: flex;
}

.next-btn, .prev-btn, #final-submit-btn {
    margin-top: 1rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0 !important;
    cursor: pointer;
    height: 2rem;
    max-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.icon-eye {
    width: 1.5rem;
    height: 1.5rem;
}

.intl-tel-input {
    width: 100%;
}

.iti {
    display: block !important;
}
.iti__selected-country {
    padding-right: .5rem !important;
    border-right: 1px solid #ccc !important;
}
.iti__country-container {
    font-size: 15px !important;
    position: absolute;
    top: 0;
    bottom: 0;
    padding: var(--iti-border-width);
}

/* ==================================================
   MAIN –  PAGE D'INSCRIPTION - FINAL-REGISTRATION
================================================== */

#registration-form {
    overflow: hidden;
}

.step.active {
    display: flex;
}

.next-btn, .prev-btn, #final-submit-btn {
    margin-top: 1rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0 !important;
    cursor: pointer;
    height: 2rem;
    max-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

input[readonly], select[disabled] {
    background-color: #f8f8f8;
    color: #666;
    cursor: not-allowed;
}

/* ==================================================
   MAIN – PAGE ACCOUNT - COMPTE UTILISATEUR
================================================== */
main#account-page {
    display: flex;
    gap: 2rem;
    margin: 2rem;
    flex-wrap: wrap;
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.sidebar h5 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #333;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li + li {
    margin-top: 0.5rem;
}

.sidebar a {
    text-decoration: none;
    color: #007092;
    font-weight: 500;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: #00526b;
}

.center-side {
    position: relative;
    flex-grow: 1;
    /*min-width: 600px;*/
    border-radius: 10px;
    /*overflow: hidden;*/
}

.content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-nb {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fafafa;
    border: 1px solid #eee;
}

.card-nb legend {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1.2rem;
    border-left: 4px solid #007092;
    padding-left: 0.5rem;
}

.field {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}


.field label {
    font-weight: 600;
    color: #333;
}

.field input, .field select {
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.field input:focus {
    outline: none;
    border-color: #007092;
}




.buttons-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
}
.buttons-bottom-right{
    bottom: 10px;
    right: 10px;
}
.buttons-top-left{
    top: 10px;
    left: 10px;
}
.buttons-bottom-right{
    top: 10px;
    left: 10px;
}

.buttons-top-right button, .buttons-bottom-right button, .buttons-top-left button, .buttons-bottom-right  button, .buttons-link a {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.edit-btn {
    background-color: #007092;
    color: #fff;
}

.edit-btn:hover {
    background-color: #005a72;
}

.save-btn {
    background-color: #28a745;
    color: #fff;
    display: none;
}

.save-btn:hover {
    background-color: #218838;
}

.info-message, .error {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.info-message {
    background: #e7f5e6;
    color: #2f6627;
}

.error {
    background: #fdecea;
    color: #842029;
}

fieldset {
    border: none;
    padding: 0;
}

@media screen and (max-width: 768px) {
    main#account-page {
        flex-direction: column;
        margin: 1rem;
    }

    .center-side {
        min-width: unset;
    }

    .buttons-top-right {
        justify-content: center;
    }
}

.user-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #007092;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.user-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.user-card-badges {
    margin: 1rem 0;
}

.badge {
    display: inline-block;
    background: #007092;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
}

.user-card-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-card-summary li {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.user-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
}

.summary-label {
    font-size: 0.95rem;
    color: var(--kelio-colors-noir-212529);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 0.85rem;
    color: var(--kelio-colors-noir-212529);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.missing-text {
    color: #dc3545;
    font-style: italic;
}


/* ==================================================
   MAIN – PAGE ACCOUNT - COMPTE UTILISATEUR
   Responsive + tailles fluides (clamp)
   ================================================== */

:root {
    /* échelles typographiques et espacements – ajustables globalement */
    --acc-title: clamp(1.15rem, 1.2vw + 1rem, 1.6rem);
    --acc-h3: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem);
    --acc-text: clamp(.9rem, 0.35vw + .84rem, 1rem);
    --acc-label: clamp(.85rem, 0.25vw + .78rem, .95rem);
    --acc-badge: clamp(.7rem, 0.25vw + .68rem, .8rem);
    --acc-input-h: clamp(38px, 2.5vw, 46px);
    --acc-gap: clamp(.6rem, 0.6vw, 1rem);
}

/* ============ Layout global ============ */
main#account-page {
    display: flex;
    gap: 2rem;
    margin: 2rem;
    flex-wrap: wrap;
}

.sidebar h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.sidebar h5 { font-size: 0.95rem; margin-bottom: 1rem; color: #333; }

.sidebar ul { list-style: none; padding: 0; }
.sidebar li + li { margin-top: 0.5rem; }

.sidebar a {
    text-decoration: none; color: #007092; font-weight: 500; transition: color 0.2s;
}
.sidebar a:hover { color: #00526b; }

.content {
    background: #fff; padding: 2rem; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ============ Cartes/sections ============ */
.card-nb {
    position: relative; margin-bottom: 2.5rem; padding: 1.5rem; padding-bottom: 0;
    border-radius: 10px; background-color: #fafafa; border: 1px solid #eee;
}
.card-nb legend {
    font-size: 1.3rem; font-weight: 600; color: #222; margin-bottom: 1.2rem;
    border-left: 4px solid #007092; padding-left: 0.5rem;
}

/* ============ Grille d’inputs (préservée) ============ */
/* On applique la grille au fieldset pour obtenir 2 colonnes si la place le permet,
   et 1 colonne sinon. */
fieldset {
    border: none; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--acc-gap);
}
.field {
    position: relative; display: flex; flex-direction: column; gap: 0.3rem;
}

.field label { font-weight: 600; color: #333; font-size: var(--acc-label); }

.field input, .field select {
    height: var(--acc-input-h);
    padding: 0 0.9rem;
    font-size: var(--acc-text);
    border: 1px solid #ccc; border-radius: 6px; transition: border-color 0.3s ease;
    width: 100%; box-sizing: border-box;
}


.field input:focus { outline: none; border-color: #007092; }

.input-wrapper,
.wrapped-checkbox { position: relative; }

.overlay-locked {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.12);
    border-radius: 8px;
    pointer-events: auto;
    cursor: not-allowed;
}

.overlay-locked::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .9;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.15));
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000' d='M144 144v48h160v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192v-48C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64v192c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64h16z'/%3E%3C/svg%3E");
}

/* ============ Boutons ============ */
.buttons-top-right,
.buttons-bottom-right,
.buttons-top-right { top: 10px; right: 10px; }
.buttons-bottom-right { bottom: 10px; right: 10px; }
.buttons-top-left { top: 10px; left: 10px; }

.buttons-top-right button,
.buttons-bottom-right button,
.buttons-top-left button,
.buttons-bottom-right  button,
.buttons-link a {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border: none; border-radius: 6px; font-weight: 600;
    cursor: pointer; transition: background 0.3s ease;
}

.edit-btn { background-color: #007092; color: #fff; }
.edit-btn:hover { background-color: #005a72; }

.save-btn { background-color: #28a745; color: #fff; display: none; }
.save-btn:hover { background-color: #218838; }

.info-message, .error {
    margin-bottom: 1.5rem; padding: 1rem; border-radius: 6px; font-size: 0.95rem;
}
.info-message { background: #e7f5e6; color: #2f6627; }
.error { background: #fdecea; color: #842029; }

/* ============ User Card ============ */
.user-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem; margin-bottom: 2rem; font-size: var(--acc-text);
}
.user-card-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: #007092; color: #fff; font-size: 1.5rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}
.user-info h3 { margin: 0; font-size: var(--acc-h3); }
.user-info p { margin: 0; font-size: 0.95rem; color: #555; }

.user-card-badges { margin: 1rem 0; }
.badge {
    display: inline-block; background: #007092; color: white;
    padding: 0.3rem 0.7rem; border-radius: 12px;
    font-size: var(--acc-badge); margin-right: 0.5rem; margin-bottom: 0.3rem;
}

.user-card-summary ul { list-style: none; padding: 0; margin: 0; }
.user-card-summary li { font-size: 0.95rem; margin-bottom: 0.3rem; }

.user-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem; margin-top: 1.5rem;
}
.summary-label {
    font-size: 0.95rem; color: var(--kelio-colors-noir-212529);
    font-weight: bold; margin-bottom: 0.25rem;
}
.summary-value {
    font-size: 0.85rem; color: var(--kelio-colors-noir-212529);
    font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.missing-text { color: #dc3545; font-style: italic; }

/* ============ Titres h2 ============ */
#account-page h2.text-center { font-size: var(--acc-title); }

/* ============ Responsive breakpoints ============ */

/* Tablette/Laptop : confort, wrap badges, légers resserrages */
@media (max-width: 1024px) {
    .content { padding: 1.5rem; }
    .user-card-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
}

/* Mobile large et portrait ≤ 768px :
   - User Card en premier (au-dessus)
   - Grille d’inputs conservée (auto-fit)
   - Tailles légèrement réduites
*/
@media (max-width: 768px) {
    main#account-page { flex-direction: column; margin: 1rem; }

    /* Fieldset grid : minmax un peu réduit pour garder du 2-col si possible */
    fieldset {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--acc-gap);
    }

    #account-page h2.text-center { font-size: clamp(1.05rem, 4.5vw, 1.3rem); }
    :root { --acc-input-h: clamp(36px, 6vw, 42px); }

    .buttons-top-left .button { position: static !important; margin: 0 0 .75rem 0 !important; }

    .buttons-top-right {
        display: flex; gap: .5rem; overflow-x: auto; justify-content: flex-end;
        position: absolute; right: 10px; top: 10px;
    }

    .user-summary-grid {
        grid-template-columns: 1fr !important;
        gap: .5rem .75rem;
    }

    .user-card { padding: 1rem; }
    .card-nb { padding: 1rem; }
    #reset-password-button { width: 100%; }
}

/* Petits mobiles ≤ 420px : encore plus compact, avatar réduit */
@media (max-width: 420px) {
    fieldset { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    :root { --acc-gap: .5rem; }
    .user-card-header .avatar { transform: scale(.9); }
}