/* Palette partagee par toutes les pages de la veille */
:root {
    --bleu-nuit: #102a43;
    --bleu: #1769e0;
    --bleu-fonce: #0f54bc;
    --bleu-clair: #eaf2ff;
    --texte: #243447;
    --texte-clair: #62748a;
    --fond: #ffffff;
    --fond-clair: #f5f8fc;
    --bordure: #dbe4ef;
    --ombre: 0 18px 45px rgba(16, 42, 67, 0.09);
}

/* Le padding et la bordure restent compris dans la largeur des blocs */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--texte);
    background: var(--fond);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--bleu-nuit);
    line-height: 1.15;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.55rem, 5.5vw, 5rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Largeur maximale du contenu avec une marge sur les cotes */
.conteneur {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* Le menu reste visible pendant le defilement */
.entete {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--bordure);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 32px;
}

.logo {
    color: var(--bleu-nuit);
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo span {
    color: var(--bleu);
}

/* Navigation horizontale sur ordinateur */
.liens-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--bleu-nuit);
    font-size: 0.96rem;
    font-weight: 700;
}

.liens-navigation a {
    position: relative;
    padding-block: 10px;
}

.liens-navigation a:not(.retour-portfolio)::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transition: transform 0.2s ease;
    background: var(--bleu);
}

.liens-navigation a:hover::after,
.liens-navigation a.actif::after {
    transform: scaleX(1);
}

.retour-portfolio {
    padding: 10px 17px !important;
    border: 1px solid var(--bleu);
    border-radius: 10px;
    color: var(--bleu);
}

/* Accueil en deux colonnes : explication puis image */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 710px;
    padding-block: 80px;
    gap: 72px;
}

.hero h1 {
    max-width: 770px;
}

.sur-titre {
    margin-bottom: 18px;
    color: var(--bleu);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.texte-hero,
.introduction,
.introduction-page > p:last-child,
.chapeau {
    max-width: 780px;
    color: var(--texte-clair);
    font-size: 1.15rem;
}

.actions {
    display: flex;
    align-items: center;
    margin-top: 32px;
    gap: 24px;
}

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
}

.bouton.principal {
    color: #fff;
    background: var(--bleu);
    box-shadow: 0 12px 24px rgba(23, 105, 224, 0.22);
}

.bouton.principal:hover {
    background: var(--bleu-fonce);
}

.lien-texte,
.carte a,
.carte-article a,
.fiche-source a {
    color: var(--bleu);
    font-weight: 800;
}

.information {
    margin-top: 30px;
    padding-left: 16px;
    border-left: 3px solid var(--bleu);
    color: var(--texte-clair);
    font-size: 0.93rem;
}

.image-hero {
    overflow: hidden;
    margin: 0;
    border: 12px solid #fff;
    border-radius: 28px;
    background: var(--fond-clair);
    box-shadow: var(--ombre);
}

/* L'image remplit son cadre sans etre etiree */
.image-hero img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.image-hero figcaption,
.schema-prima figcaption,
.article-image figcaption {
    padding: 14px 18px;
    color: var(--texte-clair);
    font-size: 0.82rem;
}

.article-image figcaption span {
    display: block;
    margin-top: 3px;
    font-style: italic;
}

.bande-chiffres {
    color: #fff;
    background: var(--bleu-nuit);
}

/* Quatre chiffres importants presentes sur une seule ligne */
.grille-chiffres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 34px;
}

.grille-chiffres div {
    display: flex;
    flex-direction: column;
    padding: 8px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.grille-chiffres div:last-child {
    border-right: 0;
}

.grille-chiffres strong {
    color: #fff;
    font-size: 1.55rem;
}

.grille-chiffres span {
    color: #bdcce0;
    font-size: 0.88rem;
}

.section {
    padding-block: 96px;
}

.section-claire {
    background: var(--fond-clair);
}

.deux-colonnes {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 85px;
}

.processus {
    display: grid;
    gap: 14px;
}

.processus article,
.etapes-technologie > article {
    display: grid;
    grid-template-columns: 58px 1fr;
    padding: 24px;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: #fff;
    gap: 18px;
}

.processus article > span,
.etapes-technologie article > span {
    color: var(--bleu);
    font-size: 0.88rem;
    font-weight: 800;
}

.processus p,
.etapes-technologie p,
.carte p {
    margin-bottom: 0;
    color: var(--texte-clair);
}

/* Grille reutilisee pour les axes, la methode et les perspectives */
.grille-cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 38px;
    gap: 24px;
}

.carte {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 30px;
    border: 1px solid var(--bordure);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.05);
}

.carte > span {
    margin-bottom: 30px;
    color: var(--bleu);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.carte a {
    margin-top: auto;
    padding-top: 24px;
}

.carte-bleue {
    border-color: var(--bleu);
    background: var(--bleu);
}

.carte-bleue h3,
.carte-bleue > span,
.carte-bleue a {
    color: #fff;
}

.carte-bleue p {
    color: #dceaff;
}

.problematique blockquote {
    max-width: 970px;
    margin: 0;
    color: var(--bleu-nuit);
    font-size: clamp(1.8rem, 3.8vw, 3.1rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.problematique div {
    display: flex;
    margin-top: 34px;
    color: var(--texte-clair);
    gap: 32px;
}

.introduction-page {
    padding-top: 105px;
    padding-bottom: 70px;
    border-bottom: 1px solid var(--bordure);
}

.introduction-page h1,
.article-entete h1 {
    max-width: 950px;
    font-size: clamp(2.55rem, 5.2vw, 4.7rem);
}

.etapes-technologie {
    display: grid;
    gap: 22px;
}

.etapes-technologie > article {
    grid-template-columns: 70px 1fr;
    padding: 35px;
}

.schema-prima {
    overflow: hidden;
    max-width: 620px;
    margin: 28px 0 0;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: #fff;
}

.schema-prima img {
    width: 100%;
    max-height: 410px;
    object-fit: contain;
}

/* Faux tableau en CSS pour garder un affichage souple sur mobile */
.tableau-comparaison {
    overflow: hidden;
    margin-top: 36px;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: #fff;
}

.ligne {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    border-bottom: 1px solid var(--bordure);
}

.ligne:last-child {
    border-bottom: 0;
}

.ligne > * {
    padding: 18px 22px;
}

.entete-ligne {
    color: #fff;
    background: var(--bleu-nuit);
    font-weight: 800;
}

.glossaire {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 38px 0 0;
    gap: 18px;
}

.glossaire div {
    padding: 24px;
    border: 1px solid var(--bordure);
    border-radius: 14px;
}

.glossaire dt {
    color: var(--bleu-nuit);
    font-weight: 800;
}

.glossaire dd {
    margin: 5px 0 0;
    color: var(--texte-clair);
}

.liste-articles {
    display: grid;
    gap: 28px;
}

/* Chaque actualite associe une image a son resume */
.carte-article {
    display: grid;
    grid-template-columns: minmax(270px, 0.8fr) 1.2fr;
    overflow: hidden;
    border: 1px solid var(--bordure);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(16, 42, 67, 0.06);
}

.image-article {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.contenu-article {
    padding: 40px;
}

.meta-article,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: var(--texte-clair);
    font-size: 0.86rem;
    gap: 22px;
}

.meta-article time,
.article-meta time {
    color: var(--bleu);
    font-weight: 800;
}

.angle-article {
    margin-bottom: 10px;
    color: var(--bleu);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contenu-article h2 {
    margin-bottom: 14px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.contenu-article > p:not(.angle-article) {
    color: var(--texte-clair);
}

.methode .grille-cartes {
    margin-bottom: 0;
}

/* La methode complete tient sur deux lignes de trois cartes sur ordinateur */
.methode-veille .carte {
    min-height: 245px;
}

.frequence-veille {
    margin: 30px 0 0;
    padding: 18px 22px;
    border-left: 4px solid var(--bleu);
    color: var(--texte-clair);
    background: #fff;
}

.article-entete {
    padding-top: 90px;
    padding-bottom: 60px;
}

.retour-articles {
    display: inline-block;
    margin-bottom: 40px;
    color: var(--bleu);
    font-weight: 800;
}

/* Corps de l'article avec la source dans une colonne laterale */
.article-contenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    padding-bottom: 100px;
    gap: 40px;
}

.article-image {
    grid-column: 1 / -1;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--bordure);
    border-radius: 22px;
    box-shadow: var(--ombre);
}

.article-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.fiche-source {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    background: var(--fond-clair);
    gap: 8px;
}

.fiche-source span {
    color: var(--texte-clair);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.fiche-source a {
    margin-top: 14px;
}

.corps-article {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.09rem;
}

.corps-article p {
    margin-bottom: 24px;
}

.idees-cles,
.analyse {
    grid-column: 1 / -1;
    margin-top: 25px;
    padding: 34px;
    border-radius: 18px;
}

.idees-cles {
    color: #fff;
    background: var(--bleu-nuit);
}

.idees-cles h2,
.idees-cles .sur-titre {
    color: #fff;
}

.idees-cles ul {
    margin-bottom: 0;
}

.analyse {
    border: 1px solid var(--bordure);
    background: var(--fond-clair);
}

.etat-erreur {
    min-height: 620px;
}

.etat-erreur .bouton {
    margin-top: 22px;
}

/* La ligne verticale est dessinee avec le pseudo-element ::before */
.chronologie {
    position: relative;
    display: grid;
    margin-top: 42px;
    padding-left: 34px;
    gap: 18px;
}

.chronologie::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 3px;
    content: "";
    background: var(--bleu-clair);
}

.chronologie article {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 28px;
    border: 1px solid var(--bordure);
    border-radius: 16px;
    gap: 28px;
}

.chronologie article::before {
    position: absolute;
    top: 34px;
    left: -33px;
    width: 14px;
    height: 14px;
    border: 4px solid #fff;
    border-radius: 50%;
    content: "";
    background: var(--bleu);
    box-shadow: 0 0 0 1px var(--bleu);
}

.chronologie time {
    color: var(--bleu);
    font-weight: 800;
}

.chronologie p {
    margin-bottom: 0;
    color: var(--texte-clair);
}

.usages .carte,
.veille-future .carte {
    min-height: 220px;
}

.limites {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
}

.limites ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 13px;
}

.limites li {
    padding: 18px 20px;
    border-left: 3px solid var(--bleu);
    background: var(--fond-clair);
}

.pied-page {
    padding-block: 30px;
    color: #d5e0ec;
    background: var(--bleu-nuit);
}

.pied-page .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pied-page p {
    margin: 0;
}

.pied-page a {
    color: #fff;
    font-weight: 800;
}

/* Tablettes : les grandes grilles passent a deux colonnes ou une colonne */
@media (max-width: 900px) {
    .navigation {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
        gap: 10px;
    }

    .liens-navigation {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 20px;
    }

    .hero,
    .deux-colonnes,
    .limites {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 45px;
    }

    .grille-chiffres,
    .grille-cartes {
        grid-template-columns: repeat(2, 1fr);
    }

    .grille-chiffres div:nth-child(2) {
        border-right: 0;
    }

    .carte-article {
        grid-template-columns: 1fr;
    }

    .image-article {
        height: 300px;
        min-height: 0;
    }
}

/* Telephones : contenu empile et marges reduites */
@media (max-width: 650px) {
    .conteneur {
        width: min(100% - 28px, 1180px);
    }

    .liens-navigation {
        font-size: 0.86rem;
    }

    .retour-portfolio {
        padding: 8px 12px !important;
    }

    .hero,
    .section,
    .introduction-page,
    .article-entete {
        padding-block: 62px;
    }

    .image-hero img,
    .article-image img {
        height: 310px;
    }

    .actions,
    .problematique div,
    .pied-page .conteneur {
        align-items: flex-start;
        flex-direction: column;
    }

    .grille-chiffres,
    .grille-cartes,
    .glossaire {
        grid-template-columns: 1fr;
    }

    .grille-chiffres div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .grille-chiffres div:last-child {
        border-bottom: 0;
    }

    .processus article,
    .etapes-technologie > article {
        grid-template-columns: 42px 1fr;
        padding: 22px;
    }

    .ligne {
        grid-template-columns: 1fr;
        padding-block: 8px;
    }

    .entete-ligne {
        display: none;
    }

    .ligne > * {
        padding: 7px 16px;
    }

    .contenu-article {
        padding: 26px;
    }

    .article-contenu {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .fiche-source,
    .corps-article,
    .idees-cles,
    .analyse {
        grid-column: 1;
        grid-row: auto;
    }

    .chronologie article {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
