/* =====================================================================
   PAGES PÔLES : feuille propre aux 5 pages pôles, chargée après css/site.css
   (couleurs, polices, navigation, cartes d'articles et contact viennent de site.css)
   Trois « événements graphiques » : la bannière photo virée à l'orange
   (comme l'accueil), le bloc sombre des prestations opérationnelles,
   et le bandeau orange de mots-clés.
   ===================================================================== */

.pole-page .section { padding-block: clamp(3rem, 6vw, 4.75rem); }

/* ----- Bannière ----- */
.pole-tete {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--sur-encre);
    background: var(--encre);
    padding-top: 76px;
}
/* Illustration détourée, en bas à droite, au-dessus des filtres photo */
.pole-tete-illu {
    /* Placée dans .pole-tete-contenu : son bord droit suit celui du contenu des sections suivantes */
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--gouttiere);
    right: var(--gouttiere);
    z-index: -1;
    pointer-events: none;
    background-position: right bottom;
    background-size: auto;
    background-repeat: no-repeat;
}
.pole-tete-contenu {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
    display: grid;
    gap: 1.25rem;
}
.pole-retour {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--sur-encre);
    text-decoration: none;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(244, 241, 234, 0.45);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.pole-retour:hover { background: var(--sur-encre); color: var(--encre); }
.pole-tete h1 {
    font-family: var(--f-affiche);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    line-height: 0.95;
    max-width: 18ch;
    text-wrap: balance;
}
.pole-objectif {
    max-width: 44ch;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    padding-left: 1.1rem;
    border-left: 2px solid var(--orange);
}

/* ----- Introduction ----- */
.pole-intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.pole-accroche {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.5;
    font-weight: 700;
    max-width: 52ch;
}
.voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--orange-texte);
    cursor: pointer;
}
.voir-plus i { transition: transform 0.3s ease; font-size: 0.8rem; }
.voir-plus[aria-expanded="true"] i { transform: rotate(180deg); }
.voir-plus:hover { text-decoration: underline; text-underline-offset: 4px; }
.pole-suite { display: grid; gap: 1rem; max-width: 62ch; margin-top: 1.25rem; color: var(--encre-douce); }
.pole-suite[hidden] { display: none; }

.pole-encart {
    background: var(--sable);
    border-radius: 6px;
    padding: 1.5rem;
    border-top: 4px solid var(--orange);
    display: grid;
    gap: 0.6rem;
    font-size: 0.97rem;
}
.pole-encart h2 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; }
.pole-encart h2 i { color: var(--orange-texte); }
.pole-encart p { color: var(--encre-douce); }

/* ----- Bandeau de mots-clés : défilement lent ----- */
.bandeau {
    background: #f7cb9a;   /* orange adouci */
    color: #4a3522;        /* brun chaud, moins dur que l'encre */
    overflow: hidden;
}
.bandeau-piste {
    display: flex;
    width: max-content;
    animation: defilement var(--duree, 40s) linear infinite;
}
.bandeau:hover .bandeau-piste { animation-play-state: paused; }
.bandeau ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding-block: 1rem;
    font-family: var(--f-affiche);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.1;
    white-space: nowrap;
}
.bandeau li { display: flex; align-items: center; }
.bandeau li::before { content: '#'; color: var(--orange-texte); margin-right: 0.08em; }
/* espacement entre les hashtags */
.bandeau li { margin-right: 2.2em; }
@keyframes defilement { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Sans animation (réglage du système) : mots centrés, sur une ou plusieurs lignes */
@media (prefers-reduced-motion: reduce) {
    .bandeau-piste { animation: none; width: auto; justify-content: center; }
    .bandeau ul { flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 0.3rem; }
    .bandeau ul[aria-hidden] { display: none; }
    .bandeau ul { column-gap: 0; }
}

/* ----- Services : conseil (papier) / prestations (encre) ----- */
.services-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2rem; }
.services-tete .chapeau { margin-top: 0; max-width: 46ch; }
.services-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.service-colonne {
    border-radius: 6px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: grid;
    align-content: start;
    gap: 1.25rem;
}
.service-colonne.conseil { background: var(--papier); border: 1px solid var(--filet); }
.service-colonne.operationnel { background: var(--encre); color: var(--sur-encre); }
.service-colonne-tete { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--filet); }
.operationnel .service-colonne-tete { border-color: rgba(244, 241, 234, 0.18); }
.service-colonne-tete i {
    width: 2.5rem; height: 2.5rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--encre);
    font-size: 1rem;
    flex-shrink: 0;
}
.service-colonne-tete h3 { font-family: var(--f-affiche); font-weight: 400; font-size: 1.55rem; line-height: 1.05; }
.service-colonne-tete p { font-size: 0.85rem; color: var(--encre-douce); }
.operationnel .service-colonne-tete p { color: var(--sur-encre-doux); }
.service-liste { list-style: none; display: grid; gap: 1.1rem; }
.service-liste li { display: grid; gap: 0.2rem; padding-left: 1.1rem; position: relative; }
.service-liste li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5em;
    width: 0.45rem; height: 0.45rem;
    border-radius: 50%;
    background: var(--orange);
}
.service-liste strong { font-weight: 700; font-size: 1.02rem; }
.service-liste span { font-size: 0.95rem; color: var(--encre-douce); }
.operationnel .service-liste span { color: var(--sur-encre-doux); }

/* ----- Articles du pôle ----- */
.articles-pole { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ----- Les autres pôles ----- */
.autres-poles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; list-style: none; }
.autres-poles a {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    height: 100%;
    min-height: 6.5rem;
    padding: 1rem 1.1rem;
    background: var(--papier);
    border: 1px solid var(--filet);
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--f-affiche);
    font-size: 1.12rem;
    line-height: 1.1;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.autres-poles a:hover { border-color: var(--orange); background: #fff6ec; }
.autres-poles i { color: var(--orange-texte); font-size: 0.9rem; }
.autres-poles .bientot { color: var(--encre-douce); pointer-events: none; }

/* ----- Contact ----- */
.paiement { font-size: 0.88rem; }

/* ----- Titres de section plus compacts ----- */
.pole-page .titre { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }

/* ----- Encart : chiffres clés et lien ----- */
.encart-chiffres { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0.75rem; margin-block: 0.25rem; }
.encart-chiffres div { display: grid; gap: 0.2rem; align-content: start; }
.encart-chiffres strong {
    font-family: var(--f-chiffres);
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 0.9;
    color: var(--orange-texte);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.encart-chiffres span { font-size: 0.8rem; line-height: 1.3; color: var(--encre-douce); }
.pole-encart a { color: var(--orange-texte); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ----- Méthode en 6 dimensions (pôle Formation) ----- */
.dimensions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--encre);
    border-left: 1px solid var(--filet);
}
.dimension {
    display: grid;
    gap: 0.4rem;
    align-content: start;
    padding: 1.5rem;
    background: var(--papier);
    border-right: 1px solid var(--filet);
    border-bottom: 1px solid var(--filet);
}
.dimension h3 { font-family: var(--f-affiche); font-weight: 400; font-size: 1.45rem; line-height: 1.05; }
.dimension p { font-size: 0.95rem; color: var(--encre-douce); }
.thematiques { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; list-style: none; }
.thematiques li { border: 1px solid var(--encre); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; font-weight: 500; }

/* ----- Responsive ----- */
@media (max-width: 1080px) {
    .autres-poles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pole-intro, .services-duo { grid-template-columns: minmax(0, 1fr); }
    .dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .articles-pole, .autres-poles, .dimensions { grid-template-columns: minmax(0, 1fr); }
    .autres-poles a { min-height: 0; }
}

.autres-poles .bientot span { font-family: var(--f-texte); font-size: 0.75rem; }
