/*
Theme Name: étincelle catalane
Theme URI: https://etincellecatalane.fr
Author: étincelle catalane
Description: Thème de blocs sur mesure pour étincelle catalane, électricien à Perpignan. Registre moderne et technique : nuit profonde, arc or et rouge catalan.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
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: etincelle-catalane
*/

/* Ce que theme.json ne sait pas exprimer : verre dépoli, filets lumineux, grilles fines. */

.ec-carte {
  background: linear-gradient(160deg, rgba(255, 197, 61, 0.08), rgba(17, 26, 46, 0.92));
  border: 1px solid rgba(157, 171, 196, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.ec-carte:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 197, 61, 0.55);
}

.ec-carte--phare {
  border-color: rgba(226, 58, 78, 0.65);
  box-shadow: 0 18px 50px rgba(226, 58, 78, 0.18);
}

.ec-surtitre {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: var(--wp--preset--font-family--titre);
}

.ec-surtitre::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 2px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: var(--wp--preset--gradient--arc);
}

.ec-nav a {
  color: var(--wp--preset--color--craie);
  text-decoration: none;
  margin-right: 1.4rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ec-nav a:hover,
.ec-nav a:focus {
  color: var(--wp--preset--color--etincelle);
}

.ec-entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(157, 171, 196, 0.16);
}

.ec-icone svg {
  width: 30px;
  height: 30px;
  display: block;
  stroke: var(--wp--preset--color--etincelle);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ec-galerie img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 14px;
}

.wp-block-details {
  border: 1px solid rgba(157, 171, 196, 0.2);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  background: rgba(17, 26, 46, 0.6);
}

.wp-block-details summary {
  font-family: var(--wp--preset--font-family--titre);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.wp-block-details[open] summary {
  color: var(--wp--preset--color--etincelle);
}

a:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--wp--preset--color--etincelle);
  outline-offset: 3px;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

.wp-block-columns,
.wp-block-column,
.wp-block-group {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ec-carte { transition: none; }
}

@media (max-width: 781px) {
  .ec-nav { line-height: 2.6; }
  .ec-nav a { margin-right: 1rem; }
  .ec-entete { position: static; }
  .ec-entete .wp-block-buttons { width: 100%; }
  .wp-block-media-text__content { padding: 2rem 0 0; }
}
