/* Tof Informatique : formes et effets de la maquette, appliqués par classes CSS dans Elementor
   (onglet Avancé > Classes CSS). Les couleurs suivent le kit Elementor. */
:root {
  --tof-marque: var(--e-global-color-primary, #1D2E57);
  --tof-encre: var(--e-global-color-secondary, #0F1A33);
  --tof-texte: var(--e-global-color-text, #4B5670);
  --tof-accent: var(--e-global-color-accent, #FCA311);
  --tof-accent-clair: var(--e-global-color-tofaccl, #FDE2AE);
  --tof-g1: var(--e-global-color-tofgrd1, #2B4379);
  --tof-g2: var(--e-global-color-secondary, #0F1A33);
  --tof-doux1: var(--e-global-color-tofdoux, #E8ECF5);
  --tof-doux2: var(--e-global-color-tofdou2, #F4F5F9);
  --tof-trait: var(--e-global-color-toftrai, #D5DAE6);
  --tof-degrade: linear-gradient(135deg, var(--tof-g1) 0%, var(--tof-g2) 100%);
  --tof-jaune: linear-gradient(90deg, var(--tof-accent-clair), var(--tof-accent));
  --c: 44px; --rr: 20px;
}
@media (max-width: 900px) { :root { --c: 30px; --rr: 16px; } }

/* Forme : deux angles coupés (haut-gauche, bas-droite), deux angles arrondis */
.tof-coupe { clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, calc(100% - var(--rr) * .5) calc(var(--rr) * .134), calc(100% - var(--rr) * .134) calc(var(--rr) * .5), 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, calc(var(--rr) * .5) calc(100% - var(--rr) * .134), calc(var(--rr) * .134) calc(100% - var(--rr) * .5), 0 calc(100% - var(--rr)), 0 var(--c)); border-radius: 0 !important; }
/* Variante miroir (haut-droite, bas-gauche) */
.tof-miroir { clip-path: polygon(var(--rr) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--rr)), calc(100% - var(--rr) * .134) calc(100% - var(--rr) * .5), calc(100% - var(--rr) * .5) calc(100% - var(--rr) * .134), calc(100% - var(--rr)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--rr), calc(var(--rr) * .134) calc(var(--rr) * .5), calc(var(--rr) * .5) calc(var(--rr) * .134)); border-radius: 0 !important; }
.tof-grande-coupe { --c: clamp(48px, 8vw, 120px); --rr: 28px; }
.tof-petite-coupe { --c: 22px; --rr: 12px; }

/* Fonds */
.tof-degrade { background: var(--tof-degrade) !important; color: rgba(255,255,255,.9); }
.tof-degrade h1, .tof-degrade h2, .tof-degrade h3, .tof-degrade .elementor-heading-title { color: #fff; }
.tof-doux { background: var(--tof-doux1); }
.tof-doux2 { background: var(--tof-doux2); box-shadow: inset 0 0 0 1px var(--tof-trait); }
/* Grain léger dans les cases */
.tof-grain { position: relative; isolation: isolate; }
.tof-grain::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tof-doux.tof-grain::before, .tof-doux2.tof-grain::before { opacity: .22; }

/* Titres en dégradé */
.tof-titre-degrade .elementor-heading-title { background: linear-gradient(100deg, var(--tof-g2), var(--tof-g1)); -webkit-background-clip: text; background-clip: text; color: transparent !important; padding-bottom: .08em; }
/* Mot surligné en jaune dans un titre : <em>dès 150 €</em> */
.elementor-heading-title em { font-style: normal; background: var(--tof-jaune); color: #111; border-radius: 999px; padding: .02em .28em .06em; display: inline-block; transform: rotate(-2deg); }
/* Pastille « sur-titre » */
.tof-sur .elementor-heading-title { display: inline-block; font: 600 11px/1.4 var(--e-global-typography-text-font-family, "Open Sans"), sans-serif; letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; color: #fff; }
.tof-badge .elementor-heading-title { display: inline-block; font: 600 12px/1.4 var(--e-global-typography-text-font-family, "Open Sans"), sans-serif; letter-spacing: .1em; text-transform: uppercase; background: var(--tof-jaune); color: #111; padding: 5px 12px; border-radius: 999px; }
.tof-trait-gauche { padding-left: 16px; border-left: 1.5px solid rgba(255,255,255,.6); }

/* Boutons : pilule avec pastille ronde à droite */
.tof-btn .elementor-button { border-radius: 999px; padding: 6px 6px 6px 22px; background: var(--tof-encre); color: #fff; font-family: var(--e-global-typography-accent-font-family, "Poppins"), sans-serif; font-weight: 500; font-size: 15px; }
.tof-btn .elementor-button-content-wrapper { align-items: center; gap: 14px; }
.tof-btn .elementor-button-content-wrapper::after { content: ""; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, var(--tof-accent) 0 4px, #111 4.5px); flex: none; order: 9; }
.tof-btn.tof-jaune .elementor-button { background: var(--tof-jaune); color: #111; }
.tof-btn.tof-contour .elementor-button { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); color: #fff; }
.tof-btn.tof-contour .elementor-button-content-wrapper::after { background: radial-gradient(circle, var(--tof-accent) 0 4px, #fff 4.5px); }
.tof-btn .elementor-button:hover, .tof-btn .elementor-button:focus-visible { filter: brightness(1.06); }

/* Lien avec point jaune */
.tof-lien a, a.tof-lien, .tof-lien .elementor-heading-title { font-weight: 600; text-decoration: none; }
.tof-lien .elementor-heading-title::after, a.tof-lien::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tof-accent); margin-left: 8px; vertical-align: middle; }

/* Pilules de raccourcis (widget Liste d'icônes en ligne) */
.tof-pilules .elementor-icon-list-items { gap: 10px; }
.tof-pilules .elementor-icon-list-item { margin: 0 !important; }
.tof-pilules .elementor-icon-list-item > a, .tof-pilules .elementor-icon-list-item > span { border: 1px solid var(--tof-trait); border-radius: 999px; padding: 9px 18px; font-family: "Poppins", sans-serif; font-weight: 500; color: var(--tof-encre); }
.tof-pilules .elementor-icon-list-item:first-child > a { background: var(--tof-jaune); border-color: transparent; color: #111; }
.tof-pilules .elementor-icon-list-item::after { display: none !important; }

/* Cartes de service : flèche jaune en haut à droite */
.tof-service { position: relative; }
.tof-service::after { content: ""; position: absolute; right: 22px; top: 20px; width: 20px; height: 20px; background: var(--tof-accent); -webkit-mask: var(--tof-fleche) center / contain no-repeat; mask: var(--tof-fleche) center / contain no-repeat; --tof-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5l14 14M19 8v11H8'/%3E%3C/svg%3E"); }
.tof-service .elementor-icon svg { stroke: #A9C4FF; }

/* Cartes produits WooCommerce : forme coupée + ombre */
.woocommerce ul.products li.product, .elementor-widget-woocommerce-products ul.products li.product { background: #fff; padding: 14px 14px 22px !important; --c: 26px; --rr: 14px; clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, 0 calc(100% - var(--rr)), 0 var(--c)); }
.woocommerce ul.products { filter: drop-shadow(0 10px 18px rgba(6,59,87,.14)); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 500 17px/1.25 "Poppins", sans-serif; color: var(--tof-encre); letter-spacing: -.01em; }
.woocommerce ul.products li.product .price { font: 600 26px/1 "Poppins", sans-serif; color: var(--tof-marque) !important; }
.woocommerce ul.products li.product .onsale { background: var(--tof-jaune); color: #111; border-radius: 999px; min-height: 0; line-height: 1.4; padding: 4px 10px; }
.woocommerce ul.products li.product .button { border-radius: 999px; background: var(--tof-encre); color: #fff; font-family: "Poppins", sans-serif; font-weight: 500; }
/* Photo des cartes découpée comme la carte, badge Promo à l'intérieur */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product a img { --c: 20px; --rr: 10px; clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, 0 calc(100% - var(--rr)), 0 var(--c)); border-radius: 0 !important; }
.woocommerce ul.products li.product .onsale, .woocommerce span.onsale { top: 24px !important; right: 24px !important; left: auto !important; margin: 0 !important; padding: 6px 14px !important; font: 600 12px/1.3 "Poppins", sans-serif; min-width: 0; min-height: 0; }

/* En-tête */
.tof-util { font-size: 13px; }
.tof-tete .elementor-nav-menu--main .elementor-item { font-family: "Poppins", sans-serif; font-weight: 500; }
.tof-tete .elementor-nav-menu--main .menu-item:first-child .elementor-item { color: var(--tof-marque); }
.tof-tel { text-align: right; line-height: 1.25; }

@media (prefers-reduced-motion: reduce) { .elementor-invisible { visibility: visible !important; } .animated { animation: none !important; } }

/* Encarts de rayon : la vignette garde sa largeur à côté du texte */
.e-con:has(> .elementor-widget-image.tof-petite-coupe) { flex: 0 0 38%; }
/* Liens « Voir… » sur une seule ligne */
.tof-lien .elementor-heading-title { white-space: nowrap; }
/* Pilules sur fond foncé */
.tof-pilules-claires .elementor-icon-list-item:not(:first-child) > a { border-color: rgba(255,255,255,.45); }
.tof-pilules-claires .elementor-icon-list-item:not(:first-child) .elementor-icon-list-text { color: #fff !important; }
/* Tableau de tarifs */
.tof-tarifs { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 16px; }
.tof-tarifs th, .tof-tarifs td { border: 0; border-bottom: 1px solid var(--tof-trait); padding: 14px 4px; text-align: left; background: none !important; }
.tof-tarifs th { font: 600 13px/1.3 "Open Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tof-texte); }
.tof-tarifs td:last-child, .tof-tarifs th:last-child { text-align: right; font-weight: 600; color: var(--tof-encre); white-space: nowrap; }
/* Fiche produit */
.tof-ajout .single_add_to_cart_button { border-radius: 999px !important; background: var(--tof-jaune) !important; color: #111 !important; font-family: "Poppins", sans-serif; font-weight: 500; padding: 14px 28px !important; }
.tof-ajout .quantity .qty { border-radius: 12px; border: 1px solid var(--tof-trait); min-height: 48px; }
.tof-inclus .elementor-icon-list-icon i, .tof-inclus .elementor-icon-list-icon svg { color: var(--tof-accent); fill: var(--tof-accent); }
.tof-galerie .woocommerce-product-gallery__image img, .tof-galerie .flex-control-thumbs img { --c: 26px; --rr: 14px; clip-path: polygon(var(--c) 0, calc(100% - var(--rr)) 0, 100% var(--rr), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--rr) 100%, 0 calc(100% - var(--rr)), 0 var(--c)); }
.tof-onglets .woocommerce-tabs ul.tabs li { border-radius: 999px !important; background: #fff !important; border: 1px solid var(--tof-trait) !important; margin-right: 8px !important; }
.tof-onglets .woocommerce-tabs ul.tabs li.active { background: var(--tof-jaune) !important; border-color: transparent !important; }
.tof-onglets .woocommerce-tabs ul.tabs li a { font-family: "Poppins", sans-serif; font-weight: 500; color: var(--tof-encre) !important; }
.tof-onglets .woocommerce-tabs ul.tabs::before, .tof-onglets .woocommerce-tabs ul.tabs li::before, .tof-onglets .woocommerce-tabs ul.tabs li::after { display: none !important; }
/* Mobile */
@media (max-width: 767px) {
  .tof-util { font-size: 12px; }
  /* En-tête : logo, compte et panier sur une ligne, menu burger en haut à droite, recherche dessous */
  .elementor-location-header .e-con.tof-tete { position: relative; }
  .elementor-location-header .e-con:has(> .tof-recherche) { padding-right: 52px !important; row-gap: 10px !important; }
  .elementor-location-header .tof-recherche { order: 9; flex: 0 0 calc(100% + 52px) !important; max-width: none !important; margin-right: -52px !important; }
  .elementor-location-header .e-con:has(> .tof-recherche) > .e-con:first-child { width: auto !important; flex: 1 1 auto !important; }
  .elementor-location-header .elementor-widget-nav-menu.tof-tete { position: absolute; top: 16px; right: 14px; width: auto !important; }
  .elementor-location-header .elementor-widget-nav-menu.tof-tete nav.elementor-nav-menu--dropdown { margin-top: 22px !important; box-shadow: 0 14px 28px rgba(15,26,51,.16); background: #fff; }
  /* Pilules : une ligne qui défile */
  .tof-pilules .elementor-icon-list-items { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tof-pilules .elementor-icon-list-item { flex: none; }
  .tof-lien .elementor-heading-title { white-space: normal; }
}
