
/* =========================================================
   TECHNOLAB-ISTA — FEUILLE DE STYLE PRINCIPALE
   Accueil, guide candidat, catalogue, formulaire et FAQ
========================================================= */

/* 1. BASE GÉNÉRALE
--------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: #182a3d;
    background: #f5f8fc;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}


/* 2. EN-TÊTE ET NAVIGATION
--------------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 11px clamp(18px, 3vw, 40px);

    border-bottom: 1px solid #e6edf4;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;

    color: var(--techno-blue);
    font-size: 20px;
    font-weight: 800;
}

.logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo span {
    color: var(--techno-blue);
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

nav a {
    padding: 8px 8px;
    border-radius: 8px;

    color: #33445a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    transition: background .18s ease, color .18s ease;
}

nav a:hover {
    background: var(--techno-cyan-light);
    color: var(--techno-blue);
}

nav a[aria-current="page"] {
    color: var(--techno-blue);
    background: var(--techno-cyan-light);
}

/* Accès étudiant et enseignant */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}


/* 3. BANNIÈRE PRINCIPALE
--------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    min-height: 490px;
    padding: clamp(64px, 9vw, 112px) clamp(22px, 8vw, 120px);

    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(0, 176, 240, .42),
            transparent 36%
        ),
        linear-gradient(
            120deg,
            #07155d 0%,
            var(--techno-blue-dark) 56%,
            #006a9a 100%
        );

    color: #fff;
}

.hero::after {
    position: absolute;
    content: "";

    width: 430px;
    height: 430px;

    right: -120px;
    bottom: -220px;

    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;

    box-shadow:
        0 0 0 38px rgba(255, 255, 255, .035),
        0 0 0 78px rgba(255, 255, 255, .025);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero h1 {
    max-width: 720px;
    margin: 14px 0 18px;

    font-size: clamp(38px, 5.5vw, 62px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.hero p {
    max-width: 660px;
    margin-bottom: 29px;

    color: rgba(255, 255, 255, .86);
    font-size: clamp(16px, 1.7vw, 19px);
}

.badge {
    display: inline-block;

    padding: 8px 13px;
    margin-bottom: 20px;

    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 25px;

    background: rgba(255, 255, 255, .1);
    color: #fff;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* 4. BOUTONS
--------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;
    padding: 13px 22px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: var(--techno-yellow);
    color: #17283b;

    font-weight: 750;
    text-align: center;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn:hover {
    background: var(--techno-yellow-hover);
    transform: translateY(-2px);
}

.hero .btn {
    min-height: 50px;
    padding: 14px 20px;
}

.hero .btn-outline {
    border: 1px solid rgba(255, 255, 255, .56);
    background: transparent;
    color: #fff;
}

.hero .btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.btn:focus-visible,
.card-link:focus-visible {
    outline: 3px solid var(--techno-cyan);
    outline-offset: 3px;
}


/* 5. BANDEAU DES CYCLES
--------------------------------------------------------- */

.cycle-strip {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 0;

    width: min(1120px, calc(100% - 36px));
    margin: -32px auto 0;

    overflow: hidden;

    border: 1px solid #e3eaf2;
    border-radius: 15px;

    background: #fff;
    box-shadow: 0 16px 40px rgba(13, 38, 76, .13);
}

.cycle-strip-intro,
.cycle-strip > a {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 84px;
    padding: 16px 20px;
}

.cycle-strip-intro {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;

    color: #17283b;
}

.cycle-strip-intro strong {
    font-size: 17px;
}

.cycle-strip-intro span {
    color: #69798b;
    font-size: 13px;
}

.cycle-strip > a {
    position: relative;

    border-left: 1px solid #e8edf3;

    color: #152a4f;

    transition: background .18s ease;
}

.cycle-strip > a:hover {
    background: #f1faff;
}

.cycle-strip > a strong {
    font-size: 17px;
}

.cycle-strip > a span {
    color: #64758a;
    font-size: 13px;
}

.cycle-strip > a b {
    margin-left: auto;
    color: var(--techno-cyan-dark);
    font-size: 20px;
}


/* 6. SECTIONS ET CARTES DE L'ACCUEIL
--------------------------------------------------------- */

.section {
    padding: 72px clamp(20px, 7vw, 100px);
    text-align: center;
}

.section h2 {
    margin-bottom: 15px;

    color: var(--techno-blue);
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -.025em;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 34px;

    color: #617083;
    font-size: 16px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    max-width: 1160px;
    margin: 0 auto;
}

.card {
    position: relative;

    min-height: 250px;
    padding: 27px 25px;

    border: 1px solid #e1e9f2;
    border-radius: 15px;

    background: #fff;
    box-shadow: 0 7px 25px rgba(12, 37, 74, .055);

    text-align: left;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #b9e8f8;
    box-shadow: 0 15px 34px rgba(12, 37, 74, .11);
}

.card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    margin-bottom: 21px;

    border-radius: 11px;

    background: var(--techno-cyan-light);
    color: var(--techno-blue);

    font-size: 13px;
    font-weight: 800;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--techno-blue);
    font-size: 19px;
}

.card p {
    margin-bottom: 19px;
    color: #607185;
    font-size: 14px;
}

.card .icon {
    margin-bottom: 15px;
    font-size: 35px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--techno-blue);
    font-size: 14px;
    font-weight: 750;
}

.card-link:hover {
    color: var(--techno-cyan-dark);
}


/* 7. APPEL À L'INSCRIPTION ET PIED DE PAGE
--------------------------------------------------------- */

.cta {
    max-width: 1160px;
    margin: 0 auto 64px;
    padding: 46px 28px;

    border: 1px solid #d5edf6;
    border-radius: 12px;

    background: linear-gradient(120deg, #e8f8fd, #f5fbff);

    text-align: center;
}

.cta h2 {
    margin-bottom: 12px;
    color: var(--techno-blue);
}

.cta p {
    max-width: 680px;
    margin: 0 auto 20px;
    color: #55677c;
}

.cta .btn {
    margin: 5px;
}

footer {
    padding: 25px 7%;

    background: var(--techno-footer);
    color: #fff;

    text-align: center;
}


/* 8. GUIDE DU CANDIDAT
--------------------------------------------------------- */

.guide-hero {
    padding: 72px 7%;

    background: linear-gradient(
        120deg,
        var(--techno-blue-dark),
        var(--techno-cyan-dark)
    );

    color: #fff;
}

.guide-hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
}

.guide-hero p {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: 18px;
}

.guide-kicker {
    color: #f4c35e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}

.guide-section {
    padding: 52px 7%;
}

.guide-section:nth-of-type(even) {
    background: #fff;
}

.guide-section h2 {
    margin-bottom: 18px;
    color: var(--techno-blue);
    font-size: 29px;
}

.guide-section p {
    max-width: 980px;
    margin-bottom: 14px;
}

.guide-lead {
    margin-bottom: 24px !important;
    color: #617083;
}


/* 9. FILTRES DU CATALOGUE
--------------------------------------------------------- */

.formation-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.5fr)
        minmax(150px, .8fr)
        minmax(220px, 1.2fr)
        auto;

    gap: 14px;
    align-items: end;

    padding: 20px;
    margin: 22px 0 26px;

    border: 1px solid #e2eaf2;
    border-radius: 16px;

    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 31, 115, .07);
}

.formation-filters label {
    display: grid;
    gap: 7px;

    color: #34445a;
    font-size: 13px;
    font-weight: 700;
}

.formation-filters input,
.formation-filters select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;

    border: 1px solid #cad6e2;
    border-radius: 9px;

    background: #fbfdff;
    color: #1b2b42;

    font: inherit;
    font-weight: 400;
}

.formation-filters input:focus,
.formation-filters select:focus {
    outline: 3px solid rgba(0, 176, 240, .22);
    border-color: var(--techno-cyan-dark);
}

.formation-filters button {
    min-height: 48px;
    padding: 10px 16px;

    border: 1px solid #cbd8e5;
    border-radius: 9px;

    background: #f5f9fc;
    color: var(--techno-blue);

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.formation-filters button:hover {
    background: var(--techno-cyan-light);
}

.formation-count {
    grid-column: 1 / -1;
    margin: 0 !important;

    color: #526276;
    font-size: 14px;
    font-weight: 700;
}


/* 10. CARTES DES CYCLES
--------------------------------------------------------- */

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.cycle-card {
    overflow: hidden;
    padding: 0 0 18px;

    border: 1px solid #e2eaf2;
    border-radius: 16px;

    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 31, 115, .07);
}

.cycle-card h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin: 0;
    padding: 19px 21px;

    background: linear-gradient(
        120deg,
        var(--techno-blue-dark),
        var(--techno-cyan-dark)
    );

    color: #fff;
    font-size: 22px;
}

.cycle-card h3 small {
    padding: 6px 10px;

    border-radius: 999px;

    background: var(--techno-yellow);
    color: #172554;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cycle-card h4 {
    margin: 20px 20px 9px;
    padding-bottom: 8px;

    border-bottom: 1px solid #e8eef4;

    color: var(--techno-blue);
    font-size: 14px;
    line-height: 1.35;
}

.cycle-card ul {
    display: grid;
    gap: 7px;

    margin: 0;
    padding: 0 20px;

    color: #34445a;
    list-style: none;
}

.cycle-card li {
    position: relative;

    margin: 0;
    padding: 9px 10px 9px 28px;

    border: 1px solid #e6edf4;
    border-radius: 9px;

    background: #f8fbfd;

    font-size: 14px;
    line-height: 1.4;
}

.cycle-card li::before {
    position: absolute;
    top: 9px;
    left: 10px;

    color: var(--techno-green);
    content: "•";

    font-size: 19px;
    line-height: 1;
}

.cycle-card[hidden],
.cycle-card [hidden],
.formation-filters [hidden] {
    display: none !important;
}


/* 11. DOCUMENTS ET FRAIS
--------------------------------------------------------- */

.document-list {
    max-width: 900px;
    padding-left: 24px;
}

.document-list li {
    padding: 7px 0 7px 4px;
}

.documents-catalogue {
    margin: 0 0 18px 22px;
}

.documents-catalogue li {
    margin: 6px 0;
}

.fee-note {
    padding: 18px 20px;
    margin-bottom: 20px;

    border-left: 4px solid #2e6844;
    border-radius: 5px;

    background: #edf4ea;
}

.fee-note strong {
    color: #174d32;
    font-size: 19px;
}

.fee-note p {
    margin-top: 7px;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    min-width: 690px;

    border-collapse: collapse;
    background: #fff;
}

.table-wrap th,
.table-wrap td {
    padding: 12px;
    border: 1px solid #dce3e9;
    text-align: center;
}

.table-wrap thead th {
    background: var(--techno-blue);
    color: #fff;
}

.table-wrap tbody th {
    background: #f0f4f8;
    text-align: left;
}

.uniform-note {
    margin-top: 16px !important;
    color: #174d32;
    font-weight: 700;
}

.catalogue-note {
    margin-top: 18px !important;
    color: #617083;
    font-size: 14px;
}

.guide-cta {
    margin: 16px 7% 55px;
    padding: 36px 24px;

    border-radius: 12px;
    background: var(--techno-cyan-light);

    text-align: center;
}

.guide-cta h2 {
    margin-bottom: 8px;
    color: var(--techno-blue);
}

.guide-cta p {
    margin-bottom: 20px;
}


/* 12. RÉSULTATS DU CATALOGUE
--------------------------------------------------------- */

.programme-results {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(min(100%, 300px), 1fr)
    );

    gap: 14px;
    align-items: stretch;
}

.programme-results[hidden],
.cycle-grid[hidden] {
    display: none !important;
}

.programme-card {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 13px;

    min-height: 144px;
    padding: 18px;
    overflow: hidden;

    border: 1px solid #e1e9f2;
    border-radius: 14px;

    background: #fff;
    box-shadow: 0 5px 18px rgba(12, 37, 74, .045);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.programme-card::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: linear-gradient(
        var(--techno-cyan),
        var(--techno-blue)
    );

    content: "";
}

.programme-card:hover {
    transform: translateY(-2px);
    border-color: #b7e6f5;
    box-shadow: 0 11px 26px rgba(12, 37, 74, .09);
}

.programme-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
}

.programme-cycle-tag,
.programme-domain-tag {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.programme-cycle-tag {
    flex: 0 0 auto;
    background: var(--techno-blue);
    color: #fff;
}

.programme-domain-tag {
    background: var(--techno-cyan-light);
    color: #07537a;
}

.programme-card h3 {
    margin: 0;
    color: #1d3047;
    font-size: 16px;
    line-height: 1.45;
}

.programme-empty {
    grid-column: 1 / -1;

    margin: 0 !important;
    padding: 28px;

    border: 1px dashed #b9c8d7;
    border-radius: 14px;

    background: #fff;
    color: #526276;

    text-align: center;
}

.formation-toolbar-footer {
    grid-column: 1 / -1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.formation-toolbar-footer .formation-count {
    grid-column: auto;
}

.formation-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 14px;

    border-radius: 9px;

    background: var(--techno-blue);
    color: #fff;

    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.formation-apply:hover {
    background: var(--techno-blue-dark);
    color: #fff;
}


/* 13. FORMULAIRE DE CANDIDATURE
--------------------------------------------------------- */

.form-container {
    width: min(1040px, calc(100% - 32px));
    max-width: 1040px;

    margin: 28px auto 56px;
    padding: clamp(22px, 4vw, 44px);

    border: 1px solid #e4ebf3;
    border-radius: 18px;

    background: #fff;
    box-shadow: 0 16px 44px rgba(13, 38, 76, .08);
}

.form-container h1 {
    font-size: clamp(28px, 3.5vw, 38px);
    letter-spacing: -.025em;
}

.form-container .intro {
    max-width: 760px;
    line-height: 1.65;
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;

    margin: 23px 0 8px;
}

.application-steps a {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 48px;
    padding: 8px 10px;

    border: 1px solid #e1e9f1;
    border-radius: 10px;

    background: #fbfdff;
    color: #33445a;

    font-size: 12px;
    font-weight: 700;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.application-steps a:hover {
    border-color: #9ddff3;
    background: #f0fbff;
}

.application-steps a span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 27px;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: var(--techno-blue);
    color: #fff;

    font-size: 11px;
}

.form-section {
    margin-top: 16px;
    padding: 22px;

    border: 1px solid #e3eaf2;
    border-radius: 14px;

    background: #fcfdff;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;
    font-size: 18px;
}

.form-section h2::before {
    width: 4px;
    height: 22px;

    border-radius: 9px;

    background: linear-gradient(
        var(--techno-cyan),
        var(--techno-blue)
    );

    content: "";
}

.form-grid {
    gap: 18px 20px;
}

.form-group label {
    color: #34445a;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    min-height: 47px;

    border-color: #cbd6e2;
    border-radius: 8px;

    background: #fff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--techno-cyan-dark);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, .16);
}

.form-group input[type="file"] {
    min-height: auto;
    padding: 10px;
    background: #f7fafc;
}

.form-group small {
    color: #68798c;
}

.form-container .btn {
    min-height: 49px;
    padding: 13px 22px;

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    font: inherit;
    font-weight: 750;
}

.form-container .btn:focus-visible {
    outline: 3px solid var(--techno-cyan);
    outline-offset: 3px;
}

.checkbox-line {
    padding: 14px;
    border-radius: 10px;

    background: #f5f8fb;
    color: #405167;

    font-size: 14px;
}

.required-note {
    padding: 12px 14px;

    border-left: 3px solid var(--techno-yellow);

    background: #fffdf0;
}


/* 14. QUESTIONS FRÉQUENTES
--------------------------------------------------------- */

.faq-section {
    padding: 64px clamp(20px, 7vw, 100px);

    background: linear-gradient(
        180deg,
        #f3f8fc,
        #edf6fb
    );
}

.faq-heading {
    max-width: 850px;
    margin: 0 auto 28px;
    text-align: center;
}

.faq-heading .guide-kicker {
    color: var(--techno-cyan-dark);
}

.faq-heading h2 {
    margin: 8px 0 10px;
    color: var(--techno-blue);
    font-size: clamp(28px, 3vw, 36px);
}

.faq-heading p {
    margin: 0 auto;
    color: #5f7084;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;

    max-width: 1120px;
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;

    border: 1px solid #dfe8f0;
    border-radius: 13px;

    background: #fff;
    box-shadow: 0 5px 16px rgba(12, 37, 74, .045);
}

.faq-item[open] {
    border-color: #b7e6f5;
    box-shadow: 0 9px 22px rgba(12, 37, 74, .075);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    min-height: 62px;
    padding: 16px 18px;

    color: #1f334c;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;

    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    display: grid;
    place-items: center;
    flex: 0 0 27px;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: var(--techno-cyan-light);
    color: var(--techno-blue);

    content: "+";
    font-size: 18px;
    line-height: 1;
}

.faq-item[open] summary::after {
    background: var(--techno-blue);
    color: #fff;
    content: "−";
}

.faq-answer {
    padding: 0 18px 18px;

    color: #56677b;
    font-size: 14px;
    line-height: 1.65;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer a {
    display: inline-flex;
    color: var(--techno-blue);
    font-weight: 750;
}

.faq-answer a:hover {
    color: var(--techno-cyan-dark);
    text-decoration: underline;
}

.faq-contact {
    display: grid;
    grid-template-columns: 1.1fr 2fr auto;
    align-items: center;
    gap: 16px;

    max-width: 1120px;
    margin: 20px auto 0;
    padding: 19px 22px;

    border: 1px solid #d8e8f0;
    border-radius: 13px;

    background: #fff;
    color: #53657a;

    font-size: 14px;
}

.faq-contact strong {
    color: #1f334c;
}

.faq-contact a {
    color: var(--techno-blue);
    font-weight: 750;
    white-space: nowrap;
}

.faq-contact a:hover {
    text-decoration: underline;
}


/* 15. ADAPTATION AUX ÉCRANS MOYENS
--------------------------------------------------------- */

@media (max-width: 1100px) {
    header {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav {
        justify-content: center;
    }

    .header-actions {
        justify-content: center;
    }
}

@media (max-width: 950px) {
    .cycle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .formation-filters {
        grid-template-columns: 1fr 1fr;
    }

    .formation-search {
        grid-column: 1 / -1;
    }

    .cycle-strip {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .cycle-strip-intro {
        grid-column: 1 / -1;
        min-height: 66px;
        border-bottom: 1px solid #e8edf3;
    }

    .cycle-strip > a:first-of-type {
        border-left: 0;
    }

    .application-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* 16. ADAPTATION AUX TÉLÉPHONES
--------------------------------------------------------- */

@media (max-width: 650px) {
    header {
        flex-direction: column;
        gap: 7px;
        padding: 8px 12px;
    }

    .logo {
        gap: 8px;
        font-size: 17px;
    }

    .logo img {
        width: 44px;
        height: 44px;
    }

    nav {
        width: 100%;
        justify-content: center;
        gap: 2px;
    }

    nav a {
        padding: 6px 7px;
        font-size: 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .header-actions a.nav-suivi {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .header-actions a {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero {
        min-height: 440px;
        padding: 56px 22px 80px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero .btn {
        width: 100%;
    }

    .cycle-strip {
        grid-template-columns: 1fr;
        margin-top: -28px;
    }

    .cycle-strip-intro,
    .cycle-strip > a {
        min-height: 58px;
        padding: 12px 16px;
    }

    .cycle-strip > a {
        border-top: 1px solid #e8edf3;
        border-left: 0;
    }

    .section {
        padding: 55px 20px;
    }

    .cards,
    .cycle-grid,
    .formation-filters {
        grid-template-columns: 1fr;
    }

    .formation-search,
    .formation-count {
        grid-column: auto;
    }

    .card {
        min-height: 0;
    }

    .cta {
        margin: 0 14px 42px;
        padding: 34px 18px;
    }

    .form-container {
        width: calc(100% - 24px);
        margin: 18px auto 36px;
        padding: 19px;
    }

    .form-section {
        padding: 17px;
    }

    .application-steps {
        grid-template-columns: 1fr 1fr;
    }

    .application-steps a:last-child {
        grid-column: 1 / -1;
    }

    .cycle-card h3 {
        padding: 16px;
    }

    .cycle-card h4 {
        margin-right: 16px;
        margin-left: 16px;
    }

    .cycle-card ul {
        padding-right: 16px;
        padding-left: 16px;
    }

    .guide-hero {
        padding: 52px 7%;
    }

    .guide-section {
        padding: 38px 7%;
    }

    .formation-toolbar-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .formation-apply {
        width: 100%;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-contact {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 7px;
    }

    .faq-contact a {
        margin-top: 7px;
        white-space: normal;
    }

    .faq-section {
        padding: 50px 18px;
    }
}


/* 17. PETITS ÉCRANS
--------------------------------------------------------- */

@media (max-width: 380px) {
    .logo {
        gap: 8px;
        font-size: 16px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    nav a {
        padding: 6px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .application-steps {
        grid-template-columns: 1fr;
    }

    .application-steps a:last-child {
        grid-column: auto;
    }

    .cycle-card h3 {
        flex-wrap: wrap;
    }
}


/* 18. RÉDUCTION DES ANIMATIONS
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
