/*
Theme Name: perso
Theme URI: https://example.com/perso
Author: Ton Nom
Author URI: https://example.com
Description: Thème personnalisé doux et élégant pour un site de bien-être, basé sur un système de tuiles responsive.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: perso
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body, h1, h2, h3, h4, h5, h6, p, nav a, .tile, .tile h2, .tile p {
  font-family: 'Quicksand', sans-serif !important;
}

body {
  margin: 0;
  background-color: #e6f0f7;
  color: #2c3e50;
}

/* ===== HEADER ===== */
header {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: white;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('fond.png') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.site-logo {
  z-index: 1;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin: 1rem 0 0;
  background-color: rgba(0, 49, 92, 0.5);
  padding: 0.6rem 1.5rem;
  border-radius: 1rem;
  z-index: 1;
}

/* Logo personnalisé */
header img {
  max-height: 120px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  z-index: 1;
}

/* ===== LOGO AGRANDI UNIQUEMENT SUR PAGE D’ACCUEIL ===== */
.home .custom-logo {
  display: block;
  height: 360px !important;
  max-height: none !important;
  width: auto !important;
  object-fit: contain;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.home header h1 {
  margin-top: 2rem !important;
}

/* ===== MENU PRINCIPAL ===== */
.menu-principal {
  display: flex;
  justify-content: center;
  background-color: #cce0f4;
  padding: 0;
  list-style: none;
  margin: 0;
}

.menu-principal li {
  position: relative;
  list-style: none;
}

.menu-principal > li {
  display: inline-block;
}

.menu-principal a {
  display: block;
  padding: 1rem 1.5rem;
  color: #00315c;
  text-decoration: none;
}

.menu-principal a:hover {
  background-color: #b0cde4;
}

/* ===== SOUS-MENUS ===== */
.menu-principal ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #cce0f4;
  padding: 0;
  margin: 0;
  border-radius: 0.5rem;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
}

.menu-principal li:hover > ul.sub-menu {
  display: block;
}

.menu-principal ul.sub-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #00315c;
  text-decoration: none;
}

.menu-principal ul.sub-menu li a:hover {
  background-color: #b0cde4;
}

/* ===== TUILES ===== */
.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 4rem;
}

.tile-wrapper {
  width: 450px;
}

.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.tile {
  background-color: #f2f8fc;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 180px;
}

.tile img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}

.tile h2 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.2rem;
  color: #00315c;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tile p {
  font-size: 1rem;
  color: #4a6c8a;
  line-height: 1.4;
  margin: 0;
}

/* ===== TEXTE ÉDITABLE SOUS TUILES ===== */
.below-tiles {
  max-width: 75%;
  margin: 3rem auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #cce0f4;
  color: #2c3e50;
  font-size: 0.9rem;
  margin-top: 4rem;
}

/* ===== Pages classiques ===== */
.page-header img {
  height: auto !important;
  max-height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
/* ===== PAGE D'ACCUEIL - Responsive mobile ===== */
@media screen and (max-width: 768px) {
  .home header {
    height: 60vh;
  }

  .home .custom-logo {
    height: 120px !important;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .home header h1 {
    font-size: 1.5rem;
    margin-top: 1rem !important;
    padding: 0.5rem 1rem;
  }
}
