/* =========================================================
   HAMDALAHI FRUIT IMPORT EXPORT — Site vitrine
   Charte tirée du logo : vert du globe, or de la vague
   ========================================================= */
:root {
  --foret: #09411f;
  --foret-2: #0d5a2b;
  --feuille: #2fa33f;
  --menthe: #eef7ee;
  --or: #f2a01e;
  --or-2: #e07f06;
  --or-pale: #fff4df;
  --encre: #10241a;
  --texte: #44554b;
  --doux: #7b8a81;
  --trait: #e3ebe3;
  --rayon: 20px;
  --ombre: 0 24px 50px -28px rgba(9, 65, 31, .45);
  --titre: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --corps: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--corps); color: var(--texte); background: #fff; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.cadre { width: min(1220px, 100% - 44px); margin-inline: auto; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bloc { padding: 100px 0; }
.sur-titre { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--titre); letter-spacing: .14em; text-transform: uppercase; color: #ffd27f; margin-bottom: 16px; }
.sur-titre svg { width: 16px; height: 16px; }
.sur-titre.vert { color: var(--or-2); }
.sous-titre { font-size: 18px; margin: 14px 0 0; max-width: 620px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 14px; font: 600 15.5px var(--titre); border: 2px solid transparent; cursor: pointer; transition: transform .18s, background .18s, color .18s, box-shadow .18s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.btn-or { background: linear-gradient(135deg, var(--or), var(--or-2)); color: #fff; box-shadow: 0 14px 26px -12px rgba(224, 127, 6, .75); }
.btn-vert { background: var(--foret); color: #fff; margin-top: 24px; }
.btn-vert:hover { background: var(--foret-2); }
.btn-contour { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-contour:hover { background: #fff; color: var(--foret); }
.btn.petit { height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.entete.collee { border-color: var(--trait); box-shadow: 0 10px 30px -22px rgba(9, 65, 31, .5); }
.entete .cadre { display: flex; align-items: center; gap: 26px; height: 80px; }
.marque { display: flex; align-items: center; gap: 12px; flex: none; }
.marque img { width: 58px; height: 58px; object-fit: contain; }
.marque b { display: block; font: 800 19px/1 var(--titre); color: var(--foret); letter-spacing: -.01em; }
.marque small { display: block; font-size: 11.5px; font-weight: 600; color: var(--or-2); margin-top: 4px; letter-spacing: .03em; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--encre); transition: background .15s, color .15s; }
.menu a:hover, .menu a.actif { background: var(--menthe); color: var(--foret); }
.menu-tel { display: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--foret); color: #fff; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* ---------- Ouverture ---------- */
.ouverture { position: relative; background: radial-gradient(1100px 620px at 88% 10%, #1b7f3a 0%, transparent 62%), linear-gradient(160deg, var(--foret-2), var(--foret) 60%, #062e16); color: #e6f2e8; padding: 66px 0 170px; overflow: hidden; }
.ouverture-grille { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.ouverture h1 { color: #fff; font-size: clamp(38px, 5.2vw, 66px); font-weight: 800; line-height: 1.06; margin-bottom: 22px; }
.ouverture h1 .or { color: var(--or); }
.chapo { font-size: 19px; max-width: 560px; color: #d6e8da; margin-bottom: 32px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.medaillon { position: relative; width: min(470px, 100%); aspect-ratio: 1; margin-left: auto; }
.anneau { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(247, 170, 44, .55); animation: tourne 80s linear infinite; }
.disque { position: absolute; inset: 11%; border-radius: 50%; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); overflow: hidden; display: grid; place-items: center; }
.disque img { width: 92%; }
.pastille { position: absolute; width: 19%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); overflow: hidden; display: grid; place-items: center; animation: flotte 6s ease-in-out infinite; }
.pastille img { width: 86%; }
.p1 { left: 41%; top: -4%; animation-delay: -1s; }
.p2 { right: -2%; top: 18%; animation-delay: -2s; }
.p3 { right: -2%; bottom: 18%; animation-delay: -3s; }
.p4 { left: 41%; bottom: -4%; animation-delay: -4s; }
.p5 { left: -2%; bottom: 18%; animation-delay: -5s; }
.p6 { left: -2%; top: 18%; animation-delay: -.5s; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.vague { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; }

/* ---------- Mosaïque ---------- */
.mosaique { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tuile { border-radius: var(--rayon); overflow: hidden; }
.tuile-texte { grid-column: span 7; grid-row: span 2; background: var(--menthe); padding: 46px; }
.tuile-texte h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 20px; }
.corps { font-size: 17.5px; }
.tuile-photo { grid-column: span 5; grid-row: span 2; min-height: 340px; position: relative; }
.tuile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile-chiffre { grid-column: span 3; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.tuile-chiffre strong { font: 800 clamp(36px, 3.6vw, 48px)/1 var(--titre); letter-spacing: -.03em; }
.tuile-chiffre span { font-weight: 500; margin-top: 8px; font-size: 15px; line-height: 1.35; }
.foncee { background: var(--foret); color: #d9ebdd; }
.foncee strong { color: #fff; }
.doree { background: linear-gradient(135deg, var(--or), var(--or-2)); color: #fff; }
.claire { background: var(--or-pale); color: #7a4c0a; }
.claire strong { color: var(--or-2); }
.tuile-lieu { grid-column: span 3; border: 1.5px solid var(--trait); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 170px; }
.tuile-lieu svg { width: 28px; height: 28px; color: var(--feuille); }
.tuile-lieu b { display: block; font: 600 16px/1.3 var(--titre); color: var(--encre); }
.tuile-lieu span { font-size: 14.5px; line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- Catalogue ---------- */
.catalogue { background: var(--menthe); }
.titre-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.recherche { position: relative; flex: 0 1 340px; display: block; }
.recherche svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--doux); }
.recherche input { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 1.5px solid var(--trait); border-radius: 14px; font: 500 16px var(--corps); color: var(--encre); background: #fff; }
.recherche input:focus { outline: none; border-color: var(--feuille); }
.rayons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.rayons button { border: 1.5px solid var(--trait); background: #fff; color: var(--encre); border-radius: 10px; padding: 9px 16px; font: 600 14.5px var(--corps); cursor: pointer; transition: all .15s; }
.rayons button:hover { border-color: var(--feuille); }
.rayons button.actif { background: var(--foret); border-color: var(--foret); color: #fff; }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.produit { background: #fff; border-radius: 16px; padding: 14px 14px 12px; display: flex; flex-direction: column; border: 1.5px solid transparent; transition: border-color .15s, box-shadow .2s, transform .2s; }
.produit:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.produit.choisi { border-color: var(--feuille); }
.produit-photo { height: 126px; display: grid; place-items: center; margin-bottom: 10px; }
.produit-photo img { width: 126px; height: 126px; object-fit: contain; }
.produit h3 { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.produit p { font-size: 13px; color: var(--doux); margin: 3px 0 12px; line-height: 1.35; }
.dispo { display: inline-block; color: var(--feuille); font-weight: 700; }
.ajouter { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border-radius: 10px; border: 1.5px solid var(--trait); background: #fff; color: var(--foret); font: 600 13.5px var(--corps); cursor: pointer; transition: all .15s; width: 100%; }
.ajouter svg { width: 15px; height: 15px; display: block; }
.ajouter:hover { border-color: var(--feuille); background: var(--menthe); }
.ajouter .i-ok { display: none; }
.ajouter[aria-pressed="true"] { background: var(--feuille); border-color: var(--feuille); color: #fff; }
.ajouter[aria-pressed="true"] .i-ok { display: block; }
.ajouter[aria-pressed="true"] .i-plus { display: none; }
.aucun { text-align: center; padding: 40px 20px; }

/* ---------- Bandeau ---------- */
.bandeau { position: relative; overflow: hidden; }
.bandeau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 46, 22, .92) 0%, rgba(6, 46, 22, .75) 50%, rgba(6, 46, 22, .15) 100%); }
.bandeau .cadre { position: relative; z-index: 1; padding: 74px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.bandeau p { font: 700 clamp(24px, 3vw, 36px)/1.2 var(--titre); color: #fff; max-width: 620px; margin: 0; letter-spacing: -.02em; }

/* ---------- Parcours ---------- */
.titre-centre { text-align: center; margin-bottom: 54px; }
.parcours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: etape; }
.parcours::before { content: ''; position: absolute; left: 8%; right: 8%; top: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--or) 0 10px, transparent 10px 18px); }
.parcours li { position: relative; text-align: center; padding: 0 10px; counter-increment: etape; }
.pict { position: relative; width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; background: var(--foret); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px #fff; }
.pict svg { width: 30px; height: 30px; }
.pict::after { content: counter(etape); position: absolute; right: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--or); color: #fff; font: 700 13px/26px var(--titre); }
.parcours h3 { margin-bottom: 8px; font-size: 19px; }
.parcours p { font-size: 15.5px; margin: 0; }

/* ---------- Clients ---------- */
.clients { padding-top: 0; }
.clients-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.liste-clients { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--trait); }
.liste-clients li { padding: 20px 6px; border-bottom: 1.5px solid var(--trait); display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: baseline; transition: padding .2s, background .2s; }
.liste-clients li:hover { padding-left: 16px; background: var(--menthe); }
.liste-clients b { font: 600 17px var(--titre); color: var(--foret); }
.liste-clients span { font-size: 16px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--foret-2), var(--foret)); padding: 90px 0; color: #d9ebdd; }
.contact-grille { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: start; }
.contact h2 { color: #fff; margin-bottom: 28px; }
.contact-infos ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.contact-infos li { display: flex; gap: 14px; align-items: flex-start; }
.contact-infos li > svg { width: 22px; height: 22px; color: var(--or); flex: none; margin-top: 3px; }
.contact-infos small { display: block; font-size: 13px; color: #a6c6ae; }
.contact-infos b, .contact-infos a { display: block; color: #fff; font-weight: 600; font-size: 17px; }
.contact-infos a:hover { color: #ffd27f; }
.plan { border-radius: 16px; overflow: hidden; height: 240px; }
.plan iframe { width: 100%; height: 100%; border: 0; display: block; }
.formulaire { background: #fff; color: var(--texte); border-radius: 22px; padding: 36px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.formulaire h3 { font-size: 24px; margin-bottom: 20px; }
.selection { background: var(--menthe); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.selection-titre { display: block; font-size: 13px; font-weight: 700; color: var(--foret); margin-bottom: 8px; }
.selection-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: 3px 6px 3px 10px; font-size: 13.5px; font-weight: 600; color: var(--encre); }
.etiquette button { border: 0; background: none; cursor: pointer; color: var(--doux); padding: 2px; line-height: 0; }
.etiquette svg { width: 14px; height: 14px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.champs label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--encre); }
.champs .large { grid-column: 1 / -1; }
.champs input, .champs textarea { width: 100%; font: 500 16px var(--corps); color: var(--encre); padding: 13px 14px; border: 1.5px solid var(--trait); border-radius: 12px; background: #fff; }
.champs input:focus, .champs textarea:focus { outline: none; border-color: var(--feuille); }
.champs textarea { resize: vertical; min-height: 110px; }
.pot { position: absolute; left: -9999px; }
.large-btn { width: 100%; margin-top: 18px; }
.retour { margin: 14px 0 0; font-weight: 600; font-size: 15px; display: none; padding: 12px 14px; border-radius: 12px; }
.retour.ok { display: block; background: var(--menthe); color: var(--foret); }
.retour.erreur { display: block; background: #fde8e8; color: #8a1c1c; }

/* ---------- Pied ---------- */
.pied { padding: 50px 0 26px; background: #fff; }
.pied-grille { display: flex; align-items: center; gap: 22px 30px; flex-wrap: wrap; }
.pied-logo img { width: 92px; height: 92px; object-fit: contain; }
.pied-grille > p { margin: 0; flex: 1 1 260px; font-size: 15.5px; }
.pied nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-weight: 600; font-size: 15px; color: var(--encre); }
.pied nav a:hover { color: var(--or-2); }
.pied-bas { flex: 1 0 100%; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1.5px solid var(--trait); padding-top: 18px; font-size: 14px; color: var(--doux); }
.espace { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; }
.espace:hover { color: var(--foret); }
.espace svg { width: 15px; height: 15px; }

/* ---------- Éléments flottants ---------- */
.barre { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; background: var(--foret); color: #fff; border-radius: 16px; padding: 10px 10px 10px 22px; display: flex; align-items: center; gap: 20px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); white-space: nowrap; }
.barre[hidden] { display: none; }
.barre b { font-family: var(--titre); color: var(--or); font-size: 18px; }
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(37, 211, 102, .8); transition: transform .18s; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; }

/* ---------- Apparition (ne masque rien sans JavaScript) ---------- */
.js .apparait { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .apparait.vu, .tout-voir .apparait { opacity: 1; transform: none; }
.apparait.d1 { transition-delay: .08s; } .apparait.d2 { transition-delay: .16s; } .apparait.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
}

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1080px) {
  .entete-cta { display: none; }
  .tuile-chiffre, .tuile-lieu { grid-column: span 6; }
  .clients-grille, .contact-grille { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .menu { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 22px 24px; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .25); transform: translateY(-130%); transition: transform .3s ease; gap: 2px; z-index: -1; }
  .menu.ouvert { transform: none; }
  .menu a { padding: 13px 14px; font-size: 17px; }
  .menu-tel { display: flex; align-items: center; gap: 10px; color: var(--foret); }
  .menu-tel svg { width: 18px; height: 18px; }
  .ouverture { padding: 46px 0 120px; }
  .ouverture-grille { grid-template-columns: 1fr; gap: 44px; }
  .medaillon { margin: 0 auto; width: min(400px, 88%); }
  .tuile-texte, .tuile-photo { grid-column: span 12; }
  .tuile-texte { padding: 32px 26px; }
  .tuile-photo { min-height: 220px; }
  .parcours { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .parcours::before { display: none; }
  .bloc { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cadre { width: calc(100% - 32px); }
  .entete .cadre { height: 72px; gap: 12px; }
  .menu { top: 72px; }
  .marque img { width: 48px; height: 48px; }
  .marque b { font-size: 17px; }
  .ouverture h1 { font-size: 36px; }
  .chapo { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .vague { height: 70px; }
  .tuile-chiffre, .tuile-lieu { grid-column: span 12; min-height: 0; }
  .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .produit-photo { height: 106px; }
  .produit-photo img { width: 106px; height: 106px; }
  .parcours { grid-template-columns: 1fr; }
  .liste-clients li { grid-template-columns: 1fr; gap: 2px; }
  .formulaire { padding: 24px 18px; }
  .champs { grid-template-columns: 1fr; }
  .recherche { flex: 1 1 100%; }
  .barre { left: 14px; right: 88px; transform: none; padding: 8px 8px 8px 14px; gap: 10px; font-size: 13.5px; justify-content: space-between; white-space: normal; }
  .barre .btn { padding: 0 12px; height: 42px; font-size: 13px; gap: 6px; }
  .barre .btn svg { display: none; }
}
