/* =========================================
   LA PINÈDE – PORTAIL RÉSIDENT GRAND LUXE
   ========================================= */

/* Palette profonde vert hôtel + doré */
:root {
  --portal-bg:             #030d0a;
  --portal-bg-soft:        #071914;
  --portal-bg-elevated:    #0d231d;

  --portal-border:         rgba(196,213,205,0.20);
  --portal-border-subtle:  rgba(196,213,205,0.10);

  --portal-accent-emerald: #49d6a2;
  --portal-accent-gold:    #d2a871;
  --portal-accent-amber:   #f0be7a;

  --portal-text-main:      #f4f3ee;
  --portal-text-soft:      #c7d0ca;
  --portal-text-muted:     #98a29b;

  --portal-header-bg:      #030d0a;
  --portal-header-border:  rgba(196,213,205,0.18);
}

/* Fond global uniquement pour la page portail (ID = 6) */
body.page-id-6 {
  background:
    radial-gradient(circle at top, #0f2d23 0%, #030d0a 46%, #010605 100%);
  color: var(--portal-text-main);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================
   TYPOGRAPHIE GLOBALE PORTAIL
   ========================================= */

body.page-id-6 h1,
body.page-id-6 h2,
body.page-id-6 h3,
body.page-id-6 .portal-page-header-title,
body.page-id-6 .portal-hero-title,
body.page-id-6 .portal-menu-content-title,
body.page-id-6 .portal-section-card-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

/* =========================================
   HEADER PORTAIL – STYLE GRAND HÔTEL
   ========================================= */

.portal-site-header {
  background: linear-gradient(
    to bottom,
    rgba(3,13,10,0.98),
    rgba(3,13,10,0.96)
  );
  border-bottom: 1px solid var(--portal-header-border);
  backdrop-filter: blur(10px);
}

.portal-site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Marque (logo + titre) */

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--portal-text-main);
}

.portal-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(73,214,162,0.30), transparent 60%),
    radial-gradient(circle at bottom right, rgba(210,168,113,0.30), transparent 60%),
    #061812;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 10px 24px rgba(0,0,0,0.75);
  flex-shrink: 0;
}

.portal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.portal-title-main {
  font-size: 1.25rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-family: "Cormorant Garamond", serif;
}

.portal-title-tagline {
  font-size: 0.82rem;
  color: var(--portal-text-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Liens admin (à droite) */

.portal-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Main (optionnel) */
.portal-main {
  min-height: calc(100vh - 80px);
}

/* =========================================
   BOUTONS PORTAIL – MINIMALISME LUXE
   ========================================= */

/* Base commune */
.portal-admin-link,
.portal-note-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(196,213,205,0.28);
  cursor: pointer;
  background: transparent;
  color: var(--portal-text-main);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background-color 0.18s ease-out,
    border-color 0.18s ease-out,
    color 0.18s ease-out,
    transform 0.12s ease-out,
    box-shadow 0.18s ease-out;
}

/* Hover doux */
.portal-admin-link:hover,
.portal-note-button:hover {
  background-color: rgba(7,32,25,0.96);
  border-color: rgba(73,214,162,0.7);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.85);
}

/* Bouton admin “principal” */
.portal-admin-link--primary {
  border-color: rgba(73,214,162,0.7);
  color: var(--portal-accent-emerald);
}

/* Bouton admin “ghost” */
.portal-admin-link--ghost {
  border-color: rgba(196,213,205,0.22);
  color: var(--portal-text-soft);
}

/* Bouton note d’info : doré plus chaleureux */
.portal-note-button {
  border-color: rgba(210,168,113,0.70);
  color: var(--portal-accent-gold);
}

.portal-note-button:hover {
  background-color: rgba(34,23,10,0.96);
}

/* =========================================
   PAGE D’ACCUEIL DU PORTAIL – PANNEAU LUXE
   ========================================= */

.portal-shell {
  max-width: 1120px;
  margin: 32px auto 56px;
  padding: 24px 22px 42px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(73,214,162,0.14), transparent 60%),
    radial-gradient(circle at bottom right, rgba(210,168,113,0.13), transparent 65%),
    var(--portal-bg-elevated);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.02);
  color: var(--portal-text-main);
  border: 1px solid rgba(255,255,255,0.03);
}

/* HERO portail */

.portal-hero {
  padding: 22px 22px 22px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(5,32,25,0.96), rgba(5,26,20,0.96));
  border: 1px solid var(--portal-border-subtle);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at top left, rgba(73,214,162,0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(210,168,113,0.10), transparent 65%);
  opacity: 0.9;
  pointer-events: none;
}

.portal-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1;
}

.portal-hero-title {
  margin: 0 0 8px;
  font-size: 2.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.portal-hero-text {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

/* GRILLE DE MENU – CARTES PRINCIPALES */

.portal-menu {
  margin-top: 12px;
}

.portal-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.portal-menu-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(6,30,23,0.96),
    rgba(6,24,19,0.98)
  );
  border: 1px solid var(--portal-border);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

.portal-menu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left,
    rgba(73,214,162,0.12),
    transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.portal-menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(210,168,113,0.65);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
}

.portal-menu-card:hover::before {
  opacity: 1;
}

.portal-menu-emoji {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 4px;
}

.portal-menu-content-title {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--portal-accent-emerald);
}

.portal-menu-card:nth-child(2n) .portal-menu-content-title {
  color: var(--portal-accent-gold);
}

.portal-menu-content-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--portal-text-soft);
}

/* Liens à l’intérieur du panneau portail */
.portal-shell a {
  color: var(--portal-accent-emerald);
}

.portal-shell a:hover {
  color: var(--portal-accent-amber);
}

/* =========================================
   SOUS-PAGES PORTAIL
   ========================================= */

.portal-page {
  max-width: 1120px;
  margin: 32px auto 56px;
  padding: 22px 20px 42px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(73,214,162,0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(210,168,113,0.12), transparent 65%),
    var(--portal-bg-elevated);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--portal-text-main);
}

.portal-breadcrumb {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--portal-text-soft);
}

.portal-breadcrumb a {
  color: var(--portal-accent-emerald);
  text-decoration: none;
}

.portal-breadcrumb a:hover {
  color: var(--portal-accent-amber);
}

.portal-page-header-title {
  margin: 0 0 6px;
  font-size: 1.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-page-header-text {
  margin: 0;
  color: var(--portal-text-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Grille de sections (cartes infos) */

.portal-section-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.portal-section-grid-two {
  /* devient 2 colonnes sur desktop via media query */
}

.portal-section-card {
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(6,28,22,0.96),
    rgba(6,22,18,0.98)
  );
  border: 1px solid var(--portal-border);
  box-shadow: 0 14px 34px rgba(0,0,0,0.85);
  position: relative;
  overflow: hidden;
}

.portal-section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left,
    rgba(73,214,162,0.09),
    transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.portal-section-card > * {
  position: relative;
  z-index: 1;
}

.portal-section-card-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--portal-accent-emerald);
}

.portal-section-card-text {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--portal-text-soft);
}

.portal-section-card ul {
  margin: 0 0 4px 1.1rem;
  padding: 0;
  list-style: disc;
  color: var(--portal-text-soft);
  font-size: 0.94rem;
}

/* Layout spécifique contact */

.portal-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.portal-contact-address {
  display: inline-block;
  margin-top: 4px;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (min-width: 840px) {
  .portal-section-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .portal-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .portal-site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-logo {
    width: 34px;
    height: 34px;
  }

  .portal-shell,
  .portal-page {
    margin: 20px 10px 32px;
    padding: 18px 14px 32px;
  }
}

@media (max-width: 640px) {
  .portal-hero-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* =========================================
   PORTAIL – MASQUER LES CARTES VIDES
   ========================================= */

/* Sur la page portail (ID 6), dans la grille du menu,
   on cache tout ce qui n'est pas une vraie carte de menu */
body.page-id-6 .portal-menu-grid > *:not(a.portal-menu-card) {
  display: none !important;
}

/* Et on cache aussi d'éventuelles cartes .portal-menu-card
   qui seraient vides (sans titre ni contenu) */
body.page-id-6 .portal-menu-grid > a.portal-menu-card:not(:has(.portal-menu-content-title)) {
  display: none !important;
}
/* ================================
   PORTAIL RÉSIDENT – TYPO
   ================================ */

/* Police du texte global du portail (page du portail uniquement) */
body.page-id-6 {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Titre principal du portail */
body.page-id-6 .portal-hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.20em;
}

/* Titres des cartes du menu (en majuscules) */
body.page-id-6 .portal-menu-content-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;          /* un peu plus compact vu la casse */
}

/* Texte sous les titres des cartes */
body.page-id-6 .portal-menu-content-text {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

/* Petite harmonisation du texte du hero */
body.page-id-6 .portal-hero-text {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
}
