/* HAMAB Guinée SARL — couleurs du logo */
:root {
  --bleu: #0033A0;
  --bleu-fonce: #00226b;
  --cyan: #00A8E0;
  --rose: #BE0050;
  --texte: #1c2433;
  --gris: #5b6577;
  --fond: #ffffff;
  --fond-doux: #f3f6fb;
  --bord: #dfe5ef;
  --rayon: 14px;
  --ombre: 0 6px 24px rgba(0, 34, 107, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--texte); background: var(--fond); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--bleu); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bleu); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-block; background: var(--rose); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 40px; transition: transform .15s, background .15s; border: 2px solid var(--rose); }
.btn:hover { background: #a10044; border-color: #a10044; transform: translateY(-1px); }
.btn-ligne { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn-ligne:hover { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.btn-petit { padding: 8px 18px; font-size: 15px; }
.btn-blanc { background: #fff; color: var(--bleu); border-color: #fff; }
.btn-blanc:hover { background: #eaf3ff; border-color: #eaf3ff; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--bord); }
.entete-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bleu); font-size: 18px; }
.marque strong { color: var(--rose); font-weight: 800; letter-spacing: .5px; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { text-decoration: none; color: var(--texte); font-weight: 600; font-size: 15.5px; }
.menu a:not(.btn):hover { color: var(--rose); }
.menu a.btn { color: #fff; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--bleu); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(135deg, #eef4ff 0%, #e6f7fd 60%, #fdf0f5 100%); padding: 72px 0 80px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.sur-titre { color: var(--rose); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); color: var(--bleu-fonce); font-weight: 800; }
.hero h1 span { color: var(--rose); }
.chapeau { font-size: 19px; color: var(--gris); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visuel { position: relative; height: 340px; }
.boite { position: absolute; width: 150px; height: 190px; border-radius: 16px 16px 12px 12px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; box-shadow: 0 18px 40px rgba(0, 34, 107, .22); }
.boite::before { content: ''; position: absolute; top: -12px; left: 8px; right: 8px; height: 18px; border-radius: 10px; background: inherit; filter: brightness(.85); }
.boite span { font-weight: 800; font-size: 20px; }
.boite em { font-style: normal; font-size: 14px; opacity: .9; }
.b1 { background: linear-gradient(160deg, var(--bleu), var(--cyan)); left: 6%; top: 60px; transform: rotate(-6deg); }
.b2 { background: linear-gradient(160deg, var(--rose), #e2447f); left: 36%; top: 20px; z-index: 2; }
.b3 { background: linear-gradient(160deg, #1a8f5a, #5cc48c); left: 64%; top: 80px; transform: rotate(6deg); }

/* Avis OMS */
.avis { background: #fff8e6; border-top: 1px solid #f3dfa6; border-bottom: 1px solid #f3dfa6; color: #6b4e00; }
.avis-in { display: flex; gap: 14px; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
.avis svg { flex: none; margin-top: 2px; }
.avis p { margin: 0; font-size: 15.5px; }

/* Sections */
.section { padding: 76px 0; }
.titre { text-align: center; font-size: clamp(26px, 3.2vw, 36px); color: var(--bleu-fonce); font-weight: 800; margin-bottom: 14px; }
.titre::after { content: ''; display: block; width: 56px; height: 4px; background: var(--rose); border-radius: 4px; margin: 14px auto 0; }
.titre.gauche { text-align: left; }
.titre.gauche::after { margin-left: 0; }
.intro { text-align: center; color: var(--gris); max-width: 680px; margin: 0 auto 36px; }
.intro.centre { margin-top: 30px; margin-bottom: 0; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 22px; box-shadow: var(--ombre); }
.carte h3 { font-size: 19px; color: var(--bleu); }
.carte p { margin: 0; color: var(--gris); font-size: 15.5px; }
.pastille { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--bleu), var(--cyan)); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }

/* Produits */
.produits { background: var(--fond-doux); }
.gamme + .gamme { margin-top: 48px; }
.gamme-titre { font-size: 22px; color: var(--bleu-fonce); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.puce { width: 14px; height: 14px; border-radius: 4px; }
.puce.bleu { background: var(--bleu); }
.puce.rose { background: var(--rose); }
.produit { background: #fff; border-radius: var(--rayon); padding: 24px; border-top: 5px solid var(--bleu); box-shadow: var(--ombre); }
.produit.specifique { border-top-color: var(--cyan); }
.produit h4 { font-size: 19px; color: var(--bleu); margin-bottom: 12px; }
.produit ul { list-style: none; margin: 0; padding: 0; }
.produit li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--bord); font-size: 16px; }
.produit li:last-child { border-bottom: 0; }
.produit li span { color: var(--gris); white-space: nowrap; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--rose); font-weight: 700; }
.legende { color: var(--gris); font-size: 14.5px; margin-top: 14px; }
.cereales { display: flex; flex-wrap: wrap; gap: 12px; }
.cereales span { background: #fff; border: 2px solid #f4c9da; color: var(--rose); font-weight: 700; padding: 10px 18px; border-radius: 40px; }

/* Points de vente */
.lieu { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px 24px; text-align: center; box-shadow: var(--ombre); position: relative; }
.lieu::before { content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rose); box-shadow: inset 0 0 0 13px var(--rose), inset 0 0 0 30px #fff; }
.lieu h3 { color: var(--bleu); font-size: 22px; }
.lieu p { margin: 0; color: var(--gris); }

/* Professionnels */
.pros { background: linear-gradient(135deg, var(--bleu) 0%, #0a5cc8 60%, var(--cyan) 100%); color: #fff; }
.pros .titre { color: #fff; }
.pros-in { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.pros p { color: #e4eeff; }
.coches { list-style: none; padding: 0; margin: 18px 0 0; }
.coches li { padding-left: 32px; position: relative; margin: 10px 0; font-weight: 600; }
.coches li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 13px; }
.pros-cta { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--rayon); padding: 30px; text-align: center; }
.pros-cta p { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.lien-blanc { display: block; margin-top: 12px; color: #fff; }

/* À propos */
.apropos-in { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.apropos img { border-radius: 20px; box-shadow: var(--ombre); }
.apropos p { color: var(--gris); }

/* Contact */
.contact { background: var(--fond-doux); }
.contact .grille-3 { margin-top: 36px; }
.contact-carte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border-radius: var(--rayon); padding: 30px 20px; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.contact-carte:hover { border-color: var(--cyan); transform: translateY(-2px); }
.contact-carte b { color: var(--bleu); font-size: 18px; }
.contact-carte span { color: var(--gris); }
.ic { width: 54px; height: 54px; border-radius: 50%; background: #e8efff; color: var(--bleu) !important; display: grid; place-items: center; font-size: 24px; }
.ic.wa { background: #e3f8ea; color: #128c4a !important; }
.siege { text-align: center; color: var(--gris); margin-top: 30px; }

/* Pied */
.pied { background: var(--bleu-fonce); color: #c9d6f0; padding: 32px 0 20px; font-size: 14.5px; }
.pied-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pied strong { color: #fff; }
.pied a { color: #fff; }
.pied-liens { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.marque-note { font-size: 12.5px; opacity: .7; margin-top: 18px; }

/* WhatsApp flottant */
.wa-flottant { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 60; }

/* Mentions légales */
.page-texte { padding: 56px 0 76px; max-width: 820px; }
.page-texte h1 { color: var(--bleu-fonce); }
.page-texte h2 { color: var(--bleu); font-size: 21px; margin-top: 34px; }

/* Responsive */
@media (max-width: 980px) {
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .pros-in { grid-template-columns: 1fr; }
  .hero-visuel { height: 250px; max-width: 420px; }
  .boite { width: 120px; height: 150px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre); }
  .menu.ouvert { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--bord); }
  .menu a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .grille-3, .grille-4 { grid-template-columns: 1fr; }
  .apropos-in { grid-template-columns: 1fr; text-align: center; }
  .apropos img { margin: 0 auto; width: 130px; }
  .titre.gauche { text-align: center; }
  .titre.gauche::after { margin-left: auto; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 50px; }
  .hero-visuel { height: 210px; }
  .boite { width: 100px; height: 128px; padding: 12px; }
  .boite span { font-size: 16px; }
  .marque span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ───────── Site multi-pages ───────── */
.menu a[aria-current="page"] { color: var(--rose); }
.menu a[aria-current="page"]::after { content: ''; display: block; height: 3px; background: var(--rose); border-radius: 3px; margin-top: 3px; }
.fond-doux { background: var(--fond-doux); }
.centre { text-align: center; }
.marge-haut { margin-top: 34px; }
.etroit { max-width: 860px; }
.petit { font-size: 14px; color: var(--gris); }

.fil { font-size: 14px; color: var(--gris); padding-top: 14px; padding-bottom: 0; position: relative; z-index: 2; }
.fil a { color: var(--gris); }
.entete-page { background: linear-gradient(135deg, #eef4ff 0%, #e6f7fd 60%, #fdf0f5 100%); padding: 34px 0 44px; margin-top: -38px; padding-top: 64px; }
.entete-page h1 { font-size: clamp(30px, 4vw, 44px); color: var(--bleu-fonce); font-weight: 800; margin-bottom: 8px; }
.entete-page p { font-size: 19px; color: var(--gris); max-width: 720px; margin: 0; }

.tuile { display: block; background: #fff; border-radius: var(--rayon); padding: 26px 24px 22px; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); position: relative; overflow: hidden; transition: transform .15s; }
.tuile:hover { transform: translateY(-3px); }
.tuile-bande { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.tuile h3 { color: var(--bleu); font-size: 21px; }
.tuile p { color: var(--gris); margin: 0 0 14px; }
.bleu.tuile-bande, .gamme-entete.bleu { background: var(--bleu); }
.rose.tuile-bande, .gamme-entete.rose { background: var(--rose); }
.vert.tuile-bande, .gamme-entete.vert { background: #1a8f5a; }
.gamme-entete.cyan { background: #0785b8; }
.lien-fleche { color: var(--rose); font-weight: 700; }
.lien-fleche::after { content: ' →'; }

.ancres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.ancres a { text-decoration: none; font-weight: 700; padding: 9px 18px; border-radius: 40px; background: var(--fond-doux); color: var(--bleu); border: 1px solid var(--bord); }
.ancres a:hover { background: var(--bleu); color: #fff; }

.bloc-age { margin-bottom: 46px; }
.age { background: var(--fond-doux); border-radius: var(--rayon); padding: 22px; }
.age b { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 22px; margin-right: 10px; vertical-align: middle; }
.age span { font-weight: 800; color: var(--bleu-fonce); font-size: 19px; vertical-align: middle; }
.age p { margin: 12px 0 0; color: var(--gris); font-size: 15.5px; }

.gamme-detail { margin-bottom: 38px; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: #fff; scroll-margin-top: 90px; }
.gamme-entete { color: #fff; padding: 20px 24px; }
.gamme-entete h2 { margin: 0 0 2px; font-size: 24px; }
.gamme-entete p { margin: 0; opacity: .92; }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--gris); padding: 14px 24px; border-bottom: 2px solid var(--bord); }
.tableau td { padding: 14px 24px; border-bottom: 1px solid var(--bord); }
.tableau td:first-child { font-weight: 700; color: var(--bleu-fonce); }
.tableau tr:last-child td { border-bottom: 0; }
.alerte-texte { margin: 0; padding: 14px 24px; background: #fff3f7; color: var(--rose); font-weight: 600; font-size: 15px; }
.gamme-detail .cereales { padding: 22px 24px 4px; }
.gamme-detail .legende { padding: 0 24px 20px; }

.encadre { background: var(--fond-doux); border-left: 5px solid var(--rose); border-radius: var(--rayon); padding: 26px 28px; }
.encadre h2 { color: var(--bleu-fonce); font-size: 22px; }
.encadre p { color: var(--gris); }
.encadre .actions { margin-top: 18px; }

.magasin { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 26px; border-top: 5px solid var(--bleu); display: flex; flex-direction: column; }
.magasin-tete h2 { font-size: 22px; color: var(--bleu-fonce); margin: 8px 0 4px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--rose); background: #fdeaf1; padding: 4px 10px; border-radius: 20px; }
.magasin-lieu { color: var(--gris); margin: 0 0 14px; }
.infos { list-style: none; padding: 0; margin: 0 0 18px; }
.infos li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--bord); }
.infos a { font-weight: 700; text-decoration: none; }
.lien-carte { margin-top: auto; font-weight: 700; color: var(--rose); text-decoration: none; }
.lien-carte::before { content: '📍 '; }
.carte-plan { margin-top: 64px; }
.carte-plan iframe, .plan { width: 100%; height: 360px; border: 0; border-radius: var(--rayon); box-shadow: var(--ombre); }

.etapes { list-style: none; counter-reset: e; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.etapes li { counter-increment: e; background: #fff; border-radius: var(--rayon); padding: 26px 22px; box-shadow: var(--ombre); position: relative; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 800; margin-bottom: 14px; }
.etapes b { display: block; color: var(--bleu); font-size: 18px; margin-bottom: 6px; }
.etapes span { color: var(--gris); font-size: 15.5px; }

.faq { max-width: 820px; margin: 30px auto 0; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--bleu-fonce); padding: 18px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--rose); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--gris); }
.pros .btn-blanc + .lien-blanc { margin-top: 14px; }

.conseil { margin-bottom: 34px; }
.conseil h2 { color: var(--bleu-fonce); font-size: 24px; }
.coches.sombre li { font-weight: 400; color: var(--texte); }

.valeurs { display: grid; gap: 18px; margin-top: 30px; }
.valeurs div { background: var(--fond-doux); border-radius: var(--rayon); padding: 20px 24px; border-left: 5px solid var(--bleu); }
.valeurs b { color: var(--bleu); font-size: 19px; }
.valeurs p { margin: 6px 0 0; color: var(--gris); }

.contact-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; align-items: stretch; }
.contact-bas .plan { height: 100%; min-height: 340px; }

/* Pied de page enrichi */
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.pied h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: 6px 0; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.marque-pied { color: #fff; margin-bottom: 10px; }
.marque-pied img { background: #fff; border-radius: 8px; }
.pied-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; }

@media (max-width: 980px) {
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .etapes, .contact-bas, .pied-grille { grid-template-columns: 1fr; }
  .tableau th, .tableau td { padding: 12px 14px; font-size: 15px; }
  .entete-page p { font-size: 17px; }
  .menu a[aria-current="page"]::after { display: none; }
}
