/*
Theme Name: Éclat de France
Theme URI: https://eclat-de-france.fr
Author: Éclat de France
Author URI: https://eclat-de-france.fr
Description: Thème headless minimal pour Éclat de France. Le site public est servi par Next.js (Vercel) ; WordPress ne sert que l'admin, le GraphQL et les pages WooCommerce (compte, panier, paiement), habillées ici à la charte de la maison.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: eclat
*/

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

:root {
  --edf-navy: #16243a;
  --edf-ivory: #f5f1e8;
  --edf-sand: #e7e0d2;
  --edf-gold: #a98a5c;
  --edf-line: rgba(22, 36, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--edf-ivory);
  color: var(--edf-navy);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  /* Sticky footer : le body remplit toute la hauteur d'écran, le contenu
     pousse le footer en bas → aucun blanc résiduel sous la page. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--edf-navy);
}

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

/* Conteneur centré commun */
.edf-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ======================= HEADER ======================================== */
.edf-header {
  background: var(--edf-navy);
  color: var(--edf-ivory);
}
.edf-header .edf-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.edf-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--edf-ivory);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: 0.25em;
}
.edf-tricolore {
  display: inline-flex;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
}
.edf-tricolore i {
  flex: 1;
}
.edf-tricolore i:nth-child(1) { background: #21457a; }
.edf-tricolore i:nth-child(2) { background: #f5f1e8; }
.edf-tricolore i:nth-child(3) { background: #b23a48; }

.edf-back {
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.2s;
}
.edf-back:hover {
  color: var(--edf-gold);
}

/* ======================= MAIN / PAGE =================================== */
.edf-main {
  flex: 1 0 auto; /* remplit l'espace restant → footer en bas */
  padding: 3.5rem 0 5rem;
}
.edf-title {
  font-size: 2.6rem;
  margin: 0 0 1.75rem;
}

/* ======================= ÉCRAN TECHNIQUE (accueil WP) ================== */
.edf-placeholder {
  text-align: center;
  padding: 3rem 0 2rem;
}
.edf-placeholder__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--edf-gold);
  margin: 0 0 1rem;
}
.edf-placeholder__title {
  font-size: 3rem;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}
.edf-placeholder__text {
  color: rgba(22, 36, 58, 0.6);
  margin: 0 0 2rem;
}
.edf-placeholder__cta {
  display: inline-block;
  background: var(--edf-navy);
  color: var(--edf-ivory);
  text-decoration: none;
  padding: 0.95rem 2.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: background 0.2s;
}
.edf-placeholder__cta:hover {
  background: var(--edf-gold);
}

/* ======================= FOOTER ======================================== */
.edf-footer {
  background: var(--edf-navy);
  color: rgba(245, 241, 232, 0.55);
}
.edf-footer .edf-shell {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* ======================================================================== *
 *  WOOCOMMERCE — Mon compte, panier, paiement, à la charte Éclat de France
 * ======================================================================== */

.woocommerce-account .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  margin: 0 auto;
}

/* Zone de contenu élargie à 90 % de l'écran sur les pages compte/commande */
.woocommerce-account .edf-main .edf-shell,
.woocommerce-cart .edf-main .edf-shell,
.woocommerce-checkout .edf-main .edf-shell {
  max-width: none;
  width: 90%;
}

/* --- Mon compte : mise en page --- */
.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}
.woocommerce-MyAccount-navigation {
  width: 240px;
  flex: 0 0 auto;
  float: none;
}
.woocommerce-MyAccount-content {
  flex: 1 1 360px;
  float: none;
  width: auto;
  background: #fff;
  border: 1px solid var(--edf-line);
  border-top: 2px solid var(--edf-gold);
  padding: 2.25rem;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--edf-line);
}
.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid var(--edf-line);
}
.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 0.95rem 1.25rem;
  color: var(--edf-navy);
  text-decoration: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.2s, background 0.2s;
}
.woocommerce-MyAccount-navigation li a:hover {
  color: var(--edf-gold);
  background: var(--edf-ivory);
}
.woocommerce-MyAccount-navigation li.is-active a {
  color: var(--edf-gold);
  font-weight: 600;
}

/* --- Formulaires / champs --- */
.woocommerce form .form-row label,
.woocommerce-account label,
.woocommerce-checkout label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(22, 36, 58, 0.5);
  margin-bottom: 0.35rem;
}
.woocommerce form .input-text,
.woocommerce-Input,
.woocommerce input[type='text'],
.woocommerce input[type='email'],
.woocommerce input[type='tel'],
.woocommerce input[type='password'],
.woocommerce select,
.woocommerce textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(22, 36, 58, 0.25);
  background: transparent;
  padding: 0.65rem 0.1rem;
  color: var(--edf-navy);
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  outline: none;
  border-color: var(--edf-gold);
}

/* --- Boutons --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce #respond input#submit {
  display: inline-block;
  background: var(--edf-navy);
  color: var(--edf-ivory);
  border: 1px solid var(--edf-navy);
  border-radius: 0;
  padding: 0.9rem 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--edf-gold);
  border-color: var(--edf-gold);
  color: var(--edf-ivory);
}
.woocommerce .button.alt,
.woocommerce a.button.wc-forward {
  background: var(--edf-gold);
  border-color: var(--edf-gold);
}

/* --- Connexion / inscription --- */
.woocommerce .col2-set,
.woocommerce-account:not(.logged-in) .u-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  flex: 1 1 320px;
  background: #fff;
  border: 1px solid var(--edf-line);
  border-top: 2px solid var(--edf-gold);
  padding: 2rem 2rem 2.25rem;
  margin: 0;
}

/* --- Tableaux --- */
.woocommerce table.shop_table {
  border: 1px solid var(--edf-line);
  border-radius: 0;
  background: #fff;
  border-collapse: collapse;
}
.woocommerce table.shop_table thead th,
.woocommerce table.shop_table th {
  background: var(--edf-navy);
  color: var(--edf-ivory);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  padding: 0.9rem 1rem;
}
.woocommerce table.shop_table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--edf-line);
}

/* --- Messages --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #fff;
  border-top: 3px solid var(--edf-gold);
  box-shadow: none;
  border-radius: 0;
  color: var(--edf-navy);
}
.woocommerce-error {
  border-top-color: #b23a48;
}
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--edf-gold);
}

/* Liens dans le contenu Woo */
.woocommerce a {
  color: var(--edf-navy);
  text-decoration-color: rgba(169, 138, 92, 0.5);
  text-underline-offset: 3px;
}
.woocommerce a:hover {
  color: var(--edf-gold);
}

/* ======================= RESPONSIVE ==================================== */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
  }
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content {
    width: 100%;
  }
  .edf-title {
    font-size: 2rem;
  }
}
