/* Page A propos
   Un seul gabarit pour toutes les bandes : meme largeur, meme espacement vertical,
   meme taille de titre de section, meme carte de personne. */

.apr-page {
    --apr-bleu: #072890;
    --apr-bleu-fonce: #051c66;
    --apr-encre: #141c33;
    --apr-corps: #3d4660;
    --apr-texte: #5b6478;
    --apr-filet: #e3e7f0;
    --apr-fond: #f6f7fb;
    --apr-photo: #e9edf5;
    --apr-rayon: 14px;
    --apr-espace: 80px;
    --apr-gouttiere: 24px;
    --apr-titre: 28px;
    font-family: 'Roboto', sans-serif;
    color: #2b3445;
    background: #fff;
}

.apr-page h1,
.apr-page h2,
.apr-page h3 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--apr-encre);
    text-wrap: balance;
}

.apr-page p {
    margin: 0;
    text-wrap: pretty;
}

/* Bandes et cadre commun */
.apr-bande {
    background: #fff;
}

.apr-bande--gris {
    background: var(--apr-fond);
}

.apr-bande[hidden],
.apr-groupe[hidden] {
    display: none;
}

.apr-cadre {
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--apr-espace) var(--apr-gouttiere);
    box-sizing: border-box;
}

/* Tete de section : titre + phrase facultative, partout la meme */
.apr-tete {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 680px;
    margin-bottom: 36px;
}

.apr-tete h2,
.apr-qui-texte h2,
.apr-colonne h2 {
    font-size: var(--apr-titre);
    line-height: 1.25;
    font-weight: 700;
}

.apr-tete p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--apr-texte);
}

/* Introduction */
.apr-bande--intro .apr-cadre {
    padding-top: 56px;
}

.apr-entete {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 56px;
}

.apr-ariane {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--apr-texte);
}

.apr-ariane a {
    color: var(--apr-texte);
    text-decoration: none;
}

.apr-ariane a:hover {
    color: var(--apr-bleu);
    text-decoration: underline;
}

.apr-ariane i {
    font-size: 10px;
    opacity: .7;
}

.apr-entete h1 {
    max-width: 820px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
}

.apr-chapo {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--apr-texte);
}

.apr-qui {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.apr-qui-photo {
    aspect-ratio: 3 / 2;
    border-radius: var(--apr-rayon);
    background: var(--apr-photo);
    overflow: hidden;
}

.apr-qui-photo picture,
.apr-qui-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.apr-qui-photo img {
    object-fit: contain;
    object-position: bottom;
}

.apr-qui-texte,
.apr-colonne {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.apr-qui-texte p,
.apr-colonne p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--apr-corps);
}

.apr-reperes {
    margin: 56px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--apr-filet);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.apr-reperes > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.apr-reperes dt {
    font-size: 14px;
    font-weight: 400;
    color: var(--apr-texte);
}

.apr-reperes dd {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--apr-encre);
    overflow-wrap: anywhere;
}

/* Mission et vision */
.apr-deux-colonnes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
}

/* Valeurs */
.apr-valeurs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 48px;
}

/* Icone sur la ligne du titre, texte aligne sous le titre */
.apr-valeurs li {
    padding: 28px 0;
    border-top: 1px solid var(--apr-filet);
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    align-content: start;
    gap: 8px 14px;
}

.apr-valeurs li i {
    font-size: 18px;
    text-align: center;
    color: var(--apr-bleu);
}

.apr-valeurs li p {
    grid-column: 2;
    align-self: start;
}

.apr-valeurs h3 {
    font-size: 18px;
    font-weight: 700;
}

.apr-valeurs p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--apr-texte);
}

/* Equipe : direction et conseil partagent la meme grille et la meme carte */
.apr-groupe + .apr-groupe {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--apr-filet);
}

/* Carrousel : piste horizontale, N cartes visibles selon la largeur.
   Les marges automatiques du premier et du dernier element centrent la rangee
   quand elle ne deborde pas, sans rogner le debut quand elle deborde. */
.apr-carrousel {
    --apr-visibles: 6;
    --apr-ecart: 24px;
}

.apr-piste {
    margin: 0;
    padding: 4px 0 8px;
    list-style: none;
    display: flex;
    gap: var(--apr-ecart);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.apr-piste::-webkit-scrollbar {
    display: none;
}

.apr-piste > * {
    flex: 0 0 calc((100% - (var(--apr-visibles) - 1) * var(--apr-ecart)) / var(--apr-visibles));
    scroll-snap-align: start;
}

.apr-piste > :first-child {
    margin-left: auto;
}

.apr-piste > :last-child {
    margin-right: auto;
}

.apr-piste:focus-visible {
    outline: 2px solid var(--apr-bleu);
    outline-offset: 4px;
    border-radius: 4px;
}

.apr-fleches {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.apr-fleches[hidden] {
    display: none;
}

.apr-fleche {
    width: 44px;
    height: 44px;
    border: 1px solid #c9d0e0;
    border-radius: 50%;
    background: #fff;
    color: var(--apr-bleu);
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.apr-fleche:hover {
    background: var(--apr-bleu);
    border-color: var(--apr-bleu);
    color: #fff;
}

.apr-fleche:focus-visible {
    outline: 2px solid var(--apr-bleu);
    outline-offset: 3px;
}

.apr-tete--centre {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    text-align: center;
}

.apr-personne {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.apr-personne-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--apr-rayon);
    overflow: hidden;
    background: var(--apr-photo);
}

.apr-personne-photo span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 500;
    color: var(--apr-bleu);
}

.apr-personne-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.apr-personne figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.apr-personne strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--apr-encre);
    overflow-wrap: anywhere;
}

.apr-personne figcaption span {
    font-size: 14px;
    line-height: 1.45;
    color: var(--apr-texte);
}

/* Partenaires : meme grille que l'equipe */
.apr-logos li {
    aspect-ratio: 3 / 2;
    padding: 16px;
    border: 1px solid var(--apr-filet);
    border-radius: var(--apr-rayon);
    background: #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apr-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.apr-logos img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.apr-logos span {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    color: var(--apr-encre);
}

/* Appel final */
.apr-appel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.apr-appel .apr-tete {
    margin-bottom: 0;
}

.apr-appel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.apr-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid var(--apr-bleu);
    border-radius: 10px;
    background: var(--apr-bleu);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.apr-bouton:hover {
    background: var(--apr-bleu-fonce);
    border-color: var(--apr-bleu-fonce);
    color: #fff;
    text-decoration: none;
}

.apr-bouton--clair {
    border-color: #c9d0e0;
    background: #fff;
    color: var(--apr-bleu);
}

.apr-bouton--clair:hover {
    background: #eef1f8;
    border-color: var(--apr-bleu);
    color: var(--apr-bleu-fonce);
}

.apr-bouton:focus-visible,
.apr-logos a:focus-visible,
.apr-ariane a:focus-visible {
    outline: 2px solid var(--apr-bleu);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    .apr-carrousel {
        --apr-visibles: 5;
    }
}

@media (max-width: 991px) {
    .apr-page {
        --apr-espace: 64px;
    }

    .apr-entete h1 {
        font-size: 36px;
    }

    .apr-qui {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .apr-reperes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
    }

    .apr-valeurs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apr-carrousel {
        --apr-visibles: 4;
    }
}

@media (max-width: 767px) {
    .apr-page {
        --apr-espace: 48px;
        --apr-gouttiere: 16px;
        --apr-titre: 22px;
    }

    .apr-bande--intro .apr-cadre {
        padding-top: 28px;
    }

    .apr-entete {
        gap: 14px;
        margin-bottom: 32px;
    }

    .apr-entete h1 {
        font-size: 30px;
        line-height: 1.2;
    }

    .apr-chapo,
    .apr-tete p {
        font-size: 16px;
    }

    .apr-tete {
        margin-bottom: 24px;
    }

    .apr-qui {
        gap: 24px;
    }

    .apr-qui-texte p,
    .apr-colonne p {
        font-size: 16px;
        line-height: 1.75;
    }

    .apr-reperes {
        margin-top: 32px;
        padding-top: 0;
        border-top: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .apr-reperes > div {
        gap: 2px;
        padding: 14px 0;
        border-top: 1px solid var(--apr-filet);
    }

    .apr-reperes > div:last-child {
        border-bottom: 1px solid var(--apr-filet);
    }

    .apr-reperes dd {
        font-size: 16px;
    }

    .apr-deux-colonnes {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .apr-valeurs {
        grid-template-columns: minmax(0, 1fr);
    }

    .apr-valeurs li {
        gap: 4px 14px;
        padding: 16px 0;
    }

    .apr-valeurs li:last-child {
        border-bottom: 1px solid var(--apr-filet);
    }

    .apr-valeurs h3 {
        font-size: 17px;
    }

    .apr-valeurs p {
        font-size: 15px;
        line-height: 1.6;
    }

    .apr-groupe + .apr-groupe {
        margin-top: 40px;
        padding-top: 40px;
    }

    .apr-carrousel {
        --apr-visibles: 2;
        --apr-ecart: 14px;
    }

    .apr-personne {
        gap: 8px;
    }

    .apr-personne strong {
        font-size: 15px;
    }

    .apr-personne figcaption span {
        font-size: 13px;
    }

    .apr-logos {
        --apr-visibles: 3;
    }

    .apr-carrousel:has(.apr-logos) {
        --apr-visibles: 3;
        --apr-ecart: 12px;
    }

    .apr-logos li {
        padding: 10px;
        border-radius: 10px;
    }

    .apr-appel-actions,
    .apr-bouton {
        width: 100%;
    }

    .apr-bouton {
        min-height: 52px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apr-fleche,
    .apr-bouton {
        transition: none;
    }
}
