/* =================================================================
   abacaxi.re — CHARTE COMMUNE
   Référence : la page d'accueil. Ce fichier est chargé sur TOUTES les
   pages, après les feuilles de page : il aligne les titres de hero et
   les boutons principaux sur le style de l'accueil.
   (L'accueil garde ses propres règles, plus précises : home.css.)
   ================================================================= */

/* Titres de hero : même graisse, même serrage, même interligne.
   (data-page="index" = l'accueil, qui reste la référence.) */
body:not([data-page="index"]) #main h1 {
  font-size: clamp(40px, 4.3vw, 68px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
}
/* Texte d'introduction des heros : plus léger */
.zone-hero-lede, .apps-hero-inner > p { font-size: clamp(15px, 1.1vw, 17px); }

/* Mot en couleur des heros sur photo : le dégradé pêche de l'accueil,
   sans ombre (l'ombre sous un texte en dégradé le salit). */
.zone-hero-ville, .apps-hero-grad {
  background-image: linear-gradient(100deg, #fff1d4, #ffd3a5);
  text-shadow: none;
}
/* Logiciel métier : ombre allégée (l'ombre lourde épaississait le titre) */
.apps-hero-inner h1 { text-shadow: 0 5px 40px rgba(12, 32, 54, .32); }
.apps-hero-inner > p { text-shadow: 0 2px 18px rgba(22, 68, 103, .44); }

/* Bouton principal : orange de l'accueil sur tout le site */
.button {
  background: linear-gradient(115deg, #ffb244, #ed901c 60%, #df7d11);
  color: #fff;
  box-shadow: 0 8px 30px rgba(169, 97, 22, .15);
}
.button:hover { box-shadow: 0 15px 35px rgba(169, 97, 22, .25); }

/* ---------- Menu du haut : lisible ---------- */
@media (min-width: 1440px) {
  .site-header #nav > a:not(.nav-learn):not(.nav-contact) { font-size: 12px; letter-spacing: .06em; }
  .site-header #nav > .nav-learn, .site-header #nav > .nav-contact { font-size: 14px; }
}
@media (min-width: 1251px) and (max-width: 1439px) {
  .site-header #nav > a:not(.nav-learn):not(.nav-contact) { font-size: 10.5px; letter-spacing: .05em; }
  .site-header #nav > .nav-learn, .site-header #nav > .nav-contact { font-size: 12px; }
}
@media (min-width: 1201px) and (max-width: 1250px) {
  .site-header #nav > a:not(.nav-learn):not(.nav-contact) { font-size: 10px; }
}
@media (max-width: 1100px) {   /* menu mobile ouvert */
  .site-header #nav > a:not(.nav-learn):not(.nav-contact) { font-size: 15px; }
}
.site-header #nav .nav-client span { font-size: 11px; }
/* Page active : texte orange, sans soulignement bleu */
.site-header #nav > a[aria-current]:not(.nav-learn):not(.nav-contact) { color: #df7d11 !important; }
.site-header #nav > a[aria-current]:not(.nav-learn):not(.nav-contact)::after { display: none !important; }
.site-header #nav > a:not(.nav-learn):not(.nav-contact):not(.nav-client):hover { color: #df7d11; }

/* ---------- Abi & Kaloo : dialogue plus clair ---------- */
/* L'étiquette sous le personnage est un vrai bouton qui lance le micro */
button.orb-label { display: block; margin-left: auto; margin-right: auto; cursor: pointer; color: #f3f0ff; transition: background .2s, transform .2s; }
button.orb-label:hover { background: rgba(20, 40, 80, .5); transform: translateY(-2px); }
/* Bulle reliée au personnage par une pointe */
.mascot-orb .mascot-bot { position: relative; }
.mascot-orb .mascot-bot::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0; }
/* Champ de saisie lisible sur tous les fonds */
.mascot-orb .mascot-input { background: rgba(255, 255, 255, .9); color: #16284a; }
.mascot-orb .mascot-input::placeholder { color: #5b6b86; }

/* ---------- Liens légaux du pied de page ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-legal a, .footer-legal button { font-size: 11px; color: #596d8c; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.footer-legal a:hover, .footer-legal button:hover { color: #df7d11; }

/* ---------- Bandeau d'information statistiques ---------- */
.consent { position: fixed; left: 50%; bottom: 20px; z-index: 90; width: min(640px, calc(100% - 32px));
  transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .25s;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: rgba(255, 255, 255, .97); color: #203350; border: 1px solid #e3e8f7; border-radius: 20px;
  padding: 16px 18px; box-shadow: 0 18px 50px rgba(33, 58, 97, .22); }
.consent.on { opacity: 1; transform: translate(-50%, 0); }
.consent p { flex: 1 1 300px; margin: 0; font-size: 13px; line-height: 1.5; color: #203350; }
.consent p a { color: #df7d11; font-weight: 700; }
.consent-actions { display: flex; gap: 10px; }
/* Refuser et Accepter : même taille, même poids visuel (règle CNIL) */
.consent-btn { min-width: 110px; border-radius: 30px; padding: 11px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1.5px solid #df7d11; background: #fff; color: #b5620a; }
.consent-btn[data-consent-oui] { background: linear-gradient(115deg, #ffb244, #ed901c 60%, #df7d11); color: #fff; border-color: transparent; }
@media (max-width: 720px) { .consent { bottom: 86px; } .consent-actions { width: 100%; } .consent-btn { flex: 1; } }

/* ---------- Pages Mentions légales / Confidentialité ---------- */
.legal-page { padding-top: 170px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; margin: 14px 0 26px; color: #203350; }
.legal-wrap h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 10px; color: #203350; }
.legal-wrap p, .legal-wrap li { font-size: 15px; line-height: 1.7; color: #3f5170; }
.legal-wrap ul { padding-left: 20px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: #c46d0f; }
.legal-wrap .button { color: #fff; }
.legal-intro { font-size: 17px !important; color: #203350 !important; }
.legal-maj { margin-top: 40px; font-size: 12px !important; color: #8a97ad !important; }

/* ---------- Simulateur : fenêtre de relance ---------- */
.sim-relance { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: min(380px, calc(100% - 32px));
  background: #fff; color: #203350; border: 1px solid #e3e8f7; border-radius: 20px; padding: 20px 20px 18px;
  box-shadow: 0 22px 60px rgba(33, 58, 97, .25); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.sim-relance.on { opacity: 1; transform: none; }
.sim-relance strong { display: block; font-size: 17px; margin: 0 26px 6px 0; }
.sim-relance p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #3f5170; }
.sim-relance-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; color: #8a97ad; cursor: pointer; }
.sim-relance-actions { display: flex; flex-direction: column; gap: 8px; }
.sim-relance-btn { border-radius: 30px; padding: 11px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  border: 1.5px solid #df7d11; background: #fff; color: #b5620a; }
.sim-relance-btn.principal { background: linear-gradient(115deg, #ffb244, #ed901c 60%, #df7d11); color: #fff; border-color: transparent; }
@media (max-width: 720px) { .sim-relance { right: 16px; bottom: 86px; } }

/* Footer : léger dégradé pêche + trait fin pour le séparer de la page */
body .footer { background: linear-gradient(180deg, rgba(255,241,212,.35) 0%, rgba(255,211,165,.28) 100%); border-top: 1px solid rgba(223,125,17,.22); }

/* ---------- Moins de blanc entre les sections (ordinateur) ---------- */
@media (min-width: 1101px) {
  .section:not(main > .section:first-child) { padding-top: 64px; }
  .section { padding-bottom: 64px; }
  .ai-preview { min-height: 600px; }
  .ocean-preview { min-height: 640px; }
  .closing { min-height: 380px; }
}
@media (max-width: 1100px) {
  .section:not(main > .section:first-child) { padding-top: 48px; }
  .section { padding-bottom: 48px; }
}

/* ---------- Services : aides au financement ---------- */
.aides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.aide-card { border-radius: 24px; padding: 24px; background: linear-gradient(140deg, #fff, #f3f6ff); box-shadow: 0 18px 40px -26px #26407a66; }
.aide-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.aide-ic { font-size: 1.6rem; }
.aide-tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b5620a; background: #fff1d4; border-radius: 999px; padding: 5px 11px; }
.aide-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.aide-card p { font-size: .9rem; line-height: 1.6; color: #4b5d7a; margin: 0 0 10px; }
.aide-card small { display: block; font-size: .78rem; color: #6b7b96; }
.aides-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.aides-dispo { max-width: 640px; font-size: .82rem; color: #6b7b96; margin: 0; }
/* Offre du moment : carte mise en avant (orange) */
.aide-card.is-offre { position: relative; display: flex; flex-direction: column; background: linear-gradient(140deg, #fff7ec, #ffe6c4); border: 2px solid #df7d11; box-shadow: 0 22px 48px -24px #df7d1199; }
.aide-card.is-offre .aide-tag { color: #fff; background: linear-gradient(90deg, #df7d11, #ffb244); }
.aide-card.is-offre h3 { color: #b5620a; }
.offre-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.offre-fin { font-size: .8rem; font-weight: 700; color: #b5620a; }
.aide-card .offre-cta { padding: 10px 20px; font-size: .85rem; }
.site-footer .footer-txt, .footer .footer-txt { display: block; font-size: inherit; color: inherit; opacity: .8; }
