/*
Theme Name: Ch'tites Cocottes
Theme URI: https://www.les-chtites-cocottes-et-cie.com/
Description: Thème enfant de Twenty Twenty-Five. Habille les pages gérées par WordPress (articles, actualités, 404) avec l'en-tête, le pied de page et la charte du site vitrine.
Author: Edouard Chrétien, webmaster bénévole
Template: twentytwentyfive
Version: 1.5.1
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: chtites-cocottes
*/

/* Les styles principaux viennent du site vitrine : /assets/css/style.css (chargé par functions.php).
   Ce fichier ne contient que les ajustements propres aux pages WordPress. */

.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* Contenu des articles */
.wp-block-post-title { font-family: var(--f-titre); font-weight: 700; line-height: 1.04; color: var(--silhouette); }
.wp-block-post-content { font-size: 1.0625rem; line-height: 1.7; }
.wp-block-post-content a { color: var(--framboise-fonce); }
.wp-block-post-content img { border-radius: var(--rayon); }
.wp-block-post-date, .wp-block-post-terms { color: var(--texte-doux); font-size: .9rem; }
.wp-block-post-featured-image img { border-radius: var(--rayon-l); }

/* Boutons WordPress aux couleurs du site */
.wp-element-button, .wp-block-button__link { border-radius: 999px; background: var(--framboise); color: #fff; font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem; padding: .75rem 1.4rem; }
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--framboise-fonce); color: #fff; }

/* Liste d'actualités */
.wp-block-post-template .wp-block-post-title a { text-decoration: none; color: var(--silhouette); }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--framboise-fonce); text-decoration: underline; }

/* ---------- Page 404 ---------- */
.page-404 .perdu { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.code-404 { display: flex; align-items: center; gap: .4rem; font: 700 clamp(7rem, 17vw, 15rem)/.8 var(--f-titre); color: var(--silhouette); }
.oeuf { background: none; border: 0; padding: 0; cursor: pointer; width: clamp(5.5rem, 13vw, 11.5rem); border-radius: 50%; }
.oeuf-svg { width: 100%; height: auto; overflow: visible; display: block; }
.oeuf .fissure { opacity: 0; transition: opacity .3s; }
.oeuf .coquille-haut { transform-box: fill-box; transform-origin: 20% 90%; transition: transform .7s cubic-bezier(.3,1.6,.5,1); }
.oeuf .poussin { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(12px); transition: transform .6s .25s cubic-bezier(.3,1.6,.5,1); }
.oeuf.etape-1 .oeuf-svg { animation: tremble .5s ease; }
.oeuf.etape-2 .fissure { opacity: 1; }
.oeuf.etape-2 .oeuf-svg { animation: tremble .5s ease; }
.oeuf.etape-3 .fissure { opacity: 0; }
.oeuf.etape-3 .coquille-haut { transform: translate(-14px, -46px) rotate(-28deg); }
.oeuf.etape-3 .poussin { transform: translateY(-14px); }
.oeuf.etape-3 { cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .oeuf:not(.etape-3) .oeuf-svg { animation: bascule 3.2s ease-in-out infinite; transform-origin: 50% 95%; }
}
@keyframes bascule { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-3deg); } }
@keyframes tremble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
.page-404 .indice { font-weight: 600; color: var(--framboise-fonce); min-height: 1.7em; }
@media (min-width: 1100px) { .page-404 .cartes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .page-404 .perdu { grid-template-columns: 1fr; } .code-404 { justify-content: center; } }
