/*
Theme Name: Des Yeux Qui Pétillent
Theme URI: https://lesyeuxquipetillent.fr
Author: Fanny — Des Yeux Qui Pétillent
Author URI: https://lesyeuxquipetillent.fr
Description: Thème sur-mesure pour Des Yeux Qui Pétillent, maquilleuse événementiel et body painter. Site one-page coloré avec galerie, prestations, FAQ et formulaire de contact.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yeux-qui-petillent
*/


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

    :root {
      --violet: #5D0D6E;
      --pink: #DE0068;
      --orange: #F96B2B;
      --yellow: #FFEA00;
      --green: #00A600;
      --dark: #1a0820;
      --light: #faf8fc;
      --muted: #7a6a80;
      --blue: #08C5D1;
      --black: #000000;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--light);
      color: var(--dark);
      overflow-x: hidden;
    }

    h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

    /* ── NAVBAR ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: rgba(93,13,110,0.95);
      backdrop-filter: blur(12px);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 5%;
      height: 70px;
      border-bottom: 1px solid rgba(255,255,255,0.1);

    }
    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem; font-weight: 700;
      color: white; text-decoration: none;
  
    }
    .nav-logo span { color: var(--yellow); font-style: italic; }
    .nav-links {
      display: flex; gap: 2rem;
      list-style: none; margin: 0; padding: 0;
      align-items: center;
    }
    .nav-links li { margin: 0; }
    .nav-links a {
      color: rgba(255,255,255,0.8); text-decoration: none;
      font-size: 0.9rem; font-weight: 500;
      transition: color 0.2s;
      white-space: nowrap;
    }
    .nav-links a:hover { color: var(--yellow); }

    .nav-logo img {
      vertical-align: middle;
    }
    
    .nav-cta {
      background: var(--pink); color: white;
      padding: 0.5rem 1.5rem; border-radius: 50px;
      text-decoration: none; font-size: 0.85rem; font-weight: 600;
      transition: opacity 0.2s;
    }
    .nav-cta:hover { opacity: 0.85; }

    /* ── HERO ── */
    /* Couleur de secours affichée tant qu'aucune image de fond n'est définie.
       L'image de fond est ajoutée par le thème via un style en ligne
       (Apparence > Personnaliser > Accueil). */
    .hero {
      min-height: 100vh;
      background-color: var(--violet);
      background-size: cover;
      background-position: top;
      background-repeat: no-repeat;
      display: flex; align-items: center;
      padding: 0 6%;
    }
    .hero-content { max-width: 750px; padding-top: 70px; }
    .hero-content img {
    	height: 350px;  /* taille du logo */
    	width: auto; /* Maintient le ratio */
		margin: 350px auto 0;    /* 150px d'espace en haut, centré, rien en bas */
		margin: 0 0 0 50px;     /* décale de 50px depuis la gauche */
		
	}
    .hero-badge {
      display: inline-flex; align-items: center; gap: 0.5rem;
      background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
      border-radius: 50px; padding: 0.4rem 1rem;
      color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2rem;
    }
    .hero h1 {
      font-size: clamp(1.6rem, 4.5vw, 4rem);
      color: black; line-height: 1.1;
      margin-bottom: 1.3rem;
      text-align: center;
      white-space: nowrap;
    }

    .hero h1 .pink { color: var(--pink); }
    .hero h1 .yellow { color: var(--yellow); font-style: italic; }
    .hero h2 {
      color: black; line-height: 1.1;
      margin-bottom: 1.2rem;
      text-align: center;
    }
    .hero p {
      color: rgba(255,255,255,0.8); font-size: 1.1rem;
      line-height: 1.7; margin-bottom: 2.5rem; max-width: 480px;
    }
    .hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn-primary {
      background: var(--pink); color: white;
      padding: 0.9rem 2.2rem; border-radius: 50px;
      text-decoration: none; font-weight: 600; font-size: 1rem;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 8px 30px rgba(222,0,104,0.35);
    }
    .centrage {text-align: center;}
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(222,0,104,0.45); }
    .btn-outline {
      border: 1px solid rgba(255,255,255,0.35); color: white;
      padding: 0.9rem 2.2rem; border-radius: 50px;
      text-decoration: none; font-weight: 500; font-size: 1rem;
      backdrop-filter: blur(6px);
      transition: background 0.2s;
    }
    .btn-outline:hover { background: rgba(255,255,255,0.1); }

    /* ── STATS ── */
    .stats {
      background: var(--violet);
      background-image: linear-gradient(135deg, #5D0D6E 0%, #8B0A8A 25%, #DE0068 50%, #F96B2B 75%, #00A600 100%);
      padding: 5rem 5%;
    }
    .stats-grid {
      max-width: 1000px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
      text-align: center;
    }
    .stat-num {
      font-family: 'Playfair Display', serif;
      font-size: 3rem; font-weight: 700;
    }
    .stat-num.yellow { color: var(--yellow); }
    .stat-num.pink { color: #ffb3d1; }
    .stat-num.orange { color: #ffc49a; }
    .stat-num.green { color: #a8ff8c; }
    .stat-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 0.4rem; }

    /* ── SECTION TITLE ── */
    .section { padding: 6rem 5%; }
    .section-muted { background: #f3eef7; }
    .section-header { text-align: center; margin-bottom: 4rem; }
    .section-tag {
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
      text-transform: uppercase; display: block; margin-bottom: 0.75rem;
    }
    .tag-pink { color: var(--pink); }
    .tag-orange { color: var(--orange); }
    .tag-green { color: var(--green); }
    .tag-violet { color: var(--violet); }
    .tag-blue { color: var(--blue); }
    .tag-black { color: var(--black); }
    .section-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); }
    .divider {
      display: flex; gap: 6px; justify-content: center; margin-top: 1rem;
    }
    .divider span {
      height: 4px; width: 2rem; border-radius: 2px;
    }


      /* ── A PROPOS ── */
    .about-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    }
    .about-tag { color: var(--pink); }
    .about-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
    .about-content h2 em { color: var(--orange); }
    .about-content p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
    .about-content p strong { color: var(--dark); }
    .about-img { border-radius: 2rem; overflow: hidden; box-shadow: 0 30px 80px rgba(93,13,110,0.2); }
    .about-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

   

    /* ── GALLERY ── */
    .gallery-grid {
      max-width: 1200px; margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto;
      gap: 1rem;
    }
    .gallery-item {
      border-radius: 1rem; overflow: hidden;
      position: relative; cursor: pointer;
    }
    /* Mosaïque : motif qui se répète tous les 6 éléments, donc cohérent
       pour 6, 9, 12, 18… photos. La 1re photo de chaque bloc est agrandie
       en hauteur, la 5e photo de chaque bloc est agrandie en largeur. */
    .gallery-item:nth-child(6n + 1) { grid-row: span 2; }
    .gallery-item:nth-child(6n + 5) { grid-column: span 2; }
    .gallery-item img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform 0.5s;
      display: block; min-height: 220px;
    }
    .gallery-item:hover img { transform: scale(1.05); }
    .gallery-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
      opacity: 0; transition: opacity 0.3s;
      display: flex; align-items: flex-end; padding: 1.2rem;
    }
    .gallery-item:hover .gallery-overlay { opacity: 1; }
    .gallery-label {
      color: white; font-family: 'Playfair Display', serif;
      font-size: 1.1rem; font-weight: 700;
    }
    .gallery-cat {
      display: inline-block; background: rgba(222,0,104,0.8);
      color: white; font-size: 0.7rem; padding: 0.2rem 0.6rem;
      border-radius: 50px; margin-bottom: 0.3rem;
    }

    .gallery-cards-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    }
    .gallery-card { text-align: center; }
    .gallery-icon {
      width: 4rem; height: 4rem; border-radius: 1rem;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem; margin: 0 auto 1.2rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    .gallery-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; color: var(--dark); }
    .gallery-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }


    /* ── Prestations & SERVICES ── */
    .services-grid {
      max-width: 1200px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
    }
    .service-card {
      background: white; border-radius: 1.2rem;
      padding: 2rem; border: 1px solid rgba(93,13,110,0.08);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(93,13,110,0.12); }
    .service-icon {
      width: 3rem; height: 3rem; border-radius: 0.75rem;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; margin-bottom: 1.2rem;
    }
    .bg-violet { background: var(--violet); }
    .bg-pink { background: var(--pink); }
    .bg-orange { background: var(--orange); }
    .bg-green { background: var(--green); }
    .bg-blue { background: var(--blue); }
    .bg-black { background: var(--black); }
    .service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--dark); }
    .service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

    
   /* ── FAQ ── */
    .FAQ-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    }
    .FAQ-card { text-align: center; }
    .FAQ-icon {
      width: 4rem; height: 4rem; border-radius: 1rem;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem; margin: 0 auto 1.2rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    .FAQ-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; color: var(--dark); }
    .FAQ-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }



    /* ── CONTACT ── */
    .contact-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 2fr 3fr; gap: 4rem; align-items: start;
    }
    .contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
    .contact-info p { color: var(--muted); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }
    .contact-item {
      display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
    }
    .contact-icon {
      width: 3rem; height: 3rem; border-radius: 0.75rem;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; flex-shrink: 0;
    }
    .ci-pink { background: rgba(222,0,104,0.1); color: var(--pink); }
    .ci-orange { background: rgba(249,107,43,0.1); color: var(--orange); }
    .ci-green { background: rgba(0,166,0,0.1); color: var(--green); }
    .contact-item strong { display: block; font-size: 0.9rem; color: var(--dark); }
    .contact-item span { font-size: 0.85rem; color: var(--muted); }
    .contact-form {
      background: white; border-radius: 1.5rem;
      border: 1px solid rgba(93,13,110,0.1);
      padding: 2.5rem; box-shadow: 0 20px 60px rgba(93,13,110,0.08);
    }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
    .form-group { margin-bottom: 1.2rem; }
    .form-group label {
      display: block; font-size: 0.85rem; font-weight: 600;
      margin-bottom: 0.4rem; color: var(--dark);
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%; padding: 0.75rem 1rem;
      border: 1px solid #ddd; border-radius: 0.75rem;
      font-family: 'Inter', sans-serif; font-size: 0.9rem;
      color: var(--dark); background: #faf8fc;
      outline: none; transition: border-color 0.2s;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus { border-color: var(--violet); }
    .form-group textarea { min-height: 130px; resize: vertical; }
    .btn-submit {
      width: 100%; background: var(--pink); color: white;
      border: none; padding: 1rem; border-radius: 50px;
      font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
      cursor: pointer; transition: opacity 0.2s, transform 0.2s;
      box-shadow: 0 8px 25px rgba(222,0,104,0.3);
    }
    .btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

    /* ── PAGE HEADER ── */
    .page-header {
      background: var(--violet);
      padding: 8rem 5% 5rem;
      text-align: center;
      position: relative; overflow: hidden;
    }
    .page-header::before {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(0,166,0,0.15) 0%, rgba(255,234,0,0.15) 50%, rgba(249,107,43,0.15) 100%);
    }
    .page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: white; position: relative; }
    .page-header p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; position: relative; font-size: 1rem; }

    /* ── CTA ── */
    .cta-section {
      padding: 6rem 5%; text-align: center;
      background: linear-gradient(135deg, #f3eef7 0%, #fce4ef 100%);
    }
    .cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
    .cta-section h2 em { color: var(--pink); }
    .cta-section p { color: var(--muted); max-width: 550px; margin: 0 auto 2.5rem; line-height: 1.7; }

    /* ── FOOTER ── */
    footer {
      background: var(--violet); color: white;
      padding: 4rem 5% 2rem;
    }
    .footer-stripe {
      height: 5px; display: flex; margin-bottom: 4rem;
    }
    .footer-stripe div { flex: 1; }
    .footer-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem;
      margin-bottom: 3rem;
    }
    .footer-brand-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem;
    }
    .footer-brand-name span { color: var(--yellow); font-style: italic; }
    .footer p { color: rgba(255,255,255,0.65); font-size: 0.85rem; line-height: 1.7; }
    .footer h4 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 1.2rem; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 0.6rem; }
    .footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
    .footer-links a:hover { color: var(--yellow); }
    .footer-contact-item { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.7rem; }
    .footer-contact-item span:first-child { font-size: 0.9rem; }
    .footer-contact-item span:last-child { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 1.5rem; text-align: center;
      color: rgba(255,255,255,0.4); font-size: 0.8rem;
    }
    .social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
    .social-link {
      width: 2.2rem; height: 2.2rem; border-radius: 0.6rem;
      background: rgba(255,255,255,0.1); display: flex;
      align-items: center; justify-content: center;
      text-decoration: none; font-size: 1rem;
      transition: background 0.2s;
    }
    .social-link:hover { background: var(--pink); }

    .social-link img {
       height: 20px;  /* taille du logo */
       width: auto; /* Maintient le ratio */
      object-fit: cover;
      transition: transform 0.5s;
      display: block; min-height: 45px;
    }

    /* ── PAGINATION ── */
    .pagination {
      display: flex; justify-content: center; gap: 0.5rem;
      flex-wrap: wrap; margin-top: 3rem;
    }
    .pagination .page-numbers {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem;
      border-radius: 0.6rem; text-decoration: none;
      color: var(--violet); background: #f3eef7;
      font-size: 0.9rem; font-weight: 600;
      transition: background 0.2s, color 0.2s;
    }
    .pagination .page-numbers:hover { background: var(--violet); color: #fff; }
    .pagination .page-numbers.current { background: var(--pink); color: #fff; }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .gallery-grid { grid-template-columns: 1fr 1fr; }
      .gallery-cards-grid { grid-template-columns: repeat(2, 1fr); }
      /* Sur 2 colonnes, toutes les photos reprennent la même taille. */
      .gallery-item:nth-child(6n + 1) { grid-row: span 1; }
      .gallery-item:nth-child(6n + 5) { grid-column: span 1; }
      .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
      .FAQ-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    }
    @media (max-width: 640px) {
      .nav-links, .nav-cta { display: none; }
      .gallery-grid { grid-template-columns: 1fr; }
      .gallery-cards-grid { grid-template-columns: 1fr 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .FAQ-grid { grid-template-columns: 1fr 1fr; }
    }


    /* ── AJOUTS POUR INTÉGRATION WORDPRESS ── */

    /* Logo texte de secours si aucun logo image n'est défini */
    .nav-logo-fallback {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem; font-weight: 700;
      color: white; text-decoration: none;
    }
    .nav-logo-fallback span { color: var(--yellow); font-style: italic; }

    /* Menu burger mobile */
    .nav-toggle {
      display: none; background: none; border: none;
      cursor: pointer; padding: 0.5rem; z-index: 110;
    }
    .nav-toggle span {
      display: block; width: 24px; height: 2px;
      background: white; margin: 5px 0;
      transition: transform 0.3s, opacity 0.3s;
    }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Messages du formulaire de contact */
    .form-feedback {
      padding: 1rem 1.2rem; border-radius: 0.75rem;
      margin-bottom: 1.2rem; font-size: 0.9rem; display: none;
    }
    .form-feedback.is-visible { display: block; }
    .form-feedback.is-success { background: rgba(0,166,0,0.1); color: var(--green); }
    .form-feedback.is-error { background: rgba(222,0,104,0.1); color: var(--pink); }

    /* Galerie : message si vide */
    .gallery-empty {
      text-align: center; color: var(--muted);
      grid-column: 1 / -1; padding: 2rem;
    }

    /* Accessibilité : lien d'évitement */
    .skip-link {
      position: absolute; left: -999px; top: 0;
      background: var(--pink); color: #fff; padding: 0.6rem 1rem;
      z-index: 200; border-radius: 0 0 0.5rem 0;
    }
    .skip-link:focus { left: 0; }

    /* WordPress : classes utilitaires natives */
    .screen-reader-text {
      position: absolute; width: 1px; height: 1px;
      overflow: hidden; clip: rect(1px,1px,1px,1px);
      white-space: nowrap;
    }
    .admin-bar nav { top: 32px; }
    @media (max-width: 782px) { .admin-bar nav { top: 46px; } }

    @media (max-width: 640px) {
      .nav-toggle { display: block; }
      .nav-links {
        position: fixed; inset: 70px 0 auto 0;
        flex-direction: column; gap: 0;
        background: rgba(93,13,110,0.98);
        padding: 1rem 5%;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
      }
      .nav-open .nav-links { transform: translateY(0); display: flex; }
      .nav-links li { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
      .nav-open .nav-cta { display: inline-block; }
    }
