/*
Theme Name: 3D STL Creation
Theme URI: https://afmbcreation.fr
Author: AFMB Creation
Author URI: https://afmbcreation.fr
Description: Thème du site du logiciel 3D STL Creation : accueil, fonctionnalités, tarifs, téléchargement et contact.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stl3d
*/

@font-face { font-family: "Fredoka"; src: url("assets/fonts/fredoka.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("assets/fonts/baloo-2.woff") format("woff"); font-weight: 400 800; font-display: swap; }

:root {
  --rose: #ec2f86;
  --rose-clair: #ff6fae;
  --rose-fonce: #b81e64;
  --fond: #15151b;
  --fond-2: #1d1d26;
  --fond-3: #262632;
  --trait: #34343f;
  --texte: #f4f2f6;
  --doux: #b9b5c2;
  --rayon: 18px;
  --largeur: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 17px/1.65 "Baloo 2", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-clair); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Fredoka", "Baloo 2", sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.conteneur { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }
.ecran-seulement { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: 8px; background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.lien-evitement:focus { left: 8px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1.05rem "Fredoka", sans-serif; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--rose);
  background: var(--rose); color: #fff; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.bouton:hover { background: var(--rose-fonce); border-color: var(--rose-fonce); transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 26px -10px var(--rose); }
.bouton.contour { background: transparent; color: var(--texte); border-color: var(--trait); }
.bouton.contour:hover { border-color: var(--rose); background: transparent; }
.bouton.grand { padding: 16px 34px; font-size: 1.2rem; }
.bouton[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(21, 21, 27, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--trait); }
.entete-interieur { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); font: 600 1.2rem "Fredoka", sans-serif; }
.marque:hover { text-decoration: none; }
.marque img { width: 40px; height: 40px; border-radius: 10px; }
.menu { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.menu a { color: var(--doux); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.menu a:hover, .menu .current-menu-item > a { color: var(--texte); background: var(--fond-3); text-decoration: none; }
.menu .bouton-menu a { background: var(--rose); color: #fff; }
.menu .bouton-menu a:hover { background: var(--rose-fonce); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--trait); color: var(--texte); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--fond-2); }
.titre-section { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.titre-section p { color: var(--doux); font-size: 1.1rem; }
.pastille { display: inline-block; background: rgba(236, 47, 134, .16); color: var(--rose-clair); border: 1px solid rgba(236, 47, 134, .45); padding: 4px 14px; border-radius: 999px; font: 600 .85rem "Fredoka", sans-serif; letter-spacing: .04em; margin-bottom: 16px; }

/* Héros */
.heros { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background:
  radial-gradient(900px 480px at 85% -10%, rgba(236, 47, 134, .30), transparent 60%),
  radial-gradient(700px 400px at -5% 30%, rgba(120, 60, 200, .18), transparent 60%); }
.heros-grille { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.heros h1 span { color: var(--rose-clair); }
.heros .bouton.grand { padding: 14px 24px; font-size: 1.1rem; }
.heros p.chapeau { font-size: 1.25rem; color: var(--doux); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--doux); font-size: .98rem; }
.points li::before { content: "✓"; color: var(--rose-clair); font-weight: 700; margin-right: 7px; }
.fenetre { background: var(--fond-2); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(236, 47, 134, .12); }
.fenetre-barre { display: flex; gap: 7px; padding: 11px 14px; background: var(--fond-3); border-bottom: 1px solid var(--trait); }
.fenetre-barre i { width: 11px; height: 11px; border-radius: 50%; background: #5a5a68; display: block; }
.fenetre-barre i:first-child { background: var(--rose); }
.fenetre img { width: 100%; }

/* Cartes */
.grille { display: grid; gap: 22px; }
.grille.trois { grid-template-columns: repeat(3, 1fr); }
.grille.deux { grid-template-columns: repeat(2, 1fr); }
.carte { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 26px; transition: transform .2s, border-color .2s; }
.section.alt .carte { background: var(--fond); }
.carte:hover { transform: translateY(-4px); border-color: rgba(236, 47, 134, .55); }
.carte .icone { width: 52px; height: 52px; border-radius: 14px; background: rgba(236, 47, 134, .16); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px; }
.carte p { color: var(--doux); margin: 0; }
.etapes { counter-reset: e; }
.etapes .carte { position: relative; padding-top: 44px; }
.etapes .carte::before { counter-increment: e; content: counter(e); position: absolute; top: -18px; left: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font: 600 1.3rem "Fredoka", sans-serif; box-shadow: 0 8px 20px -8px var(--rose); }

/* Fonctionnalités */
.module { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 44px 0; }
.module + .module { border-top: 1px solid var(--trait); }
.module:nth-child(even) .module-texte { order: 2; }
.module-texte ul { padding: 0; margin: 16px 0 0; list-style: none; }
.module-texte li { padding: 6px 0 6px 28px; position: relative; color: var(--doux); }
.module-texte li::before { content: "●"; position: absolute; left: 4px; color: var(--rose); font-size: .8rem; top: 10px; }
.module-texte li strong { color: var(--texte); font-weight: 600; }
.module-image { border-radius: 16px; overflow: hidden; border: 1px solid var(--trait); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tarif { background: var(--fond-2); border: 1px solid var(--trait); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.tarifs.deux { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
.tarif.vedette { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), 0 30px 60px -30px rgba(236, 47, 134, .55); transform: translateY(-8px); }
.tarif .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--rose); color: #fff; padding: 4px 16px; border-radius: 999px; font: 600 .85rem "Fredoka", sans-serif; white-space: nowrap; }
.tarif h3 { font-size: 1.4rem; }
.prix { font: 600 3rem/1 "Fredoka", sans-serif; margin: 10px 0 4px; }
.prix small { font-size: 1.05rem; color: var(--doux); font-weight: 400; }
.tarif .sous-prix { color: var(--doux); margin-bottom: 20px; min-height: 1.6em; }
.tarif ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.tarif li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--trait); }
.tarif li::before { content: "✓"; position: absolute; left: 0; color: var(--rose-clair); font-weight: 700; }
.mention { text-align: center; color: var(--doux); font-size: .92rem; margin-top: 28px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--fond-2); border: 1px solid var(--trait); border-radius: 14px; margin-bottom: 12px; }
.section.alt .faq details { background: var(--fond); }
.faq summary { cursor: pointer; padding: 18px 22px; font: 600 1.1rem "Fredoka", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose-clair); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--doux); }

/* Téléchargement + contact */
.telechargement { text-align: center; background: linear-gradient(160deg, rgba(236, 47, 134, .22), rgba(236, 47, 134, .05)); border: 1px solid rgba(236, 47, 134, .45); border-radius: 26px; padding: clamp(32px, 5vw, 56px); }
.telechargement .infos { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; color: var(--doux); margin-top: 20px; font-size: .98rem; }
.aide { background: var(--fond-2); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px 26px; margin-top: 28px; color: var(--doux); }
.aide strong { color: var(--texte); }
.formulaire { background: var(--fond-2); border: 1px solid var(--trait); border-radius: 22px; padding: clamp(24px, 4vw, 40px); max-width: 720px; margin: 0 auto; }
.formulaire label { display: block; font-weight: 600; margin: 0 0 6px; }
.formulaire .champ { margin-bottom: 18px; }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; background: var(--fond); color: var(--texte); border: 1px solid var(--trait); border-radius: 12px; padding: 12px 14px; font: inherit;
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--rose); border-color: transparent; }
.formulaire textarea { min-height: 150px; resize: vertical; }
.formulaire .piege { position: absolute; left: -9999px; }
.message { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.message.ok { background: rgba(60, 200, 120, .15); border: 1px solid rgba(60, 200, 120, .55); color: #8ff0bb; }
.message.erreur { background: rgba(255, 90, 90, .14); border: 1px solid rgba(255, 90, 90, .55); color: #ffb0b0; }

/* Pages simples */
.contenu { max-width: 800px; margin: 0 auto; padding: 56px 0 80px; }
.contenu h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.contenu :is(ul, ol) { padding-left: 1.3em; }
.entete-page { padding: 56px 0 8px; text-align: center; background: radial-gradient(800px 300px at 50% -20%, rgba(236, 47, 134, .25), transparent 65%); }
.entete-page p { color: var(--doux); font-size: 1.15rem; max-width: 640px; margin: 0 auto 36px; }

/* Pied de page */
.pied { border-top: 1px solid var(--trait); padding: 44px 0 30px; background: #101015; color: var(--doux); font-size: .95rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pied h4 { color: var(--texte); font-size: 1.05rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 3px 0; }
.pied a { color: var(--doux); }
.pied a:hover { color: var(--rose-clair); }
.pied-bas { border-top: 1px solid var(--trait); margin-top: 30px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* Mobile */
@media (max-width: 900px) {
  .heros-grille, .module { grid-template-columns: 1fr; gap: 32px; }
  .module:nth-child(even) .module-texte { order: 0; }
  .grille.trois, .tarifs, .tarifs.deux, .grille.deux, .pied-grille { grid-template-columns: 1fr; }
  .tarif.vedette { transform: none; }
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--fond); border-bottom: 1px solid var(--trait); padding: 12px 20px 20px; margin: 0; }
  .menu.ouvert { display: flex; }
  .menu a { display: block; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
