/* =============================================================================
   NLION INFORMATIQUE — Affinage visuel de la page d'accueil
   -----------------------------------------------------------------------------
   Chargé uniquement sur index.php (body.homepage) : aucune autre page n'est
   impactée. Aucune nouvelle police ni nouvelle couleur : uniquement les tokens
   existants (Inter / Playfair Display, --primary-*, --text-*, --border-*).
   Objectif : supprimer les éléments « bruts » (emojis décoratifs, gris froids,
   alignements mixtes, boutons pleine largeur, trous dans les grilles).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

/* Sécurité : jamais de séparateur orphelin en fin de ligne de preuves. */
body.homepage .hero-proof__sep:last-child {
    display: none;
}

/* Sur petit écran les puces passent à la ligne : les points de séparation
   se retrouvent en bout de ligne. On les retire et on espace les puces. */
@media (max-width: 620px) {
    body.homepage .hero-proof {
        gap: 0.45rem;
    }

    body.homepage .hero-proof__sep {
        display: none;
    }
}

/* La bande SEO locale visait --text / --primary, qui n'existent pas :
   le texte retombait en couleur par défaut et les villes n'étaient pas mises
   en valeur. On repasse sur les tokens réels, en version plus discrète. */
body.homepage .local-seo-strip--hero {
    width: min(100%, 780px);
    margin-top: 1.75rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 252, 247, 0.62);
    border-color: var(--border-light);
    border-radius: 20px;
}

body.homepage .local-seo-strip .local-seo-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

body.homepage .local-seo-strip .local-seo-text strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   1 bis. Entrée du hero : cascade au lieu d'un fondu global
   -----------------------------------------------------------------------------
   La feuille principale révèle les sept blocs du hero d'un seul bloc, en
   0,24 s, avec une courbe `ease` : à l'arrivée, plus rien ne bouge. On garde
   exactement le même déclencheur (la classe .hero-fonts-ready posée par
   hero-animations.js quand les polices sont chargées, avec sa sécurité de
   1200 ms) — on ne fait que redistribuer le temps.

   Courbe : cubic-bezier(.16, 1, .3, 1). Départ franc, arrivée très amortie :
   c'est ce qui distingue un mouvement dessiné d'un `ease` par défaut.
   Le décalage se règle par --hero-delay, un bloc = une valeur.
   -------------------------------------------------------------------------- */

html.js body.homepage .hero-eyebrow          { --hero-delay: 0ms; }
html.js body.homepage .hero h1               { --hero-delay: 80ms; }
html.js body.homepage .hero .subtitle        { --hero-delay: 200ms; }
html.js body.homepage .hero .hero-description { --hero-delay: 300ms; }
html.js body.homepage .hero .hero-actions    { --hero-delay: 380ms; }
html.js body.homepage .hero .hero-proof      { --hero-delay: 470ms; }
html.js body.homepage .hero .local-seo-strip--hero { --hero-delay: 580ms; }

html.js body.homepage .hero-eyebrow,
html.js body.homepage .hero h1,
html.js body.homepage .hero .subtitle,
html.js body.homepage .hero .hero-description,
html.js body.homepage .hero .hero-actions,
html.js body.homepage .hero .hero-proof,
html.js body.homepage .hero .local-seo-strip--hero {
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-delay, 0ms),
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-delay, 0ms),
        filter 0.75s ease var(--hero-delay, 0ms);
}

/* État de départ : un peu plus de course qu'avant (8px suffisait à peine à se
   voir), et le H1 arrive de plus loin avec une pointe d'échelle — c'est la
   masse typographique de la page, elle mérite d'avoir du poids. */
html.js:not(.hero-fonts-ready) body.homepage .hero-eyebrow,
html.js:not(.hero-fonts-ready) body.homepage .hero .subtitle,
html.js:not(.hero-fonts-ready) body.homepage .hero .hero-description,
html.js:not(.hero-fonts-ready) body.homepage .hero .hero-actions,
html.js:not(.hero-fonts-ready) body.homepage .hero .hero-proof,
html.js:not(.hero-fonts-ready) body.homepage .hero .local-seo-strip--hero {
    transform: translate3d(0, 14px, 0);
    filter: blur(1.5px);
}

html.js:not(.hero-fonts-ready) body.homepage .hero h1 {
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(3px);
}

html.js.hero-fonts-ready body.homepage .hero h1 {
    transform: none;
    filter: none;
}

/* Les boutons et les puces de preuve s'égrènent à l'intérieur de leur ligne :
   une ligne qui se remplit se lit mieux qu'une ligne qui apparaît. */
html.js body.homepage .hero-actions > *,
html.js body.homepage .hero-proof > * {
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-child-delay, 0ms),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--hero-child-delay, 0ms);
}

html.js body.homepage .hero-actions > :nth-child(1) { --hero-child-delay: 420ms; }
html.js body.homepage .hero-actions > :nth-child(2) { --hero-child-delay: 510ms; }
html.js body.homepage .hero-proof > :nth-child(1)   { --hero-child-delay: 540ms; }
html.js body.homepage .hero-proof > :nth-child(2)   { --hero-child-delay: 580ms; }
html.js body.homepage .hero-proof > :nth-child(3)   { --hero-child-delay: 620ms; }
html.js body.homepage .hero-proof > :nth-child(4)   { --hero-child-delay: 660ms; }
html.js body.homepage .hero-proof > :nth-child(5)   { --hero-child-delay: 700ms; }

html.js:not(.hero-fonts-ready) body.homepage .hero-actions > *,
html.js:not(.hero-fonts-ready) body.homepage .hero-proof > * {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

html.js.hero-fonts-ready body.homepage .hero-actions > *,
html.js.hero-fonts-ready body.homepage .hero-proof > * {
    opacity: 1;
    transform: none;
}

/* Le mot accentué se pose juste après le reste du titre. Pas de transform
   ici : l'élément porte un dégradé en background-clip:text, que certains
   moteurs repeignent mal une fois transformé. Opacité seule, donc. */
html.js body.homepage .hero-h1-accent {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 300ms;
}

html.js:not(.hero-fonts-ready) body.homepage .hero-h1-accent {
    opacity: 0;
}

html.js.hero-fonts-ready body.homepage .hero-h1-accent {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   1 ter. Vie ambiante : ce qui continue de respirer après l'entrée
   -----------------------------------------------------------------------------
   Trois mouvements très lents et très faibles. Isolément aucun n'est
   perceptible ; ensemble ils empêchent la page de se figer. Tout est
   décoratif (pseudo-éléments et ornements), donc rien ne bouge sous le
   curseur ni sous le texte à lire.
   -------------------------------------------------------------------------- */

@keyframes heroHaloDriftLeft {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(2.5%, -2%, 0) scale(1.09); }
}

@keyframes heroHaloDriftRight {
    from { transform: translate3d(0, 0, 0) scale(1.06); }
    to   { transform: translate3d(-3%, 2.5%, 0) scale(1); }
}

body.homepage .hero::before {
    animation: heroHaloDriftLeft 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
    will-change: transform;
}

body.homepage .hero::after {
    animation: heroHaloDriftRight 34s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
    will-change: transform;
}

/* Léger reflet qui traverse le mot accentué. 18 s : on ne le surprend qu'en
   le fixant, ce qui est exactement le but. */
@keyframes heroAccentSheen {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

body.homepage .hero-h1-accent {
    background-size: 220% 100%;
    background-position: 0% 50%;
    animation: heroAccentSheen 18s ease-in-out infinite alternate;
}

/* La pastille du badge respire, comme un voyant « en activité ». */
@keyframes heroEyebrowPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(170, 90, 51, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(170, 90, 51, 0.06); }
}

body.homepage .hero-eyebrow__dot {
    animation: heroEyebrowPulse 3.2s ease-in-out infinite;
}

/* La flèche de « Voir les services » invite à descendre. Le mouvement
   s'arrête au survol : on ne bouge pas une cible qu'on vise. */
@keyframes heroArrowNudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

body.homepage .hero-actions .secondary-button i {
    animation: heroArrowNudge 2.4s ease-in-out infinite;
}

body.homepage .hero-actions .secondary-button:hover i {
    animation: none;
}

/* -----------------------------------------------------------------------------
   1 quater. Mouvement réduit : on respecte le réglage système
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html.js body.homepage .hero-eyebrow,
    html.js body.homepage .hero h1,
    html.js body.homepage .hero .subtitle,
    html.js body.homepage .hero .hero-description,
    html.js body.homepage .hero .hero-actions,
    html.js body.homepage .hero .hero-proof,
    html.js body.homepage .hero .local-seo-strip--hero,
    html.js body.homepage .hero-actions > *,
    html.js body.homepage .hero-proof > *,
    html.js body.homepage .hero-h1-accent {
        transition: opacity 0.2s linear;
        transform: none !important;
        filter: none !important;
    }

    body.homepage .hero::before,
    body.homepage .hero::after,
    body.homepage .hero-h1-accent,
    body.homepage .hero-eyebrow__dot,
    body.homepage .hero-actions .secondary-button i {
        animation: none;
    }
}

/* -----------------------------------------------------------------------------
   2. Rythme vertical entre les sections
   -------------------------------------------------------------------------- */

body.homepage .services + .proof-strip {
    padding-top: 2.5rem;
}

body.homepage .proof-strip + .showcase-section {
    padding-top: 3rem;
}

/* -----------------------------------------------------------------------------
   3. Alignements : plus de titre centré au-dessus d'un texte aligné à gauche
   -------------------------------------------------------------------------- */

body.homepage .about-header .section-title,
body.homepage .contact-copy .section-title,
body.homepage .awale-highlight-card .section-title,
body.homepage .awale-highlight-card .section-intro {
    text-align: left;
}

body.homepage .awale-highlight-card .section-intro {
    margin-left: 0;
    margin-right: 0;
    max-width: 62ch;
}

body.homepage .contact-form-title,
body.homepage .contact-form-intro {
    text-align: left;
}

/* Le H2 de la FAQ porte une longue formulation SEO : on garde le texte,
   on réduit simplement son poids visuel. */
body.homepage .faq-title {
    font-size: clamp(1.85rem, 2.6vw, 2.6rem);
    line-height: 1.18;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------------------------------------------
   4. Cartes de service : bouton compact, aligné en bas de carte
   -------------------------------------------------------------------------- */

body.homepage .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.homepage .service-card p {
    margin-bottom: 1.4rem;
}

body.homepage .service-card .audit-security-btn,
body.homepage .service-card .tool-btn {
    align-self: flex-start;
    width: auto;
    margin-top: auto;
    padding: 0.66rem 1.25rem;
}

/* -----------------------------------------------------------------------------
   5. Grilles : plus de « trou » quand la dernière ligne est incomplète
   -------------------------------------------------------------------------- */

/* Avis clients : 7 cartes dans une grille de 3 laissaient une ligne
   quasi vide. Un flux en colonnes équilibre les hauteurs sans rien masquer. */
body.homepage .proof-grid {
    display: block;
    columns: 3;
    column-gap: 1.1rem;
}

body.homepage .proof-grid .review-card {
    display: block;
    width: 100%;
    margin: 0 0 1.1rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* Ateliers d'outils : 4 ou 2 cartes se centrent au lieu de coller à gauche. */
body.homepage .tools-category .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0;
}

body.homepage .tools-category .services-grid > * {
    flex: 0 1 calc((100% - 2.5rem) / 3);
    min-width: 240px;
    /* `height: 100%` empêchait l'étirement flex : les cartes d'une même
       ligne n'avaient pas la même hauteur et les boutons se décalaient. */
    height: auto;
}

/* Catégorie ne contenant qu'un seul outil : la carte s'élargit pour ne pas
   flotter au milieu d'un panneau vide. */
body.homepage .tools-category .services-grid > *:only-child {
    flex-basis: min(520px, 100%);
}

/* -----------------------------------------------------------------------------
   6. Atelier / outils : suppression des emojis et des gris froids
   -------------------------------------------------------------------------- */

/* Les pastilles 🌐 et 📋 étaient injectées sur TOUS les h3 de la catégorie,
   donc aussi sur chaque titre de carte. */
body.homepage .tools-category h3::before {
    content: none;
}

/* Titre de catégorie : typo éditoriale, aligné à gauche, filet de séparation. */
body.homepage .tools-category > h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    margin: 0 0 1.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

/* Titre de carte outil : identique aux cartes de service. */
body.homepage .tools-category .tool-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.7rem;
}

body.homepage .tools-category {
    padding: 2rem 2rem 2.25rem;
    margin-bottom: 2.25rem;
    border-radius: 24px;
}

/* Boutons de l'atelier : ils étaient forcés en blanc pur / gris bleuté
   (#ffffff, #d1d5db, #111827), en rupture avec la palette chaude du site. */
body.homepage .tools-section .tool-btn,
body.homepage .tools-section .audit-security-btn.tool-btn {
    background: transparent !important;
    color: var(--primary-dark) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: none;
}

body.homepage .tools-section .tool-btn:not(:disabled):hover,
body.homepage .tools-section .audit-security-btn.tool-btn:hover {
    background: var(--text-dark) !important;
    color: var(--text-light) !important;
    border-color: var(--text-dark) !important;
}

/* Bandeau d'état du serveur : pastille discrète plutôt que grand bloc. */
body.homepage .server-status {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 2.5rem;
    background: transparent;
    border: 0;
}

body.homepage .server-status .status-indicator {
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: rgba(255, 252, 247, 0.72);
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
   6 bis. Avis clients : un vrai titre de section, comme les autres blocs
   -------------------------------------------------------------------------- */

body.homepage .proof-header {
    align-items: flex-end;
}

body.homepage .proof-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

body.homepage .proof-title {
    text-align: left;
    font-size: clamp(2rem, 3vw, 2.9rem);
    margin: 0;
}

/* -----------------------------------------------------------------------------
   7. Vitrine « Quelques sites »
   -------------------------------------------------------------------------- */

/* Le bouton « Tout dérouler » flottait entre l'intro et la grille.
   On le replace sous l'aperçu, à l'endroit où le dégradé coupe la liste. */
body.homepage .showcase-shell > #client-sites-content {
    order: 1;
}

body.homepage .showcase-shell > .showcase-actions {
    order: 2;
    margin-top: 0.5rem;
}

/* Le duplicata interne devient inutile (le JS pilote les deux via le groupe). */
body.homepage .showcase-actions-bottom {
    display: none;
}

body.homepage .showcase-card {
    display: flex;
    flex-direction: column;
}

body.homepage .showcase-thumb {
    position: relative;
    height: 200px;
    border-bottom: 1px solid var(--border-light);
}

body.homepage .showcase-body {
    flex: 1;
    padding: 1.05rem 1.15rem 1.3rem;
}

body.homepage .showcase-body strong {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

body.homepage .showcase-body span {
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Repère discret pour la réalisation la plus récente. */
body.homepage .showcase-flag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.92);
    border: 1px solid var(--border-strong);
    color: var(--primary-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

body.homepage .showcase-note {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* -----------------------------------------------------------------------------
   8. PlayAwale & livres
   -------------------------------------------------------------------------- */

/* PlayAwale : le bloc pesait lourd — bandeau beige plein (collé à celui des
   livres, ce qui formait une seule grande dalle), titre à la taille d'un titre
   de section, chiffres en pastilles pleines et deux boutons. On l'allège pour
   en faire un encadré qui se lit, pas un pavé. */
body.homepage .awale-highlight-section {
    background: transparent;
    padding: 3.5rem 0 3rem;
}

body.homepage .awale-highlight-card {
    max-width: 780px;
    padding: 2.25rem 2.4rem 2rem;
    background: rgba(255, 253, 248, 0.78);
    backdrop-filter: blur(10px);
}

body.homepage .awale-highlight-card .proof-kicker {
    margin-bottom: 1.1rem;
}

/* Titre en retrait : c'est un focus, pas un titre de niveau section. */
body.homepage .awale-highlight-card .section-title {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

body.homepage .awale-highlight-card .section-intro {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

/* Chiffres clés : une ligne discrète séparée par des points, au lieu de trois
   pastilles pleines qui alourdissaient le bloc. */
body.homepage .awale-highlight-metrics {
    gap: 0;
    align-items: baseline;
    margin: 0 0 1.4rem;
}

body.homepage .awale-highlight-metrics span {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

body.homepage .awale-highlight-metrics span + span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 0.8rem 0.15rem;
    border-radius: 50%;
    background: var(--border-strong);
}

body.homepage .awale-highlight-note {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

body.homepage .awale-highlight-actions {
    margin-bottom: 1.4rem;
}

/* Chevron maison : le marqueur ▶ par défaut du navigateur jurait avec le reste. */
body.homepage .awale-tech-details summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
}

body.homepage .awale-tech-details summary::-webkit-details-marker {
    display: none;
}

body.homepage .awale-tech-details summary::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

body.homepage .awale-tech-details[open] summary::before {
    transform: rotate(45deg);
}

/* Livres KDP : trois grands blocs empilés pleine largeur occupaient près de
   trois écrans. On les regroupe sur une seule ligne, en cartes verticales
   compactes, sans rien retirer du contenu. */
body.homepage .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1180px;
    margin: 0 auto;
    align-items: stretch;
}

body.homepage .book-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    max-width: none;
    margin: 0;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-light);
}

body.homepage .book-card:hover {
    box-shadow: var(--shadow);
}

body.homepage .book-cover {
    width: 150px;
    margin: 0 auto;
}

body.homepage .book-cover img {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(35, 23, 15, 0.18);
}

body.homepage .book-content {
    gap: 0.7rem;
}

body.homepage .book-badge {
    font-size: 0.76rem;
    padding: 0.32rem 0.72rem;
}

body.homepage .book-title-text {
    font-size: 1.18rem;
    line-height: 1.3;
}

body.homepage .book-desc {
    font-size: 0.9rem;
    line-height: 1.55;
}

body.homepage .book-features {
    gap: 0.4rem;
}

body.homepage .book-features li {
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

body.homepage .book-feat-icon {
    width: 1.1rem;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

/* Le CTA se colle en bas : les trois boutons s'alignent d'une carte à l'autre. */
body.homepage .book-links-row {
    margin-top: auto;
    padding-top: 0.35rem;
}

body.homepage .book-cta {
    margin-top: 0;
    padding: 0.72rem 1.25rem;
    font-size: 0.9rem;
}

/* La mention d'affiliation était répétée quatre fois. On n'en garde qu'une,
   placée entre les trois boutons Amazon et le lien vers la page auteur :
   elle couvre l'ensemble des liens de la section. */
body.homepage .book-card .book-affiliate-note,
body.homepage .book-author-note .book-affiliate-note {
    display: none;
}

body.homepage .book-affiliate-note--section {
    max-width: 1180px;
    margin: 1.1rem auto 0;
    text-align: center;
    font-size: 0.8rem;
}

body.homepage .book-author-note {
    margin-top: 2.5rem;
}

/* -----------------------------------------------------------------------------
   9. Blog : indicateur de chargement aux couleurs du site
   -------------------------------------------------------------------------- */

body.homepage .blog-section .loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

body.homepage .blog-section .loading-spinner {
    display: inline-block;
    width: 34px;
    height: 34px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

body.homepage .blog-section .loading-indicator p {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Les extraits WordPress ont des longueurs très inégales : on borne le nombre
   de lignes pour que titres et « Lire l'article » restent alignés d'une carte
   à l'autre. */
body.homepage .blog-section .blog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.homepage .blog-section .blog-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.homepage .blog-section .blog-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

body.homepage .blog-section .blog-read-more {
    margin-top: auto;
}

/* État d'erreur du flux d'articles : bloc sobre au lieu de l'alerte rouge
   et des trois boutons saturés (rouge / indigo / vert). */
body.homepage .blog-error {
    grid-column: 1 / -1;
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    text-align: center;
    background: rgba(255, 253, 248, 0.75);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

body.homepage .blog-error__icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.75;
}

body.homepage .blog-error__title {
    margin: 0.9rem 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-dark);
}

body.homepage .blog-error__detail {
    margin: 0 0 1.4rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    opacity: 0.85;
}

body.homepage .blog-error__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

/* -----------------------------------------------------------------------------
   9 bis. Respiration : l'écart titre → cartes était très creux
   -------------------------------------------------------------------------- */

body.homepage .services > .container > .services-grid {
    margin-top: 0.5rem;
}

/* -----------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    body.homepage .proof-grid {
        columns: 2;
    }

    body.homepage .tools-category .services-grid > * {
        flex: 0 1 calc((100% - 1.25rem) / 2);
    }

    body.homepage .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.homepage .proof-grid {
        columns: 1;
    }

    body.homepage .tools-category {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    body.homepage .tools-category .services-grid > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Sur mobile le bloc « À propos » est déjà centré par la feuille
       principale : le titre suit. Le bloc « Contact », lui, reste aligné
       à gauche — son titre aussi. */
    body.homepage .about-header .section-title {
        text-align: center;
    }

    body.homepage .proof-header {
        align-items: flex-start;
    }

    body.homepage .proof-title {
        font-size: 2.1rem;
    }

    body.homepage .awale-highlight-card .section-intro {
        max-width: none;
    }

    /* En colonne étroite les chiffres passent à la ligne et les points de
       séparation se retrouvaient en début de ligne, comme des puces mal
       alignées. On empile proprement, sans points. */
    body.homepage .awale-highlight-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    body.homepage .awale-highlight-metrics span + span::before {
        display: none;
    }

    body.homepage .faq-title {
        max-width: none;
    }

    body.homepage .book-grid {
        grid-template-columns: 1fr;
    }

    /* La feuille principale centre tout le contenu de la carte sous 640px,
       mais le bouton restait à gauche (il est désormais dans .book-links-row)
       et les listes à puces centrées se lisent mal. On garde donc le texte
       aligné à gauche, comme sur desktop, avec la couverture centrée. */
    body.homepage .book-card {
        padding: 1.5rem 1.35rem;
        text-align: left;
    }

    body.homepage .book-features li {
        justify-content: flex-start;
    }

    body.homepage .book-badge {
        align-self: flex-start;
    }

    body.homepage .book-links-row {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    body.homepage .service-card .audit-security-btn,
    body.homepage .service-card .tool-btn {
        align-self: stretch;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.homepage .blog-section .loading-spinner {
        animation: none;
    }
}
