/* ========================================
   Page d'offre — Accompagnement IA (SEO-BACKLOG SEO-055)
   Réutilise les variables et composants du design system (styles.css) :
   pas de nouvelle palette, pas de nouveau composant bouton/carte.
   SEO-035b : conteneurs alignés sur la home (1200 px pour les grilles et
   sections, 800 px pour le texte courant, gouttière mobile de 20 px sans
   double retrait) ; séquence d'étapes, informations clés et encarts de
   renvoi définis dans styles.css.
======================================== */

.aia-main {
    margin-top: 80px; /* compense la nav fixed, comme .legal-page */
}

.aia-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.aia-container--narrow {
    max-width: var(--container-narrow);
}

/* Premier écran : composant .hero-photo (styles.css), photo provisoire
   p5-atelier-02 (Jimmy devant l'écran des réponses de la salle), sujet à
   gauche : panneau à droite (.hero-photo--panneau-droite). */
.aia-hero h1 {
    font-size: var(--text-hero);
}

/* Suite de l'accroche, sous la photo, alignée à gauche sur 800 px */
.aia-hero-suite p {
    margin-bottom: 1.25rem;
    line-height: var(--leading-relaxed);
    color: var(--texte);
}

.aia-hero-suite p:last-child {
    margin-bottom: 0;
}

.aia-section {
    padding: var(--space-3xl) var(--section-padding-x);
    background: var(--fond);
}


.aia-section p {
    margin-bottom: 1.25rem;
    line-height: var(--leading-relaxed);
    color: var(--texte);
}

.aia-section p:last-child {
    margin-bottom: 0;
}

.aia-section .pole-list--reperes {
    margin-bottom: 1.25rem;
}

/* ── Deux journées, ou une seule : sélecteur et deux panneaux ─────
   Onglets « 2 journées » / « 1 journée » ; panneau à deux colonnes reliées
   par une flèche cuivre dès 760 px de conteneur, empilées dessous (flèche
   tournée vers le bas) ; panneau à une colonne. Chaque élément porte un
   pictogramme au trait. Sans JavaScript (html sans classe .js), les deux
   panneaux s'affichent l'un sous l'autre. */
.aia-journees {
    container-type: inline-size;
    max-width: var(--container-max);
    margin: 0 auto;
}

.aia-journees-selecteur {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl);
}

.aia-journees-onglet {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--graphite);
    border: 1px solid var(--graphite);
    border-radius: 0;
    font-family: var(--font-texte);
    font-size: 1rem;
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

.aia-journees-onglet:first-child {
    border-radius: var(--rayon) 0 0 var(--rayon);
}

.aia-journees-onglet:last-child {
    border-radius: 0 var(--rayon) var(--rayon) 0;
    border-left: 0;
}

.aia-journees-onglet:hover {
    background: var(--fond);
}

/* Onglet choisi : aplat graphite, texte clair (14,82:1) */
.aia-journees-onglet[aria-selected="true"] {
    background: var(--graphite);
    color: var(--texte-clair);
}

.js .aia-journees-panneau:not(.est-actif) {
    display: none;
}

.aia-journees-panneau--deux {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    align-items: stretch;
}

.aia-journees-panneau--une {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.aia-journees-panneau + .aia-journees-panneau {
    margin-top: var(--space-xl);
}

.aia-journee {
    background: var(--blanc);
    border: 1px solid var(--filet);
    border-radius: var(--rayon);
    padding: 1.75rem 2rem;
}

.aia-section .aia-journee p.aia-journee-titre {
    font-family: var(--font-titres);
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--graphite);
    margin-bottom: 1.25rem;
}

.aia-journee-numero {
    display: block;
    font-size: var(--text-surtitre);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cuivre-profond);
    margin-bottom: 0.5rem;
}

.aia-journee-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.875rem;
}

.aia-journee-liste li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--texte);
}

.aia-journee-picto {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--cuivre-profond);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aia-section .aia-journee p.aia-journee-note {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--filet);
    font-style: italic;
    color: var(--acier);
}

/* Flèche entre les deux journées : vers le bas en colonne, vers la droite
   en deux colonnes */
.aia-journees-fleche {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cuivre);
}

.aia-journees-fleche svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(90deg);
}

@container (min-width: 760px) {
    .aia-journees-panneau--deux {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: var(--space-md);
    }

    .aia-journees-fleche svg {
        transform: none;
    }
}

/* Phrase sous le visuel, dans la colonne de texte courant */
.aia-section p.aia-cloture {
    max-width: var(--container-narrow);
    margin: var(--space-xl) auto 0;
}

@media (max-width: 768px) {
    .aia-hero-suite {
        padding: var(--space-2xl) 20px;
    }

    .aia-section {
        padding: var(--space-3xl) 20px;
    }

}

/* Avis : même composant que les autres pages, espacé du paragraphe. */
.aia-testimonials {
    margin-top: var(--space-xl);
}

/* Paragraphe de maillage placé sous l'encart de renvoi. */
.aia-section p.aia-apres-renvoi {
    margin-top: var(--space-lg);
}

/* ── Journées sur graphite ────────────────────────────────────────
   Section .section--graphite : sélecteur en contour clair (onglet choisi en
   aplat clair, texte graphite), cartes graphite clair, textes clairs,
   pictogrammes et numéros en cuivre. */
.section--graphite .aia-journees-onglet {
    color: var(--texte-clair);
    border-color: var(--texte-clair);
}

.section--graphite .aia-journees-onglet:hover {
    background: var(--graphite-clair);
}

.section--graphite .aia-journees-onglet[aria-selected="true"] {
    background: var(--texte-clair);
    color: var(--graphite);
}

/* Carte à même le fond graphite, filet graphite clair : le cuivre du numéro
   et des pictogrammes tient 5,01:1 (3,84:1 seulement sur graphite clair) */
.section--graphite .aia-journee {
    background: var(--graphite);
    border-color: var(--graphite-clair);
}

.aia-section.section--graphite .aia-journee p.aia-journee-titre {
    color: var(--texte-clair);
}

.section--graphite .aia-journee-numero {
    color: var(--cuivre);
}

.section--graphite .aia-journee-liste li {
    color: var(--texte-clair);
}

.section--graphite .aia-journee-picto {
    stroke: var(--cuivre);
}

.aia-section.section--graphite .aia-journee p.aia-journee-note {
    color: var(--acier-clair);
    border-top-color: color-mix(in srgb, var(--texte-clair) 18%, transparent);
}
