/*
Theme Name: Edgar & Toni
Theme URI: https://edgar-et-toni.example
Author: Edgar & Toni
Author URI: https://edgar-et-toni.example
Description: Thème WordPress Gutenberg natif pour l’agence web et growth marketing Edgar & Toni. Design premium, compositions réutilisables et structure orientée conversion.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edgar-toni
Tags: block-patterns, block-styles, full-site-editing, wide-blocks, portfolio, business, accessibility-ready
*/

/* Les réglages principaux se trouvent dans theme.json. */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--wp--preset--color--orange);
  outline-offset: 3px;
}

.et-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
  backdrop-filter: blur(14px);
}

.et-site-header.is-position-sticky {
  background: color-mix(in srgb, var(--wp--preset--color--cream) 92%, transparent);
}

.et-site-title a {
  text-decoration: none;
}

.et-site-title a::first-letter {
  color: var(--wp--preset--color--orange);
}

.et-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.et-hero::before,
.et-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.et-hero::before {
  width: 28rem;
  height: 28rem;
  right: -12rem;
  top: -10rem;
  background: color-mix(in srgb, var(--wp--preset--color--orange) 16%, transparent);
}

.et-hero::after {
  width: 18rem;
  height: 18rem;
  left: -8rem;
  bottom: -10rem;
  background: color-mix(in srgb, var(--wp--preset--color--blue) 10%, transparent);
}

.et-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .45rem .8rem;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.et-kicker::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--wp--preset--color--orange);
  box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--wp--preset--color--orange) 15%, transparent);
}

.et-display {
  text-wrap: balance;
}

.et-lead {
  max-width: 46rem;
  text-wrap: pretty;
}

.et-card,
.is-style-et-card {
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 11%, transparent);
  border-radius: var(--wp--custom--radius--large);
  box-shadow: var(--wp--preset--shadow--soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.et-card:hover,
.is-style-et-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--wp--preset--color--orange) 42%, transparent);
  box-shadow: var(--wp--preset--shadow--lifted);
}

.et-card-dark,
.is-style-et-card-dark {
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--white) 15%, transparent);
  border-radius: var(--wp--custom--radius--large);
  background: color-mix(in srgb, var(--wp--preset--color--white) 6%, transparent);
}

.et-number {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: .9;
  color: var(--wp--preset--color--orange);
}

.et-stat {
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}

.et-project-visual {
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--wp--custom--radius--large);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--blue) 94%, black), color-mix(in srgb, var(--wp--preset--color--blue) 68%, var(--wp--preset--color--orange))),
    var(--wp--preset--color--blue);
  box-shadow: var(--wp--preset--shadow--lifted);
}

.et-browser {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, white 28%, transparent);
  border-radius: 1rem;
  background: var(--wp--preset--color--white);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .25);
  transform: rotate(-2deg);
}

.et-browser-bar {
  min-height: 2.6rem;
  border-bottom: 1px solid #e9edf2;
  background: #f7f8fa;
}

.et-browser-dots::before {
  content: "●  ●  ●";
  color: #9aa3b0;
  letter-spacing: .18rem;
}

.et-mini-card {
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent);
  border-radius: 1rem;
  background: var(--wp--preset--color--white);
  box-shadow: var(--wp--preset--shadow--soft);
}

.et-check-list,
.is-style-et-check-list {
  list-style: none;
  padding-left: 0;
}

.et-check-list li,
.is-style-et-check-list li {
  position: relative;
  padding-left: 1.8rem;
}

.et-check-list li::before,
.is-style-et-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--wp--preset--color--orange);
}

.et-quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: .5;
  color: var(--wp--preset--color--orange);
}

.et-faq .wp-block-details {
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
  padding: 1.25rem 0;
}

.et-faq .wp-block-details:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 14%, transparent);
}

.et-faq summary {
  cursor: pointer;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.12rem;
  font-weight: 650;
}

.et-faq summary::marker {
  color: var(--wp--preset--color--orange);
}

.et-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.et-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  bottom: -18rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wp--preset--color--orange) 45%, transparent);
}

.et-post-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
  border-radius: var(--wp--custom--radius--medium);
  background: var(--wp--preset--color--white);
}

.et-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.et-contact-panel {
  border-radius: var(--wp--custom--radius--large);
  background: linear-gradient(145deg, var(--wp--preset--color--blue), #0b1c30);
}

.wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .18);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--blue);
  color: var(--wp--preset--color--white);
}

.wp-block-navigation a {
  text-underline-offset: .25em;
}

.wp-block-navigation a:hover {
  color: var(--wp--preset--color--orange);
}

.wp-block-post-content > :where(h2, h3) {
  scroll-margin-top: 7rem;
}

@media (max-width: 781px) {
  .et-site-header .wp-block-buttons {
    display: none;
  }

  .et-project-visual {
    min-height: 18rem;
  }

  .et-browser {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
