/*
Theme Name: Parfums
Description: Thème de la boutique de parfums : accueil avec le trouveur, pages WooCommerce aux couleurs de la maquette.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: parfums
*/

:root {
	--encre: #14342b;
	--pied: #0e2620;
	--encre-fonce: #0b211b;
	--encre-douce: #4f6b61;
	--fond: #eef1ec;
	--carte: #ffffff;
	--clair: #f6f4ee;
	--accent: #d9ccf2;
	--voile: #c9d6ce;
}

/* Polices servies par le site (sous-ensemble latin, licence OFL) : aucun appel à un service tiers. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/polices/dm-sans-normal.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/polices/fraunces-normal.woff2") format("woff2"); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/polices/fraunces-italic.woff2") format("woff2"); }

* { box-sizing: border-box; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; }
body {
	margin: 0;
	background: var(--fond);
	color: var(--encre);
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.5;
}
a { color: var(--encre); }
a:hover { color: #0B211B; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }

.conteneur { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding-bottom: 72px; }

/* En-tête */
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.entete__logo { display: flex; align-items: center; min-height: 52px; }
.entete__logo svg { width: 44px; height: 44px; fill: currentColor; }
.entete__nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.entete__nav a { display: block; padding: 12px 0; text-decoration: none; }
.entete__outils { display: flex; align-items: center; gap: 8px; }
.entete__icone { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }
.entete__icone svg, .pastille-lien svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.entete__compte { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--encre); color: var(--clair); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* Boutons et pastilles */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--encre); color: var(--clair); font-size: 16px; font-weight: 700; text-decoration: none; }
.bouton:hover { color: var(--clair); background: #0B211B; }
.bouton--contour { border: 1.5px solid var(--encre); background: transparent; color: var(--encre); }
.bouton--contour:hover { background: var(--accent); color: var(--encre); }
.pastille { display: inline-block; padding: 5px 16px; border: 1.5px solid var(--encre); border-radius: 999px; font-size: 16px; }
.pastille--prix { background: var(--accent); font-weight: 800; }
.pastille-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--encre); border-radius: 999px; background: var(--accent); font-size: 15px; font-weight: 700; text-decoration: none; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }

/* Titres de section : un mot manuscrit, un mot gras, un mot fin */
.titre { display: flex; flex-direction: column; margin: 0 0 28px; }
.titre__script { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 300; font-size: 28px; line-height: 1.2; }
.titre h1, .titre h2 { margin: 0; font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.titre strong { font-weight: 800; }

/* Trouveur */
.trouveur { padding-top: 40px; padding-bottom: 48px; }
.trouveur__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 48px; align-items: center; }
.trouveur h1 { margin: 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.trouveur__accroche { font-size: clamp(38px, 4.3vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.trouveur__suite { font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; line-height: 1.2; }
.trouveur__carte { display: flex; flex-direction: column; gap: 18px; padding: 22px; background: var(--carte); border: 1.5px solid var(--encre); border-radius: 28px; }
.onglets { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; padding: 5px; border: 1.5px solid var(--encre); border-radius: 999px; }
.onglets button, .choix button { min-height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; color: var(--encre); font-size: 15px; font-weight: 700; }
.onglets button { border: 0; }
.choix button { border: 1.5px solid var(--encre); font-weight: 600; }
.onglets button[aria-pressed="true"], .choix button[aria-pressed="true"] { background: var(--encre); color: var(--clair); }
.trouveur form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.trouveur label, .trouveur__question { font-size: 15px; font-weight: 700; }
.trouveur__champ { display: flex; flex-wrap: wrap; gap: 10px; }
.trouveur__champ input { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 22px; border: 1.5px solid var(--encre); border-radius: 999px; background: var(--fond); color: var(--encre); }
.trouveur__champ .bouton { height: 56px; min-height: 0; }
.trouveur__aide { margin: 0; font-size: 14px; color: var(--encre-douce); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.trouveur__photo { position: relative; height: clamp(320px, 44vw, 620px); border-radius: 28px; overflow: hidden; background: var(--voile); }
.trouveur__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.trouveur__photo .pastille { position: absolute; left: 20px; bottom: 20px; font-size: 14px; font-weight: 700; }
.resultats { margin-top: 40px; }
.resultats h2 { margin: 0 0 20px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.resultats__message { max-width: 720px; padding: 28px; background: var(--carte); border: 1.5px solid var(--encre); border-radius: 24px; }
.resultats__message p { margin: 8px 0 16px; }

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.grille--cartes { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.carte { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--carte); border: 1.5px solid var(--encre); border-radius: 24px; text-decoration: none; }
.carte--sombre { background: var(--encre); color: var(--clair); }
.carte--sombre a { color: var(--clair); }
.carte--sombre .pastille { border-color: var(--clair); }
.carte--sombre .pastille--prix { border-color: var(--accent); color: var(--encre); }
.carte--voile { background: var(--voile); }
.carte h3 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.carte p { margin: 0; font-size: 16px; }
.carte__sur { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.carte__lien { margin-top: auto; font-size: 15px; font-weight: 700; }
.carte__doux { font-size: 15px; color: var(--encre-douce); }
.parfum { display: flex; gap: 18px; align-items: flex-start; }
.flacon { position: relative; flex: none; width: 84px; height: 132px; }
.flacon svg { display: block; width: 84px; height: 132px; }
.flacon span { position: absolute; left: 0; right: 0; top: 72px; text-align: center; font-size: 14px; font-weight: 800; }

/* À savoir */
.atouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.atouts li { display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; background: var(--carte); border: 1.5px solid var(--encre); border-radius: 999px; font-size: 15px; }
.atouts li::before { content: "✓"; display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--encre); color: var(--clair); font-weight: 800; }

/* Familles */
.familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.familles button { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--carte); border: 1.5px solid var(--encre); border-radius: 20px; color: var(--encre); text-align: left; }
.familles i { width: 36px; height: 36px; border: 1.5px solid var(--encre); border-radius: 50%; }
.familles strong { font-size: 16px; line-height: 1.15; }
.familles span { font-size: 13px; color: var(--encre-douce); }

/* Rechargeables, conseil */
.encart { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 40px; align-items: center; padding: clamp(24px, 4vw, 56px); background: var(--carte); border: 1.5px solid var(--encre); border-radius: 28px; }
.encart--accent { background: var(--accent); }
.encart--ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.encart--ligne .titre { margin: 0; }
.encart ol { display: flex; flex-direction: column; gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: etape; }
.encart ol li { display: flex; gap: 14px; counter-increment: etape; }
.encart ol li::before { content: counter(etape); display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--encre); color: var(--clair); font-weight: 800; }
.encart__visuels { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.encart__visuels img:first-child { width: 78%; max-width: 440px; }
.encart__visuels img:last-child { width: 14%; max-width: 76px; }
.encart__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Pied de page */
.pied { background: var(--pied); color: var(--clair); }
.pied .conteneur { padding-top: 56px; padding-bottom: 32px; }
.pied__colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.pied svg { width: 44px; height: 44px; fill: currentColor; }
.pied a { display: block; padding: 6px 0; color: var(--clair); font-size: 15px; text-decoration: none; }
.pied h2 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--voile); }
.pied__mention { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--encre-douce); font-size: 13px; color: var(--voile); }

/* Pages et WooCommerce */
.contenu { padding-top: 24px; padding-bottom: 72px; }
.woocommerce ul.products li.product, .woocommerce div.product div.summary, .woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order { border-radius: 24px; }
.woocommerce ul.products li.product { padding: 20px; background: var(--carte); border: 1.5px solid var(--encre); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt { border-radius: 999px; background: var(--encre); color: var(--clair); font-weight: 700; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #0B211B; color: var(--clair); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--encre); font-weight: 800; }
.woocommerce span.onsale { background: var(--accent); color: var(--encre); }
