/*
Theme Name: Direct Ivoire
Theme URI: https://directivoire.com/
Author: AFRICA VIRTUAL group
Description: Site principal Direct Ivoire : la plateforme qui présente toutes les applications développées par AFRICA VIRTUAL group (DIRECT IMMO et les suivantes). Mini charte graphique Direct Ivoire : rouge #F70000, noir, anthracite #1F2328, rouge foncé #7A1515, blanc cassé #F6F1F1, Encode Sans (Compressed / Condensed). Compatible WooCommerce.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: direct-ivoire
*/

/* ==========================================================
   1. Jetons de la mini charte Direct Ivoire
   ========================================================== */
:root {
  /* Couleurs de marque */
  --rouge: #F70000;          /* Principale : logo, boutons, grands titres */
  --rouge-texte: #C70000;    /* Même rouge, assombri pour le petit texte (contraste AA) */
  --noir: #000000;           /* Secondaire */
  --anthracite: #1F2328;     /* Accent : texte, fonds sombres */
  --grenat: #7A1515;         /* Neutre foncé : survol, bandeau fort */
  --rouge-actif: #570E0E;    /* bouton enfoncé */
  --creme: #F6F1F1;          /* Neutre clair : fond de page */
  --blanc: #FFFFFF;
  /* Dérivés neutres */
  --ardoise: #5C6066;        /* texte secondaire */
  --bord: #E4DCDC;
  --desactive-fond: #E4DCDC;
  --desactive-texte: #8C9098;
  /* Statuts fonctionnels (repris de la charte DIRECT IMMO) */
  --ok: #1E8E5A;      --ok-fond: #E3F3EA;
  --attente: #D99A06; --attente-fond: #FBF1D6;
  --erreur: #9B1C1C;  --erreur-fond: #F8E3E3;
  --info: #2F6FD6;    --info-fond: #E4EDFB;

  /* Encode Sans Compressed si installée ; sinon Encode Sans Condensed (Google Fonts), la plus proche disponible */
  --police: "Encode Sans Compressed", "Encode Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --rayon: 8px;
  --rayon-carte: 16px;
  --largeur: 1180px;
}

/* ==========================================================
   2. Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--anthracite);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge-texte); text-decoration: none; font-weight: 600; }
a:hover { color: var(--grenat); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--police); color: var(--noir); margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; text-transform: uppercase; }
h3 { font-weight: 700; font-size: 1.6rem; line-height: 1.15; }
h4 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .petit { font-size: 14px; color: var(--ardoise); }

.container { width: min(var(--largeur), 92%); margin-inline: auto; }
.section { padding: 88px 0; }
.section--blanc { background: var(--blanc); }
.section--grenat { background: var(--grenat); color: #fff; }
.section--grenat h2, .section--grenat h3 { color: #fff; }
.section--sombre { background: var(--anthracite); color: var(--creme); }
.section--sombre h2, .section--sombre h3 { color: #fff; }
.section-entete { max-width: 760px; margin-bottom: 48px; }
.section-entete p { color: var(--ardoise); font-size: 1.15rem; }
.section--grenat .section-entete p, .section--grenat p { color: #F3DCDC; }
.surtitre {
  display: inline-block; font-weight: 800; font-size: 1rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rouge-texte); margin-bottom: 12px;
}
.section--grenat .surtitre { color: #fff; }
.icon { flex: none; }

/* ==========================================================
   3. Boutons (4 états + secondaire + clair)
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--police); font-weight: 700; font-size: 18px; letter-spacing: .02em;
  padding: 12px 26px; border-radius: var(--rayon); border: 2px solid var(--rouge);
  background: var(--rouge); color: #fff; cursor: pointer; transition: background .15s, box-shadow .15s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--grenat); border-color: var(--grenat); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(122, 21, 21, .30); }
.btn:active { background: var(--rouge-actif); border-color: var(--rouge-actif); box-shadow: none; }
.btn[disabled], .btn.is-disabled { background: var(--desactive-fond); border-color: var(--desactive-fond); color: var(--desactive-texte); pointer-events: none; box-shadow: none; }
.btn--secondaire { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn--secondaire:hover { background: var(--noir); border-color: var(--noir); color: #fff; box-shadow: none; }
.btn--clair { background: #fff; color: var(--noir); border-color: #fff; }
.btn--clair:hover { background: var(--creme); border-color: var(--creme); color: var(--noir); box-shadow: none; }
.btn--contour-clair { background: transparent; color: #fff; border-color: #fff; }
.btn--contour-clair:hover { background: #fff; color: var(--noir); box-shadow: none; }
.btn--bloc { width: 100%; }
.lien { color: var(--rouge-texte); font-weight: 700; }

/* ==========================================================
   4. Statuts et étiquettes
   ========================================================== */
.statut {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700;
  font-size: 1rem; padding: 4px 14px; border-radius: 999px; line-height: 1.2;
}
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.statut--ok { color: var(--ok); background: var(--ok-fond); }
.statut--attente { color: #8A6200; background: var(--attente-fond); }
.statut--retard { color: var(--erreur); background: var(--erreur-fond); }
.statut--info { color: var(--info); background: var(--info-fond); }
.etiquette {
  display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--creme); color: var(--anthracite);
}

/* ==========================================================
   5. En-tête
   ========================================================== */
.site-header { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 62px; width: auto; }
.site-logo .custom-logo-link img { height: auto; max-height: 62px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a { color: var(--anthracite); font-weight: 600; font-size: 1.1rem; padding: 6px 0; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--rouge-texte); border-bottom-color: var(--rouge); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--noir); border-radius: var(--rayon); padding: 8px 10px; cursor: pointer; color: var(--noir); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 9px 20px; font-size: 17px; }

/* ==========================================================
   6. Accueil
   ========================================================== */
.hero { padding: 80px 0 88px; }
.hero-grille { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hero-texte .chapeau { font-size: 1.25rem; color: var(--ardoise); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 15px; color: var(--ardoise); margin-top: 16px; }

.app-vedette {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 28px;
  box-shadow: 0 18px 50px rgba(31, 35, 40, .10);
}
.app-vedette .etiquette { background: var(--noir); color: #fff; }
.app-vedette img { width: 100%; max-height: 220px; object-fit: contain; margin: 18px 0 14px; }
.app-vedette h3 { margin-bottom: .3em; }
.app-vedette p { color: var(--ardoise); font-size: 1.02rem; }
.app-vedette .liens { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* Grilles et cartes */
.grille { display: grid; gap: 24px; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: var(--creme); border-radius: var(--rayon-carte); padding: 30px 28px; }
.section:not(.section--blanc) .carte { background: var(--blanc); border: 1px solid var(--bord); }
.carte .pastille {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--noir); margin-bottom: 18px; border: 1px solid var(--bord);
}
.section:not(.section--blanc) .carte .pastille { background: var(--creme); border-color: transparent; }
.carte h3 { margin-bottom: .35em; }
.carte p { color: var(--ardoise); margin: 0; font-size: 1.02rem; }
.carte .etiquette { margin-left: 8px; vertical-align: middle; }
.profil { border-top: 4px solid var(--rouge); }

/* Cartes application (catalogue) */
.app-card { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-carte); overflow: hidden; display: flex; flex-direction: column; }
.app-card__thumb { aspect-ratio: 16/10; background: var(--creme); display: flex; align-items: center; justify-content: center; font-size: 3rem; border-bottom: 1px solid var(--bord); }
.app-card__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.app-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.app-card__body h3 { margin: 10px 0 6px; }
.app-card__body h3 a { color: var(--noir); font-weight: inherit; }
.app-card__body h3 a:hover { color: var(--rouge-texte); text-decoration: none; }
.app-card__body p { color: var(--ardoise); font-size: 1.02rem; }
.app-card__meta { font-size: 14px; color: var(--ardoise); margin-bottom: 8px; }
.app-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; }
.prix { font-weight: 800; font-size: 1.35rem; color: var(--noir); }
.app-card--bientot { background: transparent; border: 2px dashed #CFC4C4; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; min-height: 280px; }
.app-card--bientot h3 { margin: 10px 0 6px; }
.app-card--bientot p { color: var(--ardoise); margin: 0; }

/* Mise en avant DIRECT IMMO */
.vitrine { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.vitrine-logo { height: 120px; width: auto; margin-bottom: 20px; }
.vitrine .chapeau { color: var(--ardoise); font-size: 1.15rem; }
.vitrine-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.capture { background: var(--creme); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 10px; box-shadow: 0 18px 50px rgba(31, 35, 40, .10); }
.capture img { width: 100%; border-radius: 10px; }
.statuts-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 0 0; color: var(--ardoise); font-size: 1rem; }
.sous-titre { margin: 64px 0 28px; }

/* Bandeau essai gratuit */
.bandeau { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.bandeau ul { list-style: none; padding: 0; margin: 0; }
.bandeau li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; }
.bandeau li:last-child { border-bottom: 0; }
.bandeau li .icon { margin-top: 3px; }

/* À propos */
.apropos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.apropos p { color: var(--ardoise); font-size: 1.15rem; }
.contact-liste { list-style: none; padding: 0; margin: 0; }
.contact-liste li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bord); }
.contact-liste li:last-child { border-bottom: 0; }
.contact-liste .icon { color: var(--noir); }

/* ==========================================================
   7. Pages intérieures
   ========================================================== */
.page-entete { background: var(--blanc); border-bottom: 1px solid var(--bord); padding: 56px 0 44px; }
.page-entete p { color: var(--ardoise); font-size: 1.15rem; max-width: 640px; margin-bottom: 0; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.filtres a { font-weight: 700; font-size: 1rem; padding: 5px 16px; border-radius: 999px; background: var(--creme); color: var(--noir); border: 1px solid var(--bord); }
.filtres a:hover { background: var(--noir); color: #fff; text-decoration: none; border-color: var(--noir); }
.contenu { padding: 56px 0 80px; }
.entry-content { max-width: 780px; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.9rem; }
.entry-content ul { padding-left: 1.2em; }
.entry-content img { border-radius: 12px; }

.fiche { display: grid; grid-template-columns: 1.5fr .8fr; gap: 56px; align-items: start; }
.fiche-lateral { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 28px; position: sticky; top: 24px; }
.fiche-lateral dl { margin: 18px 0 22px; }
.fiche-lateral dt { font-weight: 800; margin-top: 12px; }
.fiche-lateral dd { margin: 0; color: var(--ardoise); }
.fiche-lateral .btn + .btn { margin-top: 10px; }
.fiche-lateral .lien-simple { display: block; margin-top: 14px; text-align: center; }
.fiche-visuel { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon-carte); padding: 24px; margin-bottom: 28px; }
.fiche-visuel img { margin-inline: auto; max-height: 340px; width: auto; }

.pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; color: var(--noir); }
.pagination .current { background: var(--rouge); color: #fff; border-color: var(--rouge); }

/* Formulaires */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  width: 100%; font-family: var(--police); font-size: 18px; color: var(--anthracite); background: #fff;
  border: 1px solid #D6CCCC; border-radius: var(--rayon); padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border: 2px solid var(--rouge); padding: 11px 13px; }
label { font-size: 16px; font-weight: 600; }

/* ==========================================================
   8. Pied de page
   ========================================================== */
.site-footer { background: var(--anthracite); color: #CBC6C6; padding: 64px 0 28px; }
.site-footer a { color: #F1ECEC; font-weight: 400; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grille img { height: 74px; width: auto; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.copyright { border-top: 1px solid #3A4047; margin-top: 44px; padding-top: 22px; font-size: 15px; color: #A39E9E; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ==========================================================
   9. Responsive
   ========================================================== */
@media (max-width: 980px) {
  .grille--3, .grille--4 { grid-template-columns: 1fr 1fr; }
  .hero-grille, .vitrine, .bandeau, .apropos, .fiche { grid-template-columns: 1fr; gap: 36px; }
  .footer-grille { grid-template-columns: 1fr 1fr; }
  .fiche-lateral { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .site-logo img { height: 46px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bord); padding: 14px 4%; z-index: 20; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .site-header { position: relative; }
  .header-actions .btn { display: none; }
  .grille--2, .grille--3, .grille--4, .footer-grille { grid-template-columns: 1fr; }
  .vitrine-logo { height: 90px; }
}
