/*
Theme Name: Portfolio Photo Nature
Author: Noël Bauza
Description: Thème WordPress sombre et élégant pour présenter des photographies de nature. Les photos publiées apparaissent automatiquement en page d'accueil.
Version: 1.0
Requires at least: 6.0
Text Domain: photo-nature
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --couleur-fond: #0f1115;
  --couleur-fond-clair: #181b22;
  --couleur-texte: #e8e9ec;
  --couleur-texte-doux: #9aa0ab;
  --couleur-accent: #4fa8e8;
  --couleur-accent-fonce: #3a80b5;
  --largeur-max: 1100px;
  --rayon: 12px;
  --ombre: 0 8px 24px rgba(0, 0, 0, 0.35);
}


/* Polices auto-hébergées (médiathèque du site)
   Dune Rise (police de Dune, greffée des accents français)
   — affichage en capitales (text-transform: uppercase) car
   les minuscules de la police sont des formes alternatives. */
@font-face {
  font-family: "Dune Rise";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.noel-bauza.com/wp-content/uploads/2026/10/dune-rise-noel-v4.ttf?v=4") format("truetype");
}

/* Michroma (ancienne police, utilisée pour les textes de la page À propos) */
@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.noel-bauza.com/wp-content/uploads/2026/10/michroma-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://www.noel-bauza.com/wp-content/uploads/2026/10/michroma-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Dune Rise", "Segoe UI", system-ui, sans-serif;
  background: var(--couleur-fond);
  color: var(--couleur-texte);
  font-size: 0.9rem;
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  /* Dune Rise : traits épaissis (plus de corps) */
  -webkit-text-stroke: 0.5px currentColor;
}

/* Les saisies des visiteurs (formulaire) restent en minuscules */
input[type="text"],
input[type="email"],
textarea {
  text-transform: none;
  letter-spacing: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

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

a {
  color: var(--couleur-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--couleur-accent-fonce);
}

/* =========================================
   2. EN-TÊTE & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}

/* Lisibilité du menu par-dessus les photos (header transparent) */
.site-header .site-logo,
.site-header .menu-principal a,
.site-header .reseaux a {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.header-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Menu + icônes réseaux réunis, alignés à droite */
.header-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.site-logo:hover {
  color: #ffffff;
}

.site-logo .logo-img {
  display: block;
  height: 36px;
  width: 36px;
  /* Lisibilité du logo par-dessus les photos (header transparent) */
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6));
}

.site-logo:hover .logo-img {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6)) brightness(1.1);
}

/* Menu principal */
.menu-principal ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.menu-principal a {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.menu-principal a:hover,
.menu-principal .current-menu-item a {
  color: var(--couleur-accent);
}

/* Bouton menu mobile (caché sur grand écran) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================
   3. HERO (PAGE D'ACCUEIL)
   ========================================= */
.hero {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 em {
  color: var(--couleur-accent);
  font-style: normal;
}

.hero p {
  color: var(--couleur-texte-doux);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.bouton {
  display: inline-block;
  background: var(--couleur-accent);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bouton:hover {
  background: var(--couleur-accent-fonce);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================================
   4. GRILLE DE PHOTOS
   ========================================= */
.section {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.grille-projets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.carte-projet {
  background: var(--couleur-fond-clair);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carte-projet:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombre);
}

.carte-projet a {
  color: inherit;
  display: block;
}

.carte-projet .miniature {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.carte-projet .miniature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carte-projet:hover .miniature img {
  transform: scale(1.05);
}

.carte-projet .contenu {
  padding: 1.25rem;
}

.carte-projet h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.carte-projet p {
  color: var(--couleur-texte-doux);
  font-size: 0.76rem;
}

/* Badges de galeries (filtres) */
.filtres-galeries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--couleur-fond-clair);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--couleur-texte-doux);
  font-size: 0.7rem;
  font-weight: 500;
}

.badge:hover {
  border-color: var(--couleur-accent);
  color: var(--couleur-accent);
}

/* =========================================
   5. ARTICLES & PAGES
   ========================================= */
.contenu-principal {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.contenu-principal .titre-article {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.metas-article {
  color: var(--couleur-texte-doux);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.metas-article a {
  color: var(--couleur-accent);
}

.contenu-article {
  font-size: 0.88rem;
}

.contenu-article p {
  margin-bottom: 1.25rem;
}

.contenu-article h2,
.contenu-article h3 {
  margin: 2rem 0 0.75rem;
}

.contenu-article blockquote {
  border-left: 3px solid var(--couleur-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--couleur-texte-doux);
}

.contenu-article img {
  border-radius: var(--rayon);
  margin: 1.5rem 0;
}

.liste-articles .carte-projet {
  margin-bottom: 1.75rem;
}

/* =========================================
   6. PIED DE PAGE
   ========================================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--couleur-texte-doux);
  font-size: 0.85rem;
}

.menu-pied ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu-pied a {
  color: var(--couleur-texte-doux);
}

.menu-pied a:hover {
  color: var(--couleur-accent);
}

/* =========================================
   7. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu-principal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--couleur-fond-clair);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
  }

  .menu-principal.est-ouvert {
    display: block;
  }

  .menu-principal ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* =========================================
   8. PHOTO EN PLEINE LARGEUR (page détail)
   ========================================= */
.photo-plein-ecran {
  width: 100%;
}

.photo-hero {
  width: 100%;
  margin: 0;
}

.photo-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.photo-barre {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.titre-photo {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0;
}

.metas-photo {
  color: var(--couleur-texte-doux);
  font-size: 0.85rem;
  margin: 0;
}

.metas-photo a {
  color: var(--couleur-accent);
}

.navigation-photo {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* =========================================
   9. HERO ACCUEIL AVEC PHOTO DE FOND
   ========================================= */
.hero-accueil {
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* La photo remonte derrière le menu transparent (pas de fond noir en haut de page) */
  margin-top: -84px;
  padding-top: calc(6rem + 84px);
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.55), rgba(15, 17, 21, 0.92)),
    url("https://www.noel-bauza.com/wp-content/uploads/2026/10/geant-de-glace.jpg");
  background-size: cover;
  background-position: center;
}

.hero-accueil h1,
.hero-accueil p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-accueil h1 {
  font-family: "Dune Rise", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.15;
  /* Nom agrandi le 1er nov. à la demande de Noël */
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
}

.hero-accueil h1 em {
  display: block;
  font-style: normal;
  font-size: clamp(0.85rem, 2vw, 1.3rem);
  letter-spacing: 0.18em;
  margin-top: 1.1rem;
}

/* Indicateurs Pixabay sous le titre (1er nov. 2026) : nombre en gros, libellé dessous */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-stats .stat-nombre {
  /* Michroma (police complète, chiffres sûrs) plutôt que Dune Rise */
  font-family: "Michroma", "Dune Rise", sans-serif;
  /* Réduit le 1er nov. : indicateur seul, plus discret */
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1;
  color: var(--couleur-accent);
}

.hero-stats .stat-libelle {
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffffff;
}

/* =========================================
   10. LIENS SOCIAUX (HEADER & FOOTER)
   ========================================= */
.header-droite {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.reseaux {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.reseaux a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.reseaux a:hover {
  color: var(--couleur-accent);
  transform: translateY(-2px);
}

.reseaux svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Logo Zei (wordmark) : largeur proportionnelle */
.reseaux .logo-zei,
.reseaux svg[viewBox="0 0 113.235 52.765"] {
  width: auto;
  height: 20px;
}

/* Icônes dans le pied de page : rangée centrée sous le contenu */
.footer-inner .reseaux {
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .header-droite .reseaux {
    gap: 0.75rem;
  }

  .header-droite svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================
   11. LOGO ZEI (PAGE À PROPOS)
   ========================================= */
.bloc-zei {
  margin: 1.5rem 0;
}

.bloc-zei a {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.4rem;
  background: var(--couleur-fond-clair);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rayon);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bloc-zei a:hover {
  border-color: var(--couleur-accent);
  transform: translateY(-2px);
}

.bloc-zei svg {
  height: 34px;
  width: auto;
  display: block;
}


/* =========================================
   13. SÉLECTEUR DE CLIMATS (GRADIENT GLACIAL -> DÉSERTIQUE)
   ========================================= */
.selecteur-climats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 780px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  /* Barre unique en dégradé bleu -> rouge (sans intermédiaires : passage par le violet) */
  background: linear-gradient(90deg, #2f7fe0 0%, #7d63d8 50%, #d63b2f 100%);
}

.climat {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  background: transparent;
  transition: background 0.25s ease;
}

.climat:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.climat-tout {
  text-align: center;
  margin: 0 auto 2.4rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .selecteur-climats {
    border-radius: 16px;
  }

  .climat {
    font-size: 0.44rem;
    padding: 0.95rem 0.1rem;
    letter-spacing: 0.04em;
  }
}



/* =========================================
   14. DRAPEAU EU (EMBLÈME)
   ========================================= */
.hero-embleme {
  margin-bottom: 1.6rem;
}

.hero-embleme img {
  width: clamp(52px, 7vw, 72px);
  height: auto;
  border-radius: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

/* Titre de la page À propos : nom + drapeau côte à côte */
.titre-propos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}

.titre-propos .hero-embleme {
  margin-bottom: 0;
}

.titre-propos img {
  width: clamp(32px, 4.5vw, 44px);
}

/* Le h1 garde sinon une marge basse qui décale son centrage dans le flex */
.titre-propos .titre-article {
  margin-bottom: 0;
}

/* =========================================
   17. PAGE À PROPOS : TEXTES EN MICHROMA, TITRES EN DUNE RISE
   ========================================= */
.page-id-7 .contenu-article {
  font-family: "Michroma", "Dune Rise", "Segoe UI", system-ui, sans-serif;
  /* Michroma déjà bien pleine : pas d'épaississement de contour */
  -webkit-text-stroke: 0;
}

.page-id-7 .contenu-article h2,
.page-id-7 .contenu-article h3,
.page-id-7 .contenu-article h4 {
  font-family: "Dune Rise", sans-serif;
}

/* Portrait de Noël en tête de la page À propos (cercle, centré) */
.portrait-propos {
  display: block;
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14);
}


/* =========================================
   15. ACCUEIL : LISTE DES PHOTOS EN PLEINE LARGEUR
   ========================================= */
#photos {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

#photos .grille-projets {
  grid-template-columns: 1fr;
  gap: 1rem;
}

#photos .carte-projet {
  /* PC : la photo occupe 2/3 de la largeur d'écran, marges sur les côtés */
  width: 66.666%;
  margin: 0 auto;
  border-radius: 0;
  border: none;
}

#photos .carte-projet:hover {
  transform: none;
  box-shadow: none;
}

#photos .carte-projet .miniature {
  aspect-ratio: auto;
}

#photos .carte-projet .miniature img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #photos .carte-projet {
    width: 100%;
  }
}


/* =========================================
   16. FORMULAIRE DE CONTACT
   ========================================= */
.formulaire-contact {
  max-width: 640px;
  margin: 2.25rem auto 0;
  text-align: left;
}

.formulaire-contact .champ {
  margin-bottom: 1.4rem;
}

.formulaire-contact label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--couleur-texte-doux);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.formulaire-contact input[type="text"],
.formulaire-contact input[type="email"],
.formulaire-contact textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--couleur-fond-clair);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rayon);
  color: var(--couleur-texte);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.6;
  transition: border-color 0.2s ease;
}

.formulaire-contact input:focus,
.formulaire-contact textarea:focus {
  outline: none;
  border-color: var(--couleur-accent);
}

.formulaire-contact textarea {
  min-height: 170px;
  resize: vertical;
}

.champ-anti-spam {
  position: absolute;
  left: -9999px;
}

.message-envoi {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 1.1rem 1.4rem;
  border-radius: var(--rayon);
  font-size: 0.8rem;
}

.message-envoi.succes {
  background: rgba(79, 168, 232, 0.12);
  border: 1px solid var(--couleur-accent);
}

.message-envoi.echec {
  background: rgba(224, 118, 38, 0.12);
  border: 1px solid #e07626;
}




