/* Thème Graphite : pages vitrine (Exemples, À propos, Aide) et pages de compte et de service
   (connexion, inscription, Mon espace, Mon compte, forfaits, textes légaux…). Se charge après graphite.css.
   Les noms de classes des gabarits restent les mêmes; seul l'habillage change. */

/* Anciens noms de jetons, encore lus par quelques gabarits (styles en ligne) */
:root {
  --couleur-fond: var(--fond); --couleur-surface: var(--boite); --couleur-texte: var(--encre);
  --couleur-texte-doux: var(--doux); --couleur-accent: var(--accent); --couleur-bordure: var(--trait);
  --police-titre: var(--titre); --police-texte: var(--texte); --espace: 8px; --largeur: 760px;
  --surface: var(--boite); --bordure: var(--trait);
}

/* ---------- Pages vitrine ---------- */
.section { padding: 56px 0 24px; }
.section__titre { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 28px; }
.section__titre h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; }
.section__titre h2 { font-size: clamp(28px, 3.5vw, 40px); }
.section__titre p:not(.etiq) { color: var(--doux); font-size: 18px; line-height: 1.55; }
.page-etroite { max-width: 860px; }
.g .prose p, .g .prose ul, .g .prose ol { margin: 0 0 1em; line-height: 1.65; }
.g .prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.g .prose > :last-child { margin-bottom: 0; }

.exemples, .vitrine { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.exemple { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.exemple__capture img, .vitrine__image img { width: 100%; border-radius: var(--rayon-petit); border: 1px solid var(--trait); }
.exemple__texte, .vitrine__texte { display: flex; flex-direction: column; gap: 12px; }
.exemple__texte h2 { font-size: 28px; }
.exemple__texte > p:not(.exemple__meta):not(.exemple__liens) { color: var(--doux); }
.exemple__meta { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--doux); }
.exemple__sous-titre { font-size: 16px; margin-top: 6px !important; }
.exemple__liens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px !important; }
.vitrine__titre { margin-top: 72px; }
.vitrine { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.vitrine__site { display: flex; flex-direction: column; gap: 18px; }
.vitrine__texte h3 { font-size: 22px; }
.vitrine__texte p { color: var(--doux); }

.conversation--compacte { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--fond); border: 1px solid var(--trait); border-radius: 14px; }
.message { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.message--personne { align-self: flex-end; background: var(--encre); color: #fff; border-bottom-right-radius: 4px; }
.message--assistant { align-self: flex-start; background: var(--boite); border: 1px solid var(--trait); border-bottom-left-radius: 4px; }
.note { color: var(--doux); font-size: 14px; margin-top: 28px !important; max-width: 860px; }

@media (max-width: 860px) {
  .exemple { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 32px; }
}

/* Centre d'aide (aide/aide.css garde la mise en page; ici, l'habillage Graphite) */
.aide-page { padding: 40px 0 24px; }
.aide-enveloppe { max-width: 860px; }
.g .aide-titre { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; margin: .1em 0 .35em; }
.g .aide-chapo { margin: 0 0 1.5rem; font-size: 18px; color: var(--doux); }
.g .aide-section { font-size: 20px; margin: 2.2rem 0 .8rem; }
.g .aide-page p { margin: 0 0 1em; }
.aide-recherche { background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; }
.aide-recherche input { border: 1.5px solid var(--trait) !important; border-radius: var(--rayon-petit) !important; color: var(--encre) !important; min-height: 46px; }
.aide-recherche input:focus { outline-color: var(--accent) !important; border-color: var(--accent) !important; }
.aide-recherche button, .aide-imprimer { background: var(--encre) !important; border: 1.5px solid var(--encre) !important; border-radius: var(--rayon-petit) !important; font-weight: 600 !important; min-height: 46px; }
.aide-recherche button:hover, .aide-imprimer:hover { background: var(--accent) !important; border-color: var(--accent) !important; }
.aide-liste { gap: 8px; }
.aide-liste a { background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 14px 18px; }
.aide-liste a:hover, .aide-liste a:focus-visible { border-color: var(--encre); }
.aide-liste strong { color: var(--encre); font-weight: 600; }
.aide-article { background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; }
.g .aide-article h2 { font-size: 24px; margin: 2rem 0 .6rem; }
.g .aide-article h3 { font-size: 18px; margin: 1.4rem 0 .4rem; }
.g .aide-article li { margin: .3rem 0; }
.aide-encadre { border-left-color: var(--accent); background: var(--accent-doux); }
.g .aide-page .aide-encadre p { margin: .3rem 0; }
.g .aide-page .aide-bas { margin-top: 2rem; }
.aide-guide__article { margin-top: 24px; border-top: 1px solid var(--trait); }
.aide-sommaire { background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 8px 28px 16px; }
@media (max-width: 560px) { .aide-article { padding: 22px; } }
@media print { .aide-article, .aide-sommaire { border: 0; padding: 0; } }

/* ---------- Pages de compte et de service (base.html) ---------- */
.conteneur { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.conteneur--large { max-width: 1120px; }
main.conteneur { padding-top: 40px; padding-bottom: 24px; }
main.conteneur > h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; margin-bottom: 14px; }
.g main.conteneur > p, .g main.conteneur > section > p, .g main.conteneur > div > p { margin-bottom: 1em; }
.g .resume { font-size: 18px; line-height: 1.55; color: var(--doux); margin-bottom: 1.25rem; }
.g .sous-titre { font-size: 24px; margin: 3rem 0 0; }
.g main.conteneur h2 { font-size: 24px; margin: 2rem 0 .75rem; }
.g main.conteneur h3 { font-size: 19px; margin: 1.5rem 0 .5rem; }
.aide { color: var(--doux); font-size: 15px; }
.aide--ok { color: var(--succes); }
.erreur-champ { color: var(--danger); font-size: 15px; margin: .35rem 0 0 !important; }
.facultatif { font-weight: 400; color: var(--doux); font-size: 14px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.en-ligne { display: inline; margin-left: .5rem; }
.actions { margin-top: 1.5rem; }
.lien-espace { margin-left: 1rem; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.lien-bouton:hover { color: var(--accent-fonce); }

/* Boîtes : cartes, sites, alertes */
.carte, .site, .alerte, .parrainage, .forfait, .credits-ia__paquet {
  background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon);
}
.carte { padding: 24px; margin-top: 16px; }
.carte a { font-weight: 600; }
.alerte { padding: 14px 18px; margin: 0 0 1rem; border-left: 4px solid var(--accent); }
.alerte--erreur { border-color: var(--danger); border-left-color: var(--danger); background: var(--danger-doux); }
.oauth-courriel { padding: 14px 18px; border-radius: var(--rayon-petit); background: var(--succes-doux); border: 1px solid #BFE3CD; }

/* Boutons des pages de compte : mêmes que .btn (encre, bleu au survol) */
.bouton-compte {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  font: 600 15px/1.2 var(--texte); text-decoration: none; text-align: center; cursor: pointer;
  border: 1.5px solid var(--encre); border-radius: var(--rayon-petit); background: var(--encre); color: #fff !important;
  justify-self: start;
}
.bouton-compte:hover { background: var(--accent); border-color: var(--accent); }
.bouton-compte:disabled { opacity: .6; cursor: progress; }
.bouton-compte--petit { min-height: 38px; padding: 0 14px; font-size: 14px; }
.bouton-compte--secondaire { background: var(--boite); color: var(--encre) !important; }
.bouton-compte--secondaire:hover { background: var(--accent-doux); border-color: var(--encre); }
.bouton-compte--danger { background: var(--danger); border-color: var(--danger); }
.bouton-compte--danger:hover { background: #8C1D17; border-color: #8C1D17; }
.g main a:not(.bouton-compte):not(.btn) { color: var(--accent); }

/* Formulaires */
.formulaire-compte { display: grid; gap: 18px; max-width: 26rem; margin-top: 1.5rem; }
.formulaire-large { max-width: 40rem; }
.formulaire-compte label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.formulaire-compte input:not([type="checkbox"]):not([type="radio"]), .formulaire-compte textarea, .formulaire-compte select, .parrainage__lien input {
  width: 100%; font: inherit; min-height: 46px; padding: 10px 14px; color: var(--encre);
  background: var(--boite); border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
}
.formulaire-compte textarea { resize: vertical; min-height: 110px; }
.formulaire-compte input:focus-visible, .formulaire-compte textarea:focus-visible, .formulaire-compte select:focus-visible {
  outline: 3px solid var(--accent-doux); outline-offset: 0; border-color: var(--accent);
}
.formulaire-compte p > .aide, .formulaire-compte p > .alerte { display: block; margin-top: .4rem; }
.formulaire-compte fieldset { min-width: 0; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--boite); padding: 22px 24px 24px; margin: 0; display: grid; gap: 18px; }
.formulaire-compte legend { font: 600 20px/1.2 var(--titre); letter-spacing: -0.02em; padding: 0 8px; margin-left: -8px; }
.formulaire-compte .aide { margin: 0; }
.adresse { display: flex; align-items: stretch; }
.formulaire-compte .adresse input { border-radius: var(--rayon-petit) 0 0 var(--rayon-petit); min-width: 0; }
.adresse__suffixe { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; color: var(--doux);
  border: 1.5px solid var(--trait); border-left: 0; border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; background: var(--fond); }
.consentement label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.consentement input { width: auto !important; margin-top: 4px; accent-color: var(--encre); }
details.reprise { padding: 14px 16px; border: 1.5px dashed var(--trait); border-radius: var(--rayon-petit); }
details.reprise summary { cursor: pointer; font-weight: 600; }
details.reprise[open] summary { margin-bottom: 12px; }
details.reprise > div { margin-bottom: 12px; }

/* « Continuer avec Google / Microsoft » (comptes/_oauth.html) */
.oauth { display: grid; gap: 10px; max-width: 26rem; margin: 1.25rem 0 0; }
.oauth__bouton { width: 100%; }
.oauth__ou { display: flex; align-items: center; gap: 12px; margin: 6px 0 0 !important; color: var(--doux); font-size: 14px; }
.oauth__ou::before, .oauth__ou::after { content: ""; flex: 1; border-top: 1px solid var(--trait); }
.inscription-lien { margin-top: 1.25rem !important; font-size: 16px; }

/* Mon espace : la liste des sites */
.sites { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 12px; }
.site { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; }
.site__nom { font: 600 22px/1.2 var(--titre); letter-spacing: -0.02em; }
.site__details { color: var(--doux); font-size: 15px; margin-top: 2px !important; }
.site__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site__actions form { margin: 0; }
.site__vitrine { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 14px; border-top: 1px solid var(--trait); color: var(--doux); font-size: 15px; }
.site__vitrine p { flex: 1 1 22rem; margin: 0; }
.parrainage { margin-top: 2.5rem; padding: 24px; }
.g .parrainage h2 { font-size: 22px; margin: 0 0 .5rem; }
.parrainage__lien { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 .5rem; }
.parrainage__lien input { flex: 1 1 16rem; min-width: 0; }

/* Forfaits */
.bascule { display: inline-flex; gap: 4px; padding: 4px; margin: 1.5rem 0 1.25rem; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--boite); }
.g .bascule a { padding: 8px 16px; border-radius: 7px; text-decoration: none; color: var(--doux) !important; font-weight: 600; font-size: 15px; }
.g .bascule a[aria-current] { background: var(--encre); color: #fff !important; }
.bascule span { font-size: 12px; opacity: .85; }
.forfaits { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: stretch; }
.forfait { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 24px; }
.forfait--vedette { border: 2px solid var(--encre); box-shadow: 8px 8px 0 var(--accent); }
.forfait--choisi { border: 2px solid var(--accent); }
.forfait--actuel { background: var(--accent-doux); }
.forfait__ruban { position: absolute; top: -12px; left: 20px; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--encre); color: #fff; }
.g .forfait__nom { font: 600 24px/1.2 var(--titre); margin: 0; }
.forfait__prix { color: var(--doux); line-height: 1.3; font-size: 14px; }
.forfait__montant { font: 700 44px/1 var(--titre); letter-spacing: -0.02em; color: var(--encre); }
.forfait__resume { color: var(--doux); font-size: 15px; }
.forfait__points { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; align-content: start; gap: 8px; flex: 1; }
.forfait__points li { position: relative; padding-left: 24px; }
.forfait__points li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.forfait__bientot { font-size: 13px; color: var(--doux); }
.forfait__action { margin-top: 6px; }
.forfait__etiquette { display: inline-block; font-weight: 600; color: var(--encre); }
.credits-ia { margin-top: 2.5rem; }
.credits-ia__soldes { padding-left: 1.2rem; margin: 0 0 1rem; }
.credits-ia__paquets { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 16rem)); gap: 12px; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.credits-ia__paquet { display: grid; gap: 6px; justify-items: start; padding: 20px 22px; }
.credits-ia__nombre { font: 600 22px/1.2 var(--titre); }
.credits-ia__prix { font-weight: 600; }
.credits-ia__prix small { font-weight: 400; color: var(--doux); }
.credits-ia__paquet form { margin-top: 6px; }

/* Inscription : choix du modèle et des couleurs du site (les pastilles gardent les couleurs du modèle) */
.formulaire-compte .theme-auto { font-weight: 400; }
.theme-auto { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin: 6px 0 14px; border: 2px solid var(--encre); border-radius: var(--rayon-petit); background: var(--accent-doux); cursor: pointer; }
.theme-auto input { margin-top: 4px; accent-color: var(--encre); }
.modeles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 12px; margin-bottom: 20px; }
.formulaire-compte .modele { display: grid; align-content: start; gap: 6px; padding: 10px 10px 14px; margin: 0; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--boite); }
.modele:has(input:checked) { border-color: var(--encre); box-shadow: 0 0 0 2px var(--encre); }
.modele__vignette { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--trait); }
.modele__nom { font-weight: 700; font-size: 16px; margin-top: 4px; }
.modele__desc { color: var(--doux); font-size: 13px; line-height: 1.4; }
.modele .theme__variantes { flex-wrap: wrap; gap: 6px 12px; }
.modele .variante { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.modele .variante input { position: absolute; opacity: 0; }
.variante__nom { color: var(--doux); }
.autres-styles { margin-top: 8px; }
.autres-styles > summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 12px; }
.formulaire-compte .theme { position: relative; display: grid; align-content: start; margin: 0; gap: 5px; padding: 12px; border: 1px solid var(--trait); border-radius: var(--rayon-petit); background: var(--boite); }
.theme input { position: absolute; opacity: 0; }
.theme:has(input:checked) { border-color: var(--encre); box-shadow: 0 0 0 2px var(--encre); }
.theme__variantes { display: flex; gap: 8px; margin-top: 6px; }
.formulaire-compte .variante { position: relative; margin: 0; cursor: pointer; }
.variante__pastille { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--boite);
  background: linear-gradient(135deg, var(--f) 0 45%, var(--a) 45% 100%); box-shadow: 0 0 0 1px var(--trait); }
.variante input:checked + .variante__pastille { box-shadow: 0 0 0 2px var(--encre); }
.variante input:focus-visible + .variante__pastille { outline: 3px solid var(--accent); outline-offset: 3px; }
.secteurs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.secteur { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--trait); background: var(--boite); color: var(--encre); }
.secteur.actif { background: var(--encre); border-color: var(--encre); color: #fff; }
.groupe-themes { margin-bottom: 20px; }
.g .groupe-themes__titre { font-size: 16px; margin: 0 0 8px; }
.theme__apercu { display: grid; gap: 6px; padding: 14px; border-radius: 8px; background: var(--f); border: 1px solid var(--b); }
.theme__titre { font: 600 26px/1 system-ui, sans-serif; color: var(--t); }
.theme__apercu--slab_serif .theme__titre { font-family: Rockwell, "Roboto Slab", Georgia, serif; font-weight: 700; }
.theme__apercu--classic_serif .theme__titre, .theme__apercu--news_serif .theme__titre, .theme__apercu--book_serif .theme__titre { font-family: Georgia, serif; }
.theme__apercu--rounded_sans .theme__titre { font-family: ui-rounded, system-ui, sans-serif; }
.theme__apercu--display_grotesk .theme__titre { font-weight: 800; letter-spacing: -0.03em; }
.theme__ligne { height: 6px; border-radius: 3px; background: var(--d); opacity: .5; }
.theme__ligne--courte { width: 60%; }
.theme__bouton { width: 46%; height: 16px; border-radius: 5px; background: var(--a); margin-top: 4px; }
.theme__nom { font-weight: 600; margin-top: 6px; }
.theme__desc { font-size: 13px; color: var(--doux); line-height: 1.4; }

/* Textes légaux */
.texte-legal { background: var(--boite); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; }
.g .texte-legal p, .g .texte-legal ul, .g .texte-legal ol { margin: 0 0 1em; line-height: 1.65; }
.g .texte-legal h2 { font-size: 22px; margin: 2rem 0 .5rem; }
.texte-legal li { margin-bottom: .4rem; }
main.conteneur.texte-legal { margin-top: 16px; padding: 36px 40px; }

@media (max-width: 560px) {
  .conteneur { padding: 0 16px; }
  main.conteneur { padding-top: 24px; }
  .formulaire-compte fieldset, .texte-legal { padding: 18px; }
  .site { padding: 18px; }
  main.conteneur.texte-legal { padding: 24px 18px; }
}
