/*
Theme Name: Petfy
Theme URI: https://petfy.fr
Author: Anaïs Roulland
Description: Thème vitrine pour l'application Petfy.
Version: 1.0
*/

/* =========================
   RESET & GLOBAL
   ========================= */

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Baloo Chettan 2", sans-serif;
  background-color: #ffffff;
  color: #222;
}

/* ---------- SCROLL FLUID ---------- */
html {
  scroll-behavior: smooth;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between; /* logo à gauche, menu à droite */
  gap: 40px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* NAVIGATION */

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #513B26;
}

/* =========================
   BANNIÈRE ACCUEIL
   ========================= */

.banner {
  position: relative;
  margin-top: 70px; /* Hauteur du header */
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  transform-origin: center;
}

/* TEXTE SUR L'IMAGE */

.banner-text {
  position: absolute;
  top: 40%;
  left: 120px;
  transform: translateY(-50%);
  color: white;
  max-width: 550px;

  opacity: 0;
  animation: fadeInUp 0.9s ease-out 0.3s forwards;
}

.banner-text h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #513b26;

  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.45s forwards;
}

.banner-text h2 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 2rem;
  color: white;

  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* BOUTONS BANNIÈRE */

.banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.75s forwards;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Baloo Chettan 2", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
  width: fit-content;
}

.btn-primary,
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: #513b26;
}

.banner-buttons .btn {
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner-buttons .btn:hover {
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* =========================
   ACCUEIL : LE PROJET
   ========================= */

.home-project {
  padding: 80px 24px;
}

.home-project-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.home-project-image {
  opacity: 0;
  animation: fadeInLeft 0.9s ease-out 0.2s forwards;
}

.home-project-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-project-image img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.home-project-text {
  opacity: 0;
  animation: fadeInRight 0.9s ease-out 0.35s forwards;
}

.home-project-text h2 {
  font-size: 26px;
  color: #513b26;
  margin: 0 0 16px 0;
}

.home-project-text p {
  margin: 0 0 14px 0;
  line-height: 1.6;
}

.home-project-button {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.btn-project {
  background-color: #513b26;
  color: #ffffff;
}

.btn-project:hover {
  background-color: #3e2c1b;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .home-project-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-project-button {
    justify-content: center;
  }
}

/* =========================
   PAGE LE PROJET
   ========================= */

.page-project {
  padding: 110px 24px 80px;
  background: #ffffff;
}

.page-project-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.project-hero {
  text-align: center;
  margin-bottom: 40px;
}

.project-tagline {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #ebceb5;
  color: #513b26;
  margin-bottom: 18px;
}

.project-hero h1 {
  font-size: 32px;
  color: #513b26;
  margin: 0 0 16px 0;
}

.project-hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 18px;
}

.project-illustration {
  max-width: 900px;
  margin: 0 auto 60px;
}

.project-illustration img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.project-section {
  margin-bottom: 60px;
}

.project-section-title {
  font-size: 24px;
  color: #513b26;
  margin-bottom: 12px;
}

.project-section-text {
  line-height: 1.7;
  margin: 0;
}

.project-two-columns {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

.project-block {
  padding: 22px 24px;
  border-radius: 18px;
  background: #faf5f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* "UNE SOLUTION POUR TOUS" */

.project-audience {
  margin-bottom: 60px;
}

.project-audience-title {
  font-size: 24px;
  color: #513b26;
  margin-bottom: 24px;
  text-align: center;
}

.project-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.audience-card {
  border-radius: 18px;
  padding: 22px 20px 20px;
  background: #ffffff;
  border: 1px solid #f0dfcf;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.audience-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.audience-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #faf5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #b78555;
  flex-shrink: 0;
}

.audience-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #b78555;
}

.audience-title {
  font-size: 18px;
  color: #513b26;
  margin: 2px 0 0 0;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.audience-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.audience-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #b78555;
  font-size: 18px;
  line-height: 1;
}

.project-goal {
  margin-top: 20px;
  padding: 28px 26px;
  border-radius: 22px;
  background: linear-gradient(120deg, #513b26, #b78555);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.project-goal-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.project-goal-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.project-cta {
  margin-top: 26px;
}

.project-cta .btn {
  background-color: #ffffff;
  color: #513b26;
  font-size: 15px;
}

.project-cta .btn:hover {
  transform: translateY(-2px);
}

/* Responsive projet */

@media (max-width: 900px) {
  .page-project {
    padding: 100px 16px 60px;
  }

  .project-two-columns {
    grid-template-columns: 1fr;
  }

  .project-audience-grid {
    grid-template-columns: 1fr;
  }

  .project-goal {
    padding: 24px 18px;
  }

  .project-hero h1 {
    font-size: 26px;
  }

  .project-hero p {
    font-size: 16px;
  }

  .audience-header {
    align-items: center;
  }
}

/* =========================
   ANIMATIONS GÉNÉRIQUES
   ========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bannerZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-down {
  opacity: 0;
  animation: fadeDown 0.8s ease-out forwards;
}

.animate-delay-1 {
  animation-delay: 0.15s;
}

.animate-delay-2 {
  animation-delay: 0.3s;
}

.animate-delay-3 {
  animation-delay: 0.45s;
}

/* ACCESSIBILITÉ : réduire les animations */

@media (prefers-reduced-motion: reduce) {
  .banner-img,
  .banner-text,
  .banner-text h1,
  .banner-text h2,
  .banner-buttons,
  .home-project-image,
  .home-project-text,
  .app-hero,
  .app-steps,
  .app-audience,
  .app-features,
  .app-cta,
  .app-hero-phones {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================
   BOUTON RETOUR EN HAUT
   ========================= */

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #513b26;
  color: #ffffff;
  border: none;
  outline: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 9999;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.back-to-top:hover {
  background: #3d2d1c;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================
   PAGE L'APPLICATION
   ========================= */

.page-app {
  padding: 110px 24px 80px;
  background: #ffffff;
}

.page-app-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.app-hero {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeUp 0.7s ease-out;
}

.app-hero-tagline {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #ebceb5;
  color: #513b26;
  margin-bottom: 18px;
}

.app-hero h1 {
  font-size: 32px;
  color: #513b26;
  margin: 0 0 16px 0;
}

.app-hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 18px;
}

/* HERO — 3 TÉLÉPHONES */

.app-hero-phones {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease-out;
}

.app-phone {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  background: #000000;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 8px;
  border-radius: 999px;
  background: #151515;
  z-index: 2;
}

.app-phone img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: contain;
  background: #000000;
}

.app-phone:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .app-phone {
    width: 180px;
  }

  .app-hero-phones {
    gap: 22px;
  }
}

/* ÉTAPES */

.app-steps {
  margin-bottom: 60px;
  animation: fadeUp 0.7s ease-out;
}

.app-steps-header {
  text-align: center;
  margin-bottom: 30px;
}

.app-steps-header h2 {
  font-size: 24px;
  color: #513b26;
  margin-bottom: 8px;
}

.app-steps-header p {
  margin: 0;
  line-height: 1.6;
}

.app-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.app-step-card {
  background: #faf5f0;
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.app-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #b78555;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
}

.app-step-title {
  font-size: 18px;
  color: #513b26;
  margin: 0 0 6px 0;
}

.app-step-text {
  margin: 0;
  line-height: 1.5;
}

/* AUDIENCE APP */

.app-audience {
  margin-bottom: 60px;
  animation: fadeUp 0.7s ease-out;
}

.app-audience-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

/* FONCTIONNALITÉS CLÉS */

.app-features {
  margin-bottom: 60px;
  animation: fadeUp 0.7s ease-out;
}

.app-features-title {
  font-size: 24px;
  color: #513b26;
  text-align: center;
  margin-bottom: 26px;
}

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-feature-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f0dfcf;
  padding: 20px 18px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.app-feature-title {
  font-size: 18px;
  color: #513b26;
  margin: 0 0 6px 0;
}

.app-feature-text {
  margin: 0;
  line-height: 1.5;
}

/* CTA APP */

.app-cta {
  margin-top: 20px;
  padding: 28px 26px 30px;
  border-radius: 22px;
  background: linear-gradient(120deg, #513b26, #b78555);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  animation: fadeUp 0.7s ease-out;
}

.app-cta-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.app-cta-text {
  margin: 0 0 16px 0;
  font-size: 17px;
  line-height: 1.6;
}

.app-cta-btn {
  background-color: #ffffff;
  color: #513b26;
  font-size: 15px;
}

.app-cta-btn:hover {
  transform: translateY(-2px);
}

/* Responsive app */

@media (max-width: 900px) {
  .page-app {
    padding: 100px 16px 60px;
  }

  .app-steps-grid {
    grid-template-columns: 1fr;
  }

  .app-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ICONES FONCTIONNALITÉS */

.feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #faf5f0;
  color: #b78555;
  flex-shrink: 0;
}

/* =========================
   ACCUEIL : SECTION L'APPLICATION
   ========================= */

.home-app {
  padding: 40px 24px 80px;
  background: #faf5f0;
}

.home-app-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.home-app-text h2 {
  font-size: 26px;
  color: #513b26;
  margin: 0 0 16px 0;
}

.home-app-text p {
  margin: 0 0 14px 0;
  line-height: 1.6;
}

.home-app-button {
  margin-top: 20px;
}

.home-app-button .btn-project {
  background-color: #513b26;
  color: #ffffff;
}

.home-app-button .btn-project:hover {
  background-color: #3e2c1b;
  transform: translateY(-2px);
}

.home-app-visual {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .home-app-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-app-visual {
    justify-content: center;
  }

  .home-app {
    padding: 40px 16px 60px;
  }
}

/* =========================
   PAGE CONTACT
   ========================= */

.page-contact {
  padding: 110px 24px 80px;
  background: #ffffff;
}

.page-contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-hero {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeUp 0.7s ease-out;
}

.contact-tagline {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #ebceb5;
  color: #513b26;
  margin-bottom: 18px;
}

.contact-hero h1 {
  font-size: 32px;
  color: #513b26;
  margin: 0 0 14px 0;
}

.contact-hero p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

.contact-form-section {
  animation: fadeUp 0.7s ease-out;
}

/* Carte formulaire page Contact */
.page-contact .contact-form {
  display: flex;
  justify-content: center;
  padding: 26px;
  border-radius: 18px;
  background: #faf5f0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* sécurité pour les débordements */
}

/* Le formulaire CF7 à l'intérieur de la carte */
.page-contact .contact-form .wpcf7-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================
   SECTION CONTACT — HOME
   ========================= */

.home-contact {
  background: #ffffff;
  padding: 80px 24px;
}

.home-contact-inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h2 {
  font-size: 26px;
  color: #513b26;
  margin-bottom: 10px;
}

.contact-header p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

/* Carte formulaire home */
.home-contact .contact-form {
  background: #faf5f0;
  padding: 40px 34px;
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* sécurité pour les débordements */
}

.home-contact .contact-form .wpcf7-form {
  display: grid;
  /* minmax(0,1fr) = oblige Safari à respecter la largeur dispo */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}


/* =========================
   FORMULAIRES (commun)
   ========================= */

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / 3;
}

label {
  font-size: 15px;
  margin-bottom: 6px;
  color: #513b26;
  font-weight: 600;
}

/* Champs de formulaire – commun (Chrome + Safari) */
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  border: 1px solid #d2c2b6;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: "Baloo Chettan 2", sans-serif;
}

textarea {
  resize: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #b78555;
}

/* Boutons de formulaire */

.contact-btn,
.contact-form input[type="submit"] {
  background: #513b26;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 8px;
  font-family: "Baloo Chettan 2", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Page Contact : bouton centré */
.page-contact .contact-form input[type="submit"] {
  align-self: center;
  margin-top: 8px;
}

/* Home : bouton centré et sur toute la largeur de la grille */
.home-contact .contact-form .wpcf7-form input[type="submit"] {
  grid-column: 1 / 3;
  justify-self: center;
}

.contact-btn:hover,
.contact-form input[type="submit"]:hover {
  background: #3e2c1b;
  transform: translateY(-2px);
}

/* Responsive formulaires home */

@media (max-width: 800px) {
  .home-contact .contact-form .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .form-group.full,
  .home-contact .contact-form .wpcf7-form input[type="submit"] {
    grid-column: 1 / 2;
  }
}

/* Animations des <p> CF7 (optionnel, joli) */

.contact-form .wpcf7-form p {
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.contact-form .wpcf7-form p:nth-child(1) { animation-delay: .1s; }
.contact-form .wpcf7-form p:nth-child(2) { animation-delay: .2s; }
.contact-form .wpcf7-form p:nth-child(3) { animation-delay: .3s; }
.contact-form .wpcf7-form p:nth-child(4) { animation-delay: .4s; }
.contact-form .wpcf7-form p:nth-child(5) { animation-delay: .5s; }

/* =========================
   BOX-SIZING GLOBAL (sécurité)
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}



/* =========================
   PAGE CONTACT – champ "Votre message" pleine largeur
   ========================= */

.page-contact .contact-form .wpcf7-form p:nth-of-type(4) {
  width: 100%;
}

.page-contact .contact-form .wpcf7-form p:nth-of-type(4) textarea {
  width: 100%;
  min-height: 200px;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: #f8f3ee;
  padding: 32px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #513b26;
  line-height: 1.6;
}

.site-footer a {
  color: #513b26;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #b78555;
}

/* =========================
   RESPONSIVE HEADER + BANNIÈRE
   ========================= */

@media (max-width: 900px) {
  .site-header {
    height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
  }

  .logo img {
    height: 32px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.95rem;
  }
}

/* Bannière sur mobile */

@media (max-width: 768px) {
  .banner {
    margin-top: 90px;
  }

  .banner-img {
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }

  .banner-text {
    position: static;
    transform: none;
    padding: 16px 16px 32px;
    max-width: 100%;
    text-align: center;
    color: #513b26;
  }

  .banner-text h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .banner-text h2 {
    font-size: 15px;
    margin-bottom: 16px;
    color: #444;
  }

  .banner-buttons {
    align-items: stretch;
    gap: 10px;
  }

  .banner-buttons .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    font-size: 15px;
  }
}
/* Safari Fix — Empêcher les débordements dans les formulaires */
.page-contact .contact-form,
.home-contact .contact-form {
  overflow: hidden !important;
}

/* Les <p> CF7 doivent s'adapter au conteneur */
.page-contact .contact-form .wpcf7-form p,
.home-contact .contact-form .wpcf7-form p {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Inputs / selects / textarea — empêcher Safari de forcer une largeur interne */
.page-contact input,
.page-contact select,
.page-contact textarea,
.home-contact input,
.home-contact select,
.home-contact textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important; /* ← ESSENTIEL POUR SAFARI */
  box-sizing: border-box !important;
  display: block !important;
}
/* Empêcher les éléments des formulaires de forcer la largeur (Safari) */
.home-contact .contact-form .wpcf7-form > p,
.page-contact .contact-form .wpcf7-form > p {
  min-width: 0;
}

/* Inputs & zones de texte : jamais plus large que le parent */
.home-contact .contact-form .wpcf7-form input,
.home-contact .contact-form .wpcf7-form select,
.home-contact .contact-form .wpcf7-form textarea,
.page-contact .contact-form .wpcf7-form input,
.page-contact .contact-form .wpcf7-form select,
.page-contact .contact-form .wpcf7-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* SAFARI FIX – réduire légèrement la largeur des grands champs */

/* Page d'accueil (home) */
.home-contact .contact-form .wpcf7-form input[type="email"],
.home-contact .contact-form .wpcf7-form textarea {
  max-width: 94%;      /* un peu moins que 100% */
  width: 94%;
  display: block;
  margin: 0 auto;      /* centré dans la colonne */
}

/* Page Contact */
.page-contact .contact-form .wpcf7-form input[type="email"],
.page-contact .contact-form .wpcf7-form textarea {
  max-width: 94%;
  width: 94%;
  display: block;
  margin: 0 auto;
}

/* HOME — centrer le bouton CF7 */
.home-contact .contact-form .wpcf7-form p:last-of-type{
  grid-column: 1 / -1;      /* prend toute la largeur de la grille */
  text-align: center;       /* centre le contenu du <p> */
}

.home-contact .contact-form .wpcf7-form input[type="submit"]{
  display: inline-block;    /* nécessaire pour que text-align centre bien */
  margin: 0 auto;
}

/* Footer — réseaux sociaux */
.footer-socials{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-link{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(81, 59, 38, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-link svg{
  width: 20px;
  height: 20px;
  fill: #513b26;
}

.social-link:hover{
  transform: translateY(-2px);
  background: #ebceb5;
  border-color: rgba(81, 59, 38, 0.3);
}
/* Animation OK mais fallback visible */
.contact-form .wpcf7-form p {
  opacity: 1; /* fallback */
}

@media (min-width: 801px) {
  .contact-form .wpcf7-form p {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
  }
}
