/* ==========================================================================
   Guides (gabarit d'octobre 2026)
   Charge apres style.css et avis.css, dont il reprend les composants av-.
   Classes propres prefixees gd-.
   ========================================================================== */

/* Photo de l'ouverture en arche */
.gd-photo { margin: 0; overflow: hidden; border-radius: 999px 999px 0 0; }
.gd-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Colonne collante : le redacteur plutot que la note */
.gd-cote-auteur { display: flex; align-items: center; gap: .7rem; margin: 0 0 .3rem; }
.gd-cote-auteur img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.gd-cote-auteur span { display: flex; flex-direction: column; line-height: 1.3; }
.gd-cote-auteur a { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.gd-cote-auteur a:hover { color: var(--brand); text-decoration: none; }
.gd-cote-auteur small { font-size: .78rem; color: var(--text-muted); }
.gd .av-cote-t { margin-top: 1.2rem; }

/* Lectures liees sans image (fiches du lexique) */
.av-autre--texte { padding: 1.4rem 1.4rem 1.3rem; background: var(--bg-pure); border-top: 2px solid var(--brand); }

@media (min-width: 960px) {
  .gd-photo img { aspect-ratio: 5 / 6; max-height: 34rem; }
}

/* Article de blog : un seul fond, les sections s'enchainent comme un texte
   continu ; seul l'espace marque le passage d'une partie a l'autre */
.gd .av-corps { background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); padding-block: clamp(3rem, 6vw, 5rem); }
.gd .av-sec,
.gd .av-sec:nth-child(odd),
.gd .av-sec:nth-child(even) { background: transparent; box-shadow: none; clip-path: none; padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.gd .av-sec + .av-sec .av-prose > h2:first-child { padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--border); }
@media (min-width: 1100px) {
  .gd .av-cote-carte { margin: 0; }
}

/* ==========================================================================
   Maquettes d'appli : conversation (premier message) et fiche (bio)
   Un exemple se lit comme un ecran de rencontre, pas comme un encadre.
   ========================================================================== */

.ch, .pf {
  max-width: 27rem;
  margin: 1.6rem 0 1.4rem;
  border-radius: 1.4rem;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: var(--font-text);
}

/* Conversation */
.ch-tete { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.ch-av {
  width: 2.1rem; height: 2.1rem; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sable);
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--prune);
}
.ch-nom { display: flex; flex-direction: column; font-size: .95rem; font-weight: 600; line-height: 1.2; color: var(--text); }
.ch-ligne { display: flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 500; color: #2f7a52; }
.ch-ligne::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #39a96b; }
.ch-fil { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; padding: 1.2rem 1rem 1rem; background: #f6f1ee; }
.av-prose .ch-bulle {
  margin: 0;
  max-width: 88%;
  padding: .75rem 1rem;
  border-radius: 1.15rem 1.15rem .3rem 1.15rem;
  background: var(--brand);
  color: #fff;
  font-size: .95rem;
  line-height: 1.5;
  text-align: left;
  -webkit-hyphens: manual; hyphens: manual;
}
.ch-bulle em { font-style: italic; }
.ch--mauvais .ch-bulle { background: #8d8590; }
.av-prose .ch-vu { margin: 0; font-size: .74rem; color: var(--text-muted); text-align: right; }
.ch-ecrit {
  align-self: flex-start;
  display: inline-flex; gap: .25rem;
  margin: .3rem 0 0;
  padding: .7rem .9rem;
  border-radius: 1.15rem 1.15rem 1.15rem .3rem;
  background: var(--bg-pure);
  border: 1px solid var(--border);
}
.ch-ecrit span { width: .4rem; height: .4rem; border-radius: 50%; background: #b3aab0; animation: ch-point 1.2s infinite ease-in-out; }
.ch-ecrit span:nth-child(2) { animation-delay: .15s; }
.ch-ecrit span:nth-child(3) { animation-delay: .3s; }
@keyframes ch-point { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Fiche de profil */
.pf { padding: 0 0 1rem; }
.pf-tete { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.pf-photo { width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--sable), #dcc6bb); }
.pf-id { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--text); }
.pf-id small { font-weight: 500; font-size: .78rem; color: var(--text-muted); }
.av-prose .pf-t { margin: 1rem 1.1rem .35rem; font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.av-prose .pf-bio { margin: 0 1.1rem 1rem; font-size: .96rem; line-height: 1.6; color: var(--text); text-align: left; }
.av-prose .pf-notif, .av-prose .pf-rien { margin: 0 1.1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pf-notif { background: var(--brand); color: #fff !important; }
.pf-rien { background: var(--bg-alt); color: var(--text-muted) !important; }
.pf--mauvais .pf-bio { color: #6b6370; }

@media (prefers-reduced-motion: reduce) { .ch-ecrit span { animation: none; } }

/* Photos dans le texte : pleine largeur de colonne, en ouverture de partie */
.gd-img { margin: 1.6rem 0 1.8rem; }
.gd-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* Message recu (exemples d'arnaques) : bulle a gauche, blanche */
.av-prose .ch-bulle--recu {
  align-self: flex-start;
  background: var(--bg-pure);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 1.15rem 1.15rem 1.15rem .3rem;
}
.ch--recu .ch-fil { gap: .7rem; }

/* Check-list : de vraies cases a cocher, sans encadre */
.gd-check { margin: 1.6rem 0 1.4rem; padding: 0; border: 0; }
.gd-check legend { padding: 0; margin: 0 0 .8rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text); }
.gd-check label {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.55;
  color: #3d3842;
  cursor: pointer;
}
.gd-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: .12rem 0 0;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  background: var(--bg-pure);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.gd-check input:checked {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") no-repeat center / 70%;
}
.gd-check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.gd-check input:checked + span { color: var(--text-muted); }

/* ==========================================================================
   Motifs au trait : dans la marge sur ordinateur, au bout des filets
   entre les parties sur telephone, jamais sous le texte
   ========================================================================== */
.gd .av-corps { position: relative; }
.gd-deco { display: none; }
.gd-m {
  --m: url(/assets/motifs/cafe.svg);
  -webkit-mask: var(--m) no-repeat center / contain;
          mask: var(--m) no-repeat center / contain;
  background: var(--brand);
}
.gd-m--telephone { --m: url(/assets/motifs/telephone.svg); }
.gd-m--lettre    { --m: url(/assets/motifs/lettre.svg); }
.gd-m--cafe      { --m: url(/assets/motifs/cafe.svg); }
.gd-m--avion     { --m: url(/assets/motifs/avion.svg); }
.gd-m--bulles    { --m: url(/assets/motifs/bulles.svg); }
.gd-m--plume     { --m: url(/assets/motifs/plume.svg); }
.gd-m--loupe     { --m: url(/assets/motifs/loupe.svg); }

/* Ordinateur : dessins epars dans la marge de droite, a gauche et a droite en alternance */
@media (min-width: 1100px) {
  .gd-deco { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .gd-m { position: absolute; top: var(--y); right: max(0rem, calc((100vw - var(--container)) / 2 - 7rem)); width: 9.5rem; aspect-ratio: 1; opacity: .11; transform: rotate(-8deg); }
  .gd-m:nth-child(even) { right: max(2rem, calc((100vw - var(--container)) / 2 + 1rem)); width: 7.5rem; transform: rotate(9deg); opacity: .09; }
  .gd .av-article, .gd .av-cote { position: relative; z-index: 1; }
}

/* Telephone et tablette : le filet entre deux parties s'arrete avant un
   petit motif pose a son extremite */
@media (max-width: 1099px) {
  .gd .av-sec + .av-sec .av-prose > h2:first-child {
    position: relative;
    border-top: 0;
    background: linear-gradient(var(--border), var(--border)) 0 0 / calc(100% - 3.4rem) 1px no-repeat;
  }
  .gd .av-sec + .av-sec .av-prose > h2:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: -1.35rem;
    width: 2.8rem;
    height: 2.8rem;
    background: var(--brand);
    opacity: .3;
    -webkit-mask: var(--m, url(/assets/motifs/cafe.svg)) no-repeat center / contain;
            mask: var(--m, url(/assets/motifs/cafe.svg)) no-repeat center / contain;
  }
  .gd .av-sec:nth-child(7n+2) { --m: url(/assets/motifs/telephone.svg); }
  .gd .av-sec:nth-child(7n+3) { --m: url(/assets/motifs/lettre.svg); }
  .gd .av-sec:nth-child(7n+4) { --m: url(/assets/motifs/bulles.svg); }
  .gd .av-sec:nth-child(7n+5) { --m: url(/assets/motifs/avion.svg); }
  .gd .av-sec:nth-child(7n+6) { --m: url(/assets/motifs/plume.svg); }
  .gd .av-sec:nth-child(7n)   { --m: url(/assets/motifs/loupe.svg); }
  .gd .av-sec:nth-child(7n+1) { --m: url(/assets/motifs/cafe.svg); }
}

/* Image a la une : horizontale sur telephone, arche carree sur ordinateur */
@media (max-width: 959px) {
  .gd-photo { border-radius: 0; }
  .gd-photo img { aspect-ratio: 3 / 2; }
}
@media (min-width: 960px) {
  .gd-photo img { aspect-ratio: 1; max-height: none; }
}

/* Maquette de recherche d'image inversee */
.rech { max-width: 34rem; margin: 1.6rem 0 1.2rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--bg-pure); overflow: hidden; font-family: var(--font-text); }
.av-prose .rech-tete { margin: 0; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg); font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.rech-corps { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem; align-items: start; }
.rech-corps img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; }
.av-prose .rech-n { margin: 0 0 .6rem; font-size: .9rem; font-weight: 600; color: var(--brand); text-align: left; }
.av-prose .rech-l { margin: 0 0 .55rem; padding: .5rem .7rem; border-radius: .5rem; background: #f6f1ee; font-size: .85rem; line-height: 1.4; color: var(--text-muted); text-align: left; }
.rech-l span { display: block; font-weight: 600; color: var(--text); }

/* ==========================================================================
   Page methode : etapes numerotees (vraie sequence), notes de reference
   facon encyclopedie, liste des sources
   ========================================================================== */
.mt .av-corps { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .mt .av-corps { grid-template-columns: 15rem minmax(0, 1fr); } }
.mt-signature .mt-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-pure); border: 1px solid var(--border); }
.mt-signature .mt-logo svg { width: 18px; height: 17px; }
.mt-signature .mt-logo path { fill: var(--brand); }
.mt-etapes { list-style: none; counter-reset: etape; margin: 1.6rem 0 0; padding: 0; }
.mt-etapes li { counter-increment: etape; position: relative; padding: 0 0 1.6rem 3.4rem; }
.mt-etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: .1rem;
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--brand);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--brand);
  background: var(--bg-pure);
}
.mt-etapes li::after { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: .2rem; width: 1px; background: var(--border-strong); }
.mt-etapes li:last-child::after { display: none; }
.mt .mt-etapes h3 { padding-left: 0; margin: .3rem 0 .5rem; }
.mt .mt-etapes h3::before { display: none; }
.mt-grille { margin: 1.6rem 0 2rem; }
.mt-grille ul { grid-template-columns: 1fr !important; }
.ref { font-size: .72em; line-height: 0; margin-left: .1em; }
.ref a { color: var(--brand) !important; border-bottom: 0 !important; font-weight: 600; }
.mt-sources { margin: 0 0 1.8rem; padding-left: 1.6rem; font-size: .92rem; line-height: 1.6; color: #3d3842; }
.mt-sources li { margin-bottom: .6rem; scroll-margin-top: calc(var(--header-h, 4.1rem) + 1.5rem); }
.mt-sources li::marker { color: var(--brand); font-weight: 600; }
.mt-sources li:target { background: var(--sable); }
.av-prose code { font-size: .9em; padding: .05em .35em; background: var(--bg-alt); border-radius: .3em; }

/* ==========================================================================
   Qui sommes-nous : la redaction en portraits en arche
   ========================================================================== */
.qs-equipe { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg-pure); }
.qs-intro { max-width: 40rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin: 0 0 2.5rem; }
.qs-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
.qs-grille a { display: flex; flex-direction: column; color: var(--text); }
.qs-grille a:hover { text-decoration: none; }
.qs-photo { display: block; overflow: hidden; border-radius: 999px 999px 0 0; margin-bottom: .9rem; background: var(--bg-alt); }
.qs-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter .4s ease, transform .6s ease; }
.qs-grille a:hover .qs-photo img { filter: none; transform: scale(1.03); }
.qs-nom { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; transition: color .25s ease; }
.qs-grille a:hover .qs-nom { color: var(--brand); }
.qs-role { font-size: .84rem; font-weight: 600; color: var(--brand); margin: .2rem 0 .5rem; }
.qs-bio { font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--text-muted); }
.qs .qs-corps { grid-template-columns: minmax(0, 1fr); }
.qs .av-corps .av-article { max-width: 44rem; margin: 0 auto; }
@media (min-width: 760px) { .qs-grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .qs-grille { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } .qs-grille li:nth-child(even) { margin-top: 2.5rem; } }

/* ==========================================================================
   Pages auteurs
   ========================================================================== */
.au-ouverture { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.au-grille { display: grid; gap: 1.6rem; align-items: start; }
.au-portrait { display: block; width: 9rem; overflow: hidden; border-radius: 999px 999px 0 0; }
.au-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.au-job { margin: 0 0 .2rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.au-ouverture h1 { margin: 0 0 .3rem; font-size: clamp(2.6rem, 6vw, 4rem); }
.au-role { margin: 0 0 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--text-muted); }
.au-tags { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.au-tags li { padding: .3rem .75rem; border-radius: 999px; background: var(--bg-pure); border: 1px solid var(--border); font-size: .8rem; font-weight: 600; }
.au-grille p:not(.au-job):not(.au-role) { max-width: 40rem; font-size: 1.04rem; line-height: 1.7; color: #3d3842; }
.au-pubs { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg-pure); }
/* les regles generiques de section ajoutaient leur propre padding */
.au .au-groupe { padding: 0; }
.au-groupe + .au-groupe { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem) !important; border-top: 1px solid var(--border); }
.au-groupe-t { margin: 0 0 1.6rem; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; }
.au-avis-liste, .au-art-liste, .au-lex { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
.au-avis { display: block; color: var(--text); }
.au-avis:hover, .au-art:hover, .au-lex a:hover { text-decoration: none; }
.au-avis-img { display: block; overflow: hidden; border: 1px solid var(--border-strong); margin-bottom: .8rem; }
.au-avis-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s ease; }
.au-avis:hover .au-avis-img img { transform: scale(1.03); }
.au-avis-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.au-avis-nom { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; transition: color .25s ease; }
.au-avis:hover .au-avis-nom, .au-art:hover .au-art-t, .au-lex a:hover dfn { color: var(--brand); }
.au-avis-note { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.au-avis-note small { font-size: .6em; color: var(--text-muted); }
.au-avis-sous { display: block; font-size: .9rem; color: var(--text-muted); }
.au-art { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.1rem; align-items: center; color: var(--text); }
.au-art-img { display: block; overflow: hidden; }
.au-art-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.au-art-k { display: block; font-size: .8rem; font-weight: 600; color: var(--brand); }
.au-art-t { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin: .15rem 0 .3rem; transition: color .25s ease; }
.au-art-t em { font-style: italic; }
.au-art-s { display: block; font-size: .88rem; line-height: 1.5; color: var(--text-muted); }
.au-lex { gap: 0; }
.au-lex a { display: flex; flex-direction: column; padding: .8rem 0; border-bottom: 1px dashed var(--border); color: var(--text); }
.au-lex dfn { font-style: normal; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; transition: color .25s ease; }
.au-lex span { font-size: .88rem; color: var(--text-muted); }
.au-autres { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg); }
.au-autres-grille { margin-bottom: 2rem !important; }
.au-hub { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg-pure); }
.au-hub-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem 2rem; }
.au-carte-lien { display: flex; flex-direction: column; color: var(--text); }
.au-carte-lien:hover { text-decoration: none; }
.au-carte-lien:hover .qs-photo img { filter: none; }
.au-carte-lien:hover .qs-nom { color: var(--brand); }
.au-carte .qs-photo { max-width: 14rem; }
.au-carte .qs-bio { font-style: normal; font-family: var(--font-text); font-size: .92rem; margin-top: .3rem; }
.au-carte-t { margin: 1rem 0 .4rem; font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.au-carte-pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.au-carte-pubs a { font-size: .92rem; color: var(--text); border-bottom: 1px solid var(--border-strong); }
.au-carte-pubs a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.au-carte-pubs em { font-style: normal; }
@media (min-width: 640px) {
  .au-avis-liste { grid-template-columns: 1fr 1fr; }
  .au-lex { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .au-hub-grille { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .au-grille { grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; }
  .au-portrait { width: 100%; }
  .au-avis-liste { grid-template-columns: repeat(3, 1fr); }
  .au-art-liste { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .au-art { grid-template-columns: 9rem 1fr; }
  .au-lex { grid-template-columns: repeat(3, 1fr); }
  .au-hub-grille { grid-template-columns: repeat(3, 1fr); }
}
