/* ============================================================
   EXTENSION.GP — Feuille de style principale
   Charte graphique : vert #0E6B39 / rouge #C8102E / jaune #FFC72C
   ============================================================ */

/* ---------- Polices auto-hébergées (v1.0.3) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    --vert: #0e6b39;
    --vert-fonce: #0a5027;
    --vert-clair: #e8f5ee;
    --rouge: #c8102e;
    --rouge-fonce: #a50d26;
    --jaune: #ffc72c;
    --noir: #171717;
    --gris: #5f6a63;
    --gris-clair: #f2f5f3;
    --blanc: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(0, 0, 0, .08);
    --font: 'Instrument Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-titres: 'Bricolage Grotesque', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--noir); background: var(--blanc); line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--vert); }
h1, h2, h3 { line-height: 1.15; }
h1, h2, h3, h4,
.section-titre, .page-titre, .cta-band h2, .search-box h2,
.tarif-ext, .tarif-prix, .stat-chiffre, .resultat-domaine { font-family: var(--font-titres); }
.tarif-prix small, .stat-label { font-family: var(--font); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--vert-fonce); color: #d8ecdf; font-size: 13px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 4px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--blanc); box-shadow: 0 2px 12px rgba(0,0,0,.07); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.logo-img { height: 62px; width: auto; display: block; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--noir); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 2px; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--rouge); }
.main-nav a.active { color: var(--rouge); border-bottom-color: var(--rouge); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; text-decoration: none; color: var(--noir); display: inline-flex; align-items: center; transition: color .15s; }
.cart-link:hover { color: var(--rouge); }
.cart-link svg { display: block; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 3px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--vert); margin: 5px 0; border-radius: 2px; }

/* ---------- Boutons ---------- */
.btn { display: inline-block; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; text-align: center; transition: background .15s ease, transform .1s ease; font-family: var(--font); }
.btn:active { transform: scale(.98); }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: var(--rouge-fonce); }
.btn-vert { background: var(--vert); color: #fff; }
.btn-vert:hover { background: var(--vert-fonce); }
.btn-jaune { background: var(--jaune); color: var(--noir); }
.btn-outline { background: transparent; border: 2px solid var(--vert); color: var(--vert); }
.btn-outline:hover { background: var(--vert-clair); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ---------- Alertes ---------- */
.alert { padding: 13px 18px; border-radius: 10px; margin: 14px 0; font-size: 14.5px; border: 1px solid transparent; }
.alert-success { background: var(--vert-clair); color: var(--vert-fonce); border-color: #bfe3cf; }
.alert-danger { background: #fdecea; color: var(--rouge-fonce); border-color: #f5c6cb; }
.alert-warning { background: #fff8e1; color: #7a5c00; border-color: #ffe08a; }
.alert-info { background: #e7f1fb; color: #114e86; border-color: #bcd8f2; }

/* ---------- Héro ---------- */
.hero { position: relative; background: linear-gradient(100deg, #fdf0ef 0%, #fbe4e2 45%, #f8d9d6 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 54px 18px 130px; }
.hero h1 { font-size: 52px; margin: 0 0 18px; font-weight: 800; letter-spacing: -1px; }
.hero h1 .ligne3 { display: block; }
.hero h1 .vert { color: var(--vert); }
.hero h1 .rouge { color: var(--rouge); }
.hero-texte { font-size: 18px; color: #2c3831; max-width: 480px; }
.hero-badges { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.hero-badges span { font-weight: 700; font-size: 15px; }
/* Décor : grille de points et cercles doux */
.hero::before { content: ''; position: absolute; left: 28px; top: 64px; width: 84px; height: 84px;
    background-image: radial-gradient(var(--rouge) 2.2px, transparent 2.4px); background-size: 21px 21px; opacity: .35; }
.hero::after { content: ''; position: absolute; left: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(200, 16, 46, .06); }
.hero-inner { position: relative; z-index: 1; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Bloc recherche ---------- */
.search-box { background: var(--vert); border-radius: 18px; padding: 26px 30px; box-shadow: 0 14px 40px rgba(10, 80, 39, .35); color: #fff; margin-top: -95px; position: relative; z-index: 5; }
.search-box h2 { margin: 0 0 14px; font-size: 20px; }
.search-form { display: flex; gap: 12px; }
.search-input-wrap { flex: 1; display: flex; background: #fff; border-radius: 10px; overflow: hidden; align-items: center; }
.search-input-wrap input { flex: 1 1 auto; width: auto; border: 0; padding: 15px 18px; font-size: 16px; outline: none; min-width: 80px; font-family: var(--font); }
.search-input-wrap input:focus { outline: none; border: 0; }
.search-input-wrap select { flex: 0 0 auto; width: auto; border: 0; border-left: 1px solid #e2e2e2; padding: 15px 12px; font-size: 16px; font-weight: 700; background: #fff; outline: none; cursor: pointer; font-family: var(--font); }
.search-form .btn { padding: 15px 34px; font-size: 16px; }
.search-args { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; font-size: 14px; }
.search-args span::before { content: '✔ '; color: var(--jaune); font-weight: 700; }

/* ---------- Cartes ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 46px 0; }
.feature-card { border: 1px solid #e7ebe8; border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.feature-ico { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; color: #fff; }
.feature-ico.i1 { background: var(--vert); }
.feature-ico.i2 { background: var(--rouge); }
.feature-ico.i3 { background: var(--jaune); color: var(--noir); }
.feature-ico.i4 { background: var(--vert); }
.feature-card h3 { margin: 0 0 4px; font-size: 16.5px; }
.feature-card p { margin: 0; font-size: 14px; color: var(--gris); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--gris-clair); }
.section-titre { text-align: center; margin-bottom: 8px; font-size: 34px; }
.section-soustitre { text-align: center; color: var(--gris); max-width: 680px; margin: 0 auto 36px; }
.surtitre { display: block; text-align: center; color: var(--rouge); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 2px; margin-bottom: 8px; }

/* ---------- Grille tarifs ---------- */
.tarifs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.tarif-card { background: #fff; border: 1px solid #e7ebe8; border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.04); position: relative; }
.tarif-card.populaire { border: 2px solid var(--vert); }
.tarif-pop-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--jaune); color: var(--noir); font-size: 12px; font-weight: 800; padding: 3px 14px; border-radius: 20px; }
.tarif-ext { font-size: 26px; font-weight: 800; color: var(--vert); }
.tarif-prix { font-size: 30px; font-weight: 800; margin: 10px 0 2px; }
.tarif-prix small { font-size: 14px; font-weight: 600; color: var(--gris); }
.tarif-detail { font-size: 13px; color: var(--gris); margin-bottom: 16px; }
.tarif-card.indispo { background: #f6f7f6; border-style: dashed; }
.tarif-card.indispo .tarif-ext { color: var(--gris); }
.tarif-indispo-badge { display: inline-block; background: #eceeec; color: var(--gris); font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 20px; margin: 12px 0 10px; }

/* ---------- Résultat de recherche ---------- */
.resultat-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; margin: 34px 0; text-align: center; }
.resultat-domaine { font-size: 30px; font-weight: 800; word-break: break-all; }
.dispo { color: var(--vert); font-weight: 800; font-size: 22px; }
.indispo { color: var(--rouge); font-weight: 800; font-size: 22px; }
.resultat-prix { font-size: 18px; margin: 12px 0 20px; }
.alternatives { margin-top: 30px; text-align: left; }
.alt-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eee; padding: 12px 4px; flex-wrap: wrap; }
.alt-nom { font-weight: 700; font-size: 16px; }
.alt-statut { font-size: 14px; font-weight: 700; }
.alt-statut.ok { color: var(--vert); }
.alt-statut.ko { color: var(--rouge); }
.alt-statut.chargement { color: var(--gris); font-weight: 400; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin: 26px 0; }
.form-card h2, .form-card h3 { color: var(--vert-fonce); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
label .req { color: var(--rouge); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #cdd5cf; border-radius: 9px; font-size: 15px; font-family: var(--font); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert); border-color: var(--vert); }
textarea { min-height: 100px; resize: vertical; }
.form-aide { font-size: 12.5px; color: var(--gris); margin-top: 3px; }
fieldset { border: 1px solid #e2e8e4; border-radius: 10px; padding: 18px; margin: 0 0 22px; }
legend { font-weight: 800; color: var(--vert-fonce); padding: 0 8px; }
.checkbox-ligne { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; margin: 10px 0; }
.checkbox-ligne input { width: auto; margin-top: 3px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.tableau { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
table.tableau th { background: var(--vert); color: #fff; text-align: left; padding: 11px 14px; font-size: 13.5px; }
table.tableau td { padding: 11px 14px; border-bottom: 1px solid #eef1ef; font-size: 14px; }
table.tableau tr:hover td { background: #f7faf8; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-success { background: var(--vert-clair); color: var(--vert-fonce); }
.badge-warning { background: #fff8e1; color: #7a5c00; }
.badge-danger { background: #fdecea; color: var(--rouge-fonce); }
.badge-info { background: #e7f1fb; color: #114e86; }
.badge-secondary { background: #eee; color: #444; }

/* ---------- Témoignages ---------- */
.temoignages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.temoignage-card { margin: 0; background: #fff; border: 1px solid #e7ebe8; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.temoignage-card blockquote { margin: 0 0 18px; font-size: 15.5px; color: #333; font-style: italic; flex: 1; }
.temoignage-card figcaption { display: flex; align-items: center; gap: 12px; }
.temoignage-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.temoignage-initiales { width: 48px; height: 48px; border-radius: 50%; background: var(--vert); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.temoignage-card figcaption strong { display: block; font-size: 14.5px; }
.temoignage-card figcaption small { color: var(--gris); font-size: 12.5px; }

/* ---------- Bande drapeau ---------- */
.flag-stripe { height: 14px; background: linear-gradient(to bottom, var(--vert) 0 33%, #fff 33% 66%, var(--rouge) 66% 100%); position: relative; }
.flag-star { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); color: var(--jaune); font-size: 26px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* ---------- Pied de page (maquette) ---------- */
.site-footer { background: #0c4a26; color: #eaf5ee; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.05fr 1fr; gap: 34px; padding: 52px 18px 44px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.footer-souligne { display: block; width: 46px; height: 4px; background: var(--vert); border-radius: 2px; margin: 0 0 18px; background: #2e9e5b; }
.footer-logo-carte { display: inline-block; background: #fff; border-radius: 14px; padding: 14px 22px; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.footer-logo-carte img { display: block; max-height: 74px; width: auto; }
.footer-baseline { color: #fff; font-weight: 700; font-size: 16.5px; line-height: 1.45; margin: 0 0 10px; }
.footer-gp { color: #58c188; font-weight: 800; }
.footer-adresse { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; margin-top: 16px; }
.footer-picto { background: #2e9e5b; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 15px; }
.site-footer a { display: block; color: #eaf5ee; text-decoration: none; margin: 13px 0; font-size: 15px; }
.site-footer a:hover { color: var(--jaune); }
.footer-chevron { color: #58c188; font-weight: 800; margin-right: 8px; font-size: 16px; }
.site-footer p { font-size: 14px; margin: 6px 0; }
.footer-tel a { display: inline-flex; align-items: center; gap: 12px; font-size: 16.5px; font-weight: 600; margin: 6px 0 18px; }
.footer-tel-rond { background: #2e9e5b; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto; }
.footer-btn-ecrire { display: inline-flex !important; align-items: center; gap: 12px; background: var(--rouge); color: #fff !important; font-weight: 800; font-size: 18px; padding: 16px 34px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.3); transition: background .15s; }
.footer-btn-ecrire:hover { background: var(--rouge-fonce); color: #fff !important; }
.footer-bottom { background: #06331a; padding: 20px 0; font-size: 13.5px; }
.footer-bottom-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-bottom-identite { display: flex; align-items: center; gap: 14px; }
.footer-drapeau { position: relative; display: inline-block; width: 66px; height: 42px; border-radius: 4px; overflow: hidden; flex: 0 0 auto;
    background: linear-gradient(to bottom, #1a7a3e 0 12%, #ffffff 12% 18%, #c8102e 18% 82%, #ffffff 82% 88%, #1a7a3e 88% 100%); }
.footer-drapeau-etoile { position: absolute; left: 8px; top: 50%; transform: translateY(-54%); color: var(--jaune); font-size: 15px; }
.footer-bottom-identite { border-right: 1px solid rgba(255,255,255,.15); padding-right: 24px; }
.footer-bottom-gp { color: #fff; font-size: 21px; font-weight: 800; }
.footer-bottom-slogan { color: #cfe5d7; }
.footer-bottom-copyright { color: #cfe5d7; line-height: 1.6; }
.footer-bottom-confiance { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-securise { display: inline-flex; align-items: center; gap: 8px; color: #eaf5ee; font-weight: 600; margin-right: 6px; }
.footer-cadenas { background: rgba(255,255,255,.12); border: 1px solid #2e9e5b; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.badge-paiement { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; height: 36px; min-width: 62px; padding: 0 12px; font-weight: 800; }
.badge-visa { color: #1a1f71; font-style: italic; letter-spacing: 1px; font-size: 16px; }
.badge-mc { gap: 0; }
.mc-rond { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }
.mc-rouge { background: #eb001b; position: relative; z-index: 1; }
.mc-orange { background: #f79e1b; margin-left: -8px; opacity: .92; }
.badge-paypal { font-size: 15.5px; font-style: italic; }
.pp-bleu { color: #003087; }
.pp-clair { color: #009cde; }
.badge-stripe { color: #635bff; font-size: 16.5px; letter-spacing: .3px; font-weight: 800; }
.footer-drapeau-img { display: block; width: 66px; height: auto; max-height: 46px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--vert) 0%, var(--vert-fonce) 100%); color: #fff; text-align: center; padding: 54px 18px; }
.cta-band h2 { font-size: 32px; margin: 0 0 10px; }
.cta-band p { max-width: 620px; margin: 0 auto 24px; color: #d8ecdf; }

/* ---------- Compte / admin communs ---------- */
.page-titre { font-size: 32px; margin: 30px 0 6px; }
.compte-grid { display: grid; grid-template-columns: 230px 1fr; gap: 26px; margin: 26px 0 50px; align-items: start; }
.compte-menu { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.compte-menu a { display: block; padding: 13px 18px; text-decoration: none; color: var(--noir); font-weight: 600; font-size: 14.5px; border-left: 4px solid transparent; }
.compte-menu a:hover { background: var(--gris-clair); }
.compte-menu a.active { border-left-color: var(--rouge); color: var(--rouge); background: #fdf3f4; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.05); padding: 20px; border-top: 4px solid var(--vert); }
.stat-card.rouge { border-top-color: var(--rouge); }
.stat-card.jaune { border-top-color: var(--jaune); }
.stat-chiffre { font-size: 30px; font-weight: 800; }
.stat-label { font-size: 13px; color: var(--gris); }

/* ---------- Divers ---------- */
.recap-total td { font-weight: 800; font-size: 16px; }
.encart-virement { background: var(--vert-clair); border: 1px solid #bfe3cf; border-radius: 10px; padding: 18px 22px; margin: 18px 0; }
.faq-item { background: #fff; border: 1px solid #e7ebe8; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--rouge); font-size: 20px; font-weight: 800; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-rep { padding: 0 20px 16px; color: #333; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-30 { margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; padding-bottom: 120px; }
    .hero h1 { font-size: 38px; }
    .features { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .compte-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 0; box-shadow: 0 12px 20px rgba(0,0,0,.12); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 22px; border-bottom: 0; }
    .burger { display: block; margin-left: auto; }
    .header-actions .btn-compte { display: none; }
    .features { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .logo-img { height: 48px; }
}
