/*
Theme Name: Albireo Design
Theme URI: https://albireodesign.com
Author: Albireo Design
Author URI: https://albireodesign.com
Description: Thème WordPress FSE sur-mesure pour le portfolio d'Albireo Design (Alexia Rabot). Univers cosmique sombre, navigation entièrement modifiable via l'éditeur de site WordPress.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: albireo
Tags: full-site-editing, block-patterns, portfolio, one-column, custom-colors, custom-logo, custom-menu, editor-style
*/

/* ==========================================================================
   GLOBAL RESETS & WP CORE COMPLEMENTS
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: var(--wp--preset--color--accent-blue);
  color: var(--wp--preset--color--contrast);
}

/* Liens fluides */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   TYPOGRAPHIE - TITRES DISPLAY GLOW
   ========================================================================== */

.is-style-title-glow,
.has-display-glow {
  text-shadow:
    0 0 20px rgba(168, 181, 224, 0.4),
    0 0 40px rgba(74, 107, 255, 0.25),
    0 0 80px rgba(74, 107, 255, 0.15);
  letter-spacing: 0.05em;
}

.wp-block-heading.has-x-large-font-size,
.wp-block-heading.has-xx-large-font-size {
  letter-spacing: 0.04em;
  line-height: 1.1;
}

/* Sous-titres italiques signature */
.is-style-subtitle-italic {
  font-family: var(--wp--preset--font-family--afacad-flux);
  font-style: italic;
  font-weight: 300;
  color: var(--wp--preset--color--text-soft);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   BOUTONS - STYLE PILULE GLOW
   ========================================================================== */

.wp-block-button__link {
  font-family: var(--wp--preset--font-family--afacad-flux);
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-button.is-style-cosmic .wp-block-button__link {
  background: linear-gradient(180deg, rgba(74, 107, 255, 0.12) 0%, rgba(10, 14, 39, 0.6) 100%);
  border: 1px solid rgba(168, 181, 224, 0.25);
  color: var(--wp--preset--color--contrast);
  padding: 0.85em 2.4em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 30px rgba(74, 107, 255, 0.15),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

.wp-block-button.is-style-cosmic .wp-block-button__link:hover {
  border-color: rgba(168, 181, 224, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 50px rgba(74, 107, 255, 0.35),
    0 4px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   CARTES PROJET PORTFOLIO
   ========================================================================== */

.albireo-project-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 24, 56, 0.4) 0%, rgba(10, 14, 39, 0.8) 100%);
  border: 1px solid rgba(168, 181, 224, 0.08);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 rgba(74, 107, 255, 0),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.albireo-project-card.is-featured {
  border-color: rgba(168, 181, 224, 0.18);
  box-shadow:
    0 0 60px rgba(74, 107, 255, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.albireo-project-card:hover {
  border-color: rgba(168, 181, 224, 0.3);
  box-shadow:
    0 0 80px rgba(74, 107, 255, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.albireo-project-card .wp-block-post-featured-image img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.albireo-project-card a.discover-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--wp--preset--font-family--afacad-flux);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--wp--preset--color--text-soft);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.albireo-project-card a.discover-link:hover {
  gap: 1em;
  color: var(--wp--preset--color--contrast);
}

.albireo-project-card a.discover-link::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   FORMULAIRE WPFORMS - HABILLAGE COSMIQUE
   ========================================================================== */

.albireo-contact-form .wpforms-field input,
.albireo-contact-form .wpforms-field textarea {
  background: rgba(10, 14, 39, 0.5) !important;
  border: 1px solid rgba(168, 181, 224, 0.25) !important;
  border-radius: 12px !important;
  color: var(--wp--preset--color--contrast) !important;
  font-family: var(--wp--preset--font-family--afacad-flux) !important;
  font-weight: 300 !important;
  padding: 1em 1.25em !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.albireo-contact-form .wpforms-field input:focus,
.albireo-contact-form .wpforms-field textarea:focus {
  border-color: rgba(168, 181, 224, 0.6) !important;
  box-shadow: 0 0 24px rgba(74, 107, 255, 0.2) !important;
  outline: none !important;
}

.albireo-contact-form .wpforms-field input::placeholder,
.albireo-contact-form .wpforms-field textarea::placeholder {
  color: rgba(168, 181, 224, 0.55) !important;
  font-weight: 200 !important;
}

.albireo-contact-form .wpforms-submit {
  background: linear-gradient(180deg, rgba(74, 107, 255, 0.12) 0%, rgba(10, 14, 39, 0.6) 100%) !important;
  border: 1px solid rgba(168, 181, 224, 0.25) !important;
  color: var(--wp--preset--color--contrast) !important;
  padding: 0.85em 2.4em !important;
  border-radius: 999px !important;
  font-family: var(--wp--preset--font-family--afacad-flux) !important;
  letter-spacing: 0.04em !important;
  transition: all 0.4s ease !important;
}

.albireo-contact-form .wpforms-submit:hover {
  border-color: rgba(168, 181, 224, 0.55) !important;
  box-shadow: 0 0 40px rgba(74, 107, 255, 0.3) !important;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */

.wp-block-navigation .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--afacad-flux);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
  opacity: 0.7;
}

.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
  border-bottom: 1px solid rgba(168, 181, 224, 0.6);
  padding-bottom: 2px;
}

/* Menu mobile burger */
@media (max-width: 781px) {
  .wp-block-navigation__responsive-container.is-menu-open {
    background: linear-gradient(135deg, #1A2562 0%, #4A6BFF 60%, #F5C58A 100%) !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 1.3rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
  }
}

/* ==========================================================================
   FOOTER - LIENS NAVIGATION SOULIGNÉS
   ========================================================================== */

.albireo-footer-nav .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

.albireo-footer-nav .wp-block-navigation-item {
  width: 100%;
  border-bottom: 1px solid rgba(168, 181, 224, 0.15);
  padding: 0.9rem 0;
}

.albireo-footer-nav .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--afacad-flux);
  font-weight: 200;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

/* Icônes sociales footer */
.albireo-social-icons .wp-block-social-link {
  background: transparent;
}

.albireo-social-icons .wp-block-social-link svg {
  fill: var(--wp--preset--color--contrast);
  transition: opacity 0.3s ease;
}

.albireo-social-icons .wp-block-social-link:hover svg {
  opacity: 0.7;
}

/* ==========================================================================
   COSMIC GRADIENT BACKGROUNDS
   ========================================================================== */

.has-cosmic-top-gradient-background {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 107, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(123, 107, 255, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #050816 0%, #050816 100%);
}

.has-cosmic-hero-halo-background {
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(168, 181, 224, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 90% 60% at 50% 35%, rgba(74, 107, 255, 0.25) 0%, transparent 60%),
    #050816;
}

/* ==========================================================================
   QUOTE BANNER - IMAGE DE FOND AVEC TEXTE CENTRÉ
   ========================================================================== */

.albireo-quote-banner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.albireo-quote-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.55);
  z-index: 1;
}

.albireo-quote-banner > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .albireo-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: albireoFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes albireoFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 781px) {
  .albireo-project-card {
    border-radius: 14px;
  }
}
